/* Onomichi Club Website Styles - Fixed Left Side Layout */

/* CSS Variables */
:root {
    --color-primary: #231815;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-text: #333333;
    --color-light-gray: #f8f8f8;
    --color-border: #b2cefe;
    
    --font-serif: 'Cardo', serif;
    --font-jp: 'Shippori Mincho B1', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 5px;
    
    --z-header: 100;
    --z-overlay: 999;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-jp);
    font-weight: 400;
    color: var(--color-text);
    background-color: #f5f5f5;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

ul {
    list-style: none;
}

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

/* Wrapper */
.wrapper {
    min-height: 100vh;
    position: relative;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--color-white);
    position: relative;
}

/* Header Styles */
.header {
    width: 100%;
    background: var(--color-white);
    border-bottom: 1px solid #a6a6a6;
    box-shadow: 1px 2px 3px #c7c7c7;
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    display: flex;
    align-items: center;
}

/* Header Navigation */
.nav-btn {
    padding: 5px;
    font-size: 12px;
    margin: 5px;
    font-weight: 400;
    font-family: var(--font-serif);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: 5px;
}

/* News button (first button) */
.nav-btn:first-child {
    background: var(--color-white);
    color: var(--color-primary);
}
.nav-btn:first-child:hover {
    background: #f5f5fd;
    color: var(--color-primary);
}

.nav-btn:first-child .nav-text-jp {
    color: var(--color-primary);
}

.nav-btn:first-child .nav-text-en {
    color: #023892;
}

/* Hotel page buttons with logo */
.nav-btn.hotel-btn {
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    padding: 8px;
}

.nav-btn.hotel-btn:hover {
    background: #f5f5fd;
    border-color: #023892;
}

.hotel-logo {
    height: 24px;
    width: auto;
    display: block;
}

.nav-text-jp {
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: normal;
}

.nav-text-en {
    font-family: var(--font-serif);
    font-size: 8px;
    font-weight: 400;
    color: #023892;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Language Switcher */
.header__langs {
    display: flex;
    border: 1px solid var(--color-primary);
    overflow: hidden;
}

.header__langsLang {
    background: var(--color-white);
    border: none;
}

.header__langsLang.is-on {
    background: var(--color-primary);
}

.header__langsLang a {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--color-primary);
    transition: var(--transition);
}

.header__langsLang.is-on a {
    color: var(--color-white);
}

/* Main Content */
.main-content {
    padding: 40px 60px 40px 40px;
}

/* Breadcrumb */
.Breadcrumb {
    margin-bottom: 40px;
}

.Breadcrumb__scroll {
    font-size: 14px;
    color: var(--color-text);
    font-family: var(--font-jp);
}

.Breadcrumb__scroll a {
    color: var(--color-text);
    transition: var(--transition);
}

.Breadcrumb__scroll a:hover {
    opacity: 0.6;
}

.Breadcrumb__scrollDeli {
    margin: 0 8px;
    opacity: 0.5;
}

.Breadcrumb__scrollCrnt {
    color: var(--color-primary);
    font-weight: 500;
}

/* Posts Section */
.posts {
    max-width: 100%;
}

/* Category Filters */
.posts__cats {
    margin-bottom: 60px;
}

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

.Catbtn {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;    
    border-radius: 5px;
}

.Catbtn.is-crnt {
    background: #023892;
    color: var(--color-white);
    border-color: #023892;
}

.Catbtn:hover:not(.is-crnt) {
    border-color: #023892;
    color: var(--color-primary);
}

.Catbtn p {
    margin: 0;
    font-family: var(--font-jp);
    font-weight: 400;
}

/* News Articles */
.posts__arts {
    margin-bottom: 80px;
}

.posts__artsArt {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.posts__artsArt:hover {
    opacity: 0.7;
}

.posts__artsArt:last-child {
    border-bottom: none;
}

/* Regular articles and thumbnail articles info section */
.posts__artsArt .info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.posts__artsArt .date {
    font-size: 14px;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0;
    min-width: 100px;
}

/* Content with thumbnail layout */
.content-with-thumbnail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-direction: row-reverse;
}

.article-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.posts__artsArt.has-thumbnail:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-text {
    flex: 1;
}

.info__cat {
    padding: 4px 12px;
    background: var(--color-light-gray);
    border: 1px solid var(--color-border);
    border-radius: 5px;
}

.info__cat p {
    margin: 0;
    font-size: 12px;
    color: var(--color-text);
    font-family: var(--font-jp);
    font-weight: 400;
}

.posts__artsArt .ttl p,
.article-text .ttl p {
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-primary);
    font-family: var(--font-jp);
    font-weight: 500;
    margin: 0;
}

.posts__artsArt .excerpt,
.article-text .excerpt {
    margin-top: 12px;
}

.posts__artsArt .excerpt p,
.article-text .excerpt p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    font-family: var(--font-jp);
    font-weight: 400;
    margin: 0;
    opacity: 0.8;
}

/* Read More Button */
.read-more-btn {
    margin-top: 15px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
    text-align: left;
}

.posts__artsArt:hover .read-more-btn {
    opacity: 1;
    transform: translateX(0);
}

.read-more-btn a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #023892;
    text-decoration: none;
    font-family: var(--font-jp);
    font-size: 14px;
    font-weight: 400;
    transition: all 0.6s ease;
}

.read-more-btn a:hover {
    color: var(--color-primary);
}

