/* ========================================
   Japan Cruises - Unique Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0f4c75;
    --primary-light: #1b6ca8;
    --primary-dark: #0a3a5a;
    --accent: #e8913a;
    --accent-light: #f0a85c;
    --secondary: #2a9d8f;
    --secondary-light: #3dbfb0;
    --bg-main: #f0f4f8;
    --bg-white: #ffffff;
    --bg-card: #fafbfc;
    --text-main: #1a202c;
    --text-muted: #5a6c7d;
    --text-light: #8899aa;
    --border: #d0dae6;
    --border-light: #e8eef4;
    --shadow: 0 2px 8px rgba(15, 76, 117, 0.08);
    --shadow-hover: 0 4px 16px rgba(15, 76, 117, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

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

/* ========================================
   Header
   ======================================== */

.header-top {
    background: var(--primary-dark);
    padding: 6px 0;
    font-size: 0.8rem;
}

.header-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.header-link {
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-link:hover {
    color: #fff;
}

.header-top .divider {
    color: rgba(255,255,255,0.3);
}

.header-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.logo-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-nav {
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(15, 76, 117, 0.04);
}

.nav-item.active .nav-link {
    color: var(--primary);
    border-bottom-color: var(--accent);
    background: rgba(15, 76, 117, 0.04);
}

/* ========================================
   Main Content Layout
   ======================================== */

.main-content {
    padding: 28px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}

/* ========================================
   Left Column - Cruise Sections
   ======================================== */

.cruise-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.section-header {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header.domestic {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.section-header.international {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.section-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.section-body {
    padding: 20px;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.feature-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: var(--transition);
}

.feature-card:hover img {
    transform: scale(1.05);
}

.feature-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
}

.feature-label {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 3px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.feature-desc {
    font-size: 0.75rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Sub Features */
.sub-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.sub-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.sub-feature:hover {
    background: #fff;
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.sub-feature-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.sub-feature-text h4 {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.sub-feature-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.more-link {
    display: block;
    text-align: right;
    color: var(--primary-light);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 16px;
}

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

/* Map Search */
.map-search {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.map-tabs {
    display: flex;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
}

.map-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    font-family: inherit;
}

.map-tab:hover {
    color: var(--primary);
    background: rgba(15,76,117,0.04);
}

.map-tab.active {
    color: var(--primary);
    background: var(--bg-white);
    border-bottom: 2px solid var(--accent);
}

.map-content {
    padding: 16px;
}

.japan-map, .asia-map {
    width: 100%;
    height: auto;
    max-height: 300px;
}

.map-region {
    cursor: pointer;
    transition: var(--transition);
}

.map-region:hover {
    filter: brightness(1.15);
    transform: scale(1.02);
    transform-origin: center;
}

/* ========================================
   New Cruises Section
   ======================================== */

.new-cruises {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.new-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #fff5f0 0%, #fff 100%);
    border-bottom: 2px solid var(--border-light);
}

.new-header.international {
    background: linear-gradient(90deg, #f0f7ff 0%, #fff 100%);
}

.new-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 3px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.new-badge.intl {
    background: var(--primary);
}

.new-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.update-date {
    font-size: 0.78rem;
    color: var(--text-light);
}

.more-btn {
    display: inline-block;
    padding: 5px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-weight: 600;
}

.more-btn:hover {
    background: var(--primary-dark);
}

.cruise-list {
    padding: 8px 0;
}

.cruise-item {
    border-bottom: 1px solid var(--border-light);
}

.cruise-item:last-child {
    border-bottom: none;
}

.cruise-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    transition: var(--transition);
}

.cruise-link:hover {
    background: rgba(42, 157, 143, 0.04);
}

.cruise-arrow {
    color: var(--accent);
    font-size: 0.65rem;
    flex-shrink: 0;
}

.cruise-name {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cruise-meta {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

/* RSS Info */
.rss-info {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.rss-info p {
    margin-bottom: 4px;
}

.rss-link {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.82rem;
}

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

/* ========================================
   Right Column - Sidebar
   ======================================== */

.sidebar-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-title {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-section.payment .sidebar-title {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-light) 100%);
}

.sidebar-section.help .sidebar-title {
    background: linear-gradient(90deg, #5a6c7d 0%, #7a8c9d 100%);
}

.sidebar-section.recommend .sidebar-title {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
}

/* Topics */
.topics-list {
    padding: 8px;
}

.topic-item {
    border-bottom: 1px solid var(--border-light);
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    transition: var(--transition);
}

.topic-link:hover {
    background: rgba(15,76,117,0.03);
}

.topic-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.topic-text {
    display: flex;
    flex-direction: column;
}

.topic-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.topic-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Payment */
.payment-content {
    padding: 16px;
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}

.pay-icon {
    font-size: 1.8rem;
}

.payment-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.detail-link {
    display: inline-block;
    padding: 6px 18px;
    background: var(--secondary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-link:hover {
    background: var(--secondary-light);
}

/* Help */
.help-list {
    padding: 8px;
}

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

.help-list li:last-child {
    border-bottom: none;
}

.help-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.help-link:hover {
    color: var(--primary);
    background: rgba(15,76,117,0.03);
    padding-left: 16px;
}

.help-link svg {
    flex-shrink: 0;
    opacity: 0.6;
}

/* Recommend */
.recommend-content {
    padding: 12px;
}

.recommend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.recommend-item:last-child {
    margin-bottom: 0;
}

.recommend-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow);
}

.recommend-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.recommend-item:nth-child(1) .recommend-badge { background: #e74c3c; }
.recommend-item:nth-child(2) .recommend-badge { background: #e8913a; }
.recommend-item:nth-child(3) .recommend-badge { background: var(--primary); }

.recommend-item p {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
}

.footer-links {
    background: rgba(0,0,0,0.15);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: #fff;
}

.footer-links .divider {
    color: rgba(255,255,255,0.25);
    font-size: 0.75rem;
}

.footer-main {
    padding: 40px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    flex-shrink: 0;
}

.footer-brand-text h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.footer-brand-text p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.footer-menu-col h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-menu-col ul li {
    margin-bottom: 8px;
}

.footer-menu-col ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    transition: var(--transition);
    display: block;
}

.footer-menu-col ul li a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.contact-col .contact-tel {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 6px;
}

.contact-col .contact-hours,
.contact-col .contact-email,
.contact-col .contact-address,
.contact-col .contact-company {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
    line-height: 1.6;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 18px 0;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 4px;
}

.footer-tagline {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 960px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    
    .sidebar-section {
        margin-bottom: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .right-column {
        grid-template-columns: 1fr;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .footer-menu {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-links .divider {
        display: none;
    }
    
    .header-links {
        justify-content: center;
    }
    
    .new-header {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .cruise-link {
        flex-wrap: wrap;
    }
    
    .cruise-name {
        white-space: normal;
        width: 100%;
    }
    
    .cruise-meta {
        margin-left: 20px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