.read-more-btn svg {
    width: 14px;
    height: 14px;
    transition: all 0.6s ease;
}

/* Mobile: Show read more button by default */
@media (max-width: 768px) {
    .read-more-btn {
        opacity: 1;
        transform: translateX(0);
    }
    
    .posts__artsArt .read-more-btn {
        opacity: 1;
        transform: translateX(0);
    }
}

/* News Article Detail Page */
.news-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.article-date {
    font-size: 14px;
    color: var(--color-text);
    font-family: var(--font-serif);
    font-weight: 400;
    margin: 0;
    min-width: 100px;
}

.article-category {
    padding: 4px 12px;
    background: var(--color-light-gray);
    border: 1px solid var(--color-border);
    border-radius: 30px;
}

.article-category p {
    margin: 0;
    font-size: 12px;
    color: var(--color-text);
    font-family: var(--font-jp);
    font-weight: 400;
}

.article-title {
    font-size: 28px;
    line-height: 1.3;
    color: var(--color-primary);
    font-family: var(--font-jp);
    font-weight: 600;
    margin: 0;
}

.article-featured-image {
    margin-bottom: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-content {
    font-family: var(--font-jp);
    line-height: 1.7;
    color: var(--color-text);
}

.article-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.article-content h2 {
    font-size: 22px;
    color: var(--color-primary);
    font-family: var(--font-jp);
    font-weight: 600;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.article-content h3 {
    font-size: 18px;
    color: var(--color-primary);
    font-family: var(--font-jp);
    font-weight: 500;
    margin: 30px 0 15px 0;
}

.article-content h4 {
    font-size: 16px;
    color: var(--color-primary);
    font-family: var(--font-jp);
    font-weight: 500;
    margin: 25px 0 10px 0;
}

.article-content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
    font-size: 16px;
    list-style: disc;
}

.article-content strong {
    font-weight: 600;
    color: var(--color-primary);
}

.article-contact {
    background: var(--color-light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    border-left: 4px solid #023892;
}

.article-contact h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.article-navigation {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-family: var(--font-jp);
    font-size: 14px;
    transition: var(--transition);
}

.back-to-list:hover {
    color: #023892;
}

.back-to-list svg {
    width: 16px;
    height: 16px;
}

/* Pagination */
.posts__pagi {
    display: flex;
    justify-content: center;
}

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

.Pagi__nums {
    display: flex;
    gap: 10px;
}

.Pagi__numsNum {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    border-radius: 5px;
}

.Pagi__numsNum.is-crnt {
    background: #023892;
    color: var(--color-white);
    border-color: #023892;
    
}

.Pagi__numsNum:not(.is-crnt):hover {
    border-color: #023892;
    color: var(--color-primary);
}

.Pagi__next {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: var(--transition);
    font-size: 14px;
    border-radius: 5px;
}

.Pagi__next:hover {
    border-color: #023892;
    color: var(--color-primary);
}

.Pagi__next svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    background: var(--color-light-gray);
    padding: 20px 60px 20px 40px;
    border-top: 1px solid var(--color-border);
}

.footer-single-row {
    text-align: center;
}

.footer-single-row p {
    margin: 0;
    font-size: 12px;
    color: var(--color-primary);
    font-family: var(--font-jp);
    line-height: 1.5;
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 1240px) {
    .main-container {
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }
    
    .header-container {
        margin: 0 20px;
        max-width: calc(100% - 40px);
    }
}

@media (max-width: 1024px) {
    .header-container {
        padding: 20px 40px;
    }
    
    .main-content {
        padding: 30px 40px;
    }
    
    .footer {
        padding: 15px 40px;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin: 0 10px;
        max-width: calc(100% - 20px);
    }
    
    .header-container {
        margin: 0 10px;
        max-width: calc(100% - 20px);
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
    
    /* Show burger menu on mobile */
    .burger-menu {
        display: flex;
    }
    
    /* Make logo smaller on mobile */
    .header__logo img {
        height: 30px;
    }
    
    /* Hide navigation by default on mobile */
    .header__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 30px 30px 30px;
        gap: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1001;
    }
    
    /* Show navigation when active */
    .header__nav.active {
        left: 0;
    }
    
    /* Mobile navigation buttons */
    .header__nav .nav-btn {
        width: 100%;
        margin: 0 0 15px 0;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        border: 1px solid var(--color-border);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    /* Mobile hotel logo */
    .header__nav .hotel-logo {
        height: 32px;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 280px; /* Start overlay after the menu width */
        width: calc(100% - 280px);
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        pointer-events: none;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .posts__catsScroll {
        gap: 10px;
    }
    
    .posts__artsArt .info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .posts__artsArt .date {
        min-width: auto;
    }
    
    /* Mobile thumbnail layout - stack vertically */
    .content-with-thumbnail {
        flex-direction: column;
        align-items: stretch;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
        order: -1; /* Move thumbnail to top */
    }
    
    .article-text {
        order: 1;
    }
    
    .footer {
        padding: 15px 20px;
    }
    
    .footer-single-row p {
        font-size: 10px;
        line-height: 1.6;
    }
}

/* Scroll Animations */
.Js-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.Js-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
@media (hover: hover) {
    .posts__artsArt:hover .ttl p {
        color: var(--color-text);
    }
    
    .Catbtn:hover p {
        font-weight: 500;
    }
}

/* Performance Optimization */
.main-container {
    will-change: scroll-position;
}