@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* =========================================================================
   Variables & Design Tokens
   ========================================================================= */
:root {
    --color-primary: #1e3a8a;
    /* Deep Navy Blue */
    --color-primary-light: #3b82f6;
    --color-secondary: #0f172a;
    /* Slate 900 */
    --color-accent: #f59e0b;
    /* Warm Amber/Gold for metallic feel */
    --color-accent-hover: #d97706;

    --color-bg-light: #f8fafc;
    /* Slate 50 */
    --color-bg-white: #ffffff;
    --color-text-main: #334155;
    /* Slate 700 */
    --color-text-muted: #64748b;
    /* Slate 500 */

    --color-border: #e2e8f0;

    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
}

/* =========================================================================
   Reset & Basics
   ========================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-width: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 100vw;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
}

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

a:hover {
    color: var(--color-primary);
}

img,
iframe,
video,
object,
lite-youtube {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
header.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.logo-main {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
    letter-spacing: 0.05em;
}

.logo-sub {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-secondary);
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

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

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg-white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border: 1px solid var(--color-border);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--color-text-main);
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.nav-dropdown li a:hover {
    background-color: var(--color-bg-light);
    color: var(--color-primary);
}

.lang-switch {
    font-family: var(--font-en);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.lang-switch:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    margin-top: 80px;
    /* offset for fixed header */
    /* height: 70vh; */
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-secondary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
    animation: zoomInOut 20s infinite alternate;
}

@keyframes zoomInOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    word-break: break-word;
}

.hero-title span {
    color: var(--color-accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.4);
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
    color: white;
}

/* =========================================================================
   Main Layout & Container
   ========================================================================= */
.main-container {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

@media (max-width: 992px) {
    .main-container {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .content-area {
        order: 1;
        /* Main content first on mobile */
    }

    .sidebar {
        order: 2;
        /* Sidebar bottom on mobile */
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}


/* =========================================================================
   Sidebar / Asides
   ========================================================================= */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.banner-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--color-bg-white);
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.banner-card img {
    width: 100%;
    transition: transform 0.5s ease;
}

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

.info-card {
    background: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--color-primary);
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-light);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    font-size: 0.9rem;
    font-weight: 600;
}

.dl-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.dl-btn img {
    width: 24px;
}

/* =========================================================================
   Content Sections
   ========================================================================= */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* Businesses Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.business-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.b-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.b-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.business-card:hover .b-img-wrapper img {
    transform: scale(1.1);
}

.b-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.business-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.business-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.business-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.business-link {
    font-weight: 600;
    color: var(--color-primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.business-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.business-card:hover .business-link::after {
    transform: translateX(5px);
}

/* Goods Section specifically */
.goods-images {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.goods-images img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex: 1;
    object-fit: contain;
    max-height: 80px;
    height: auto;
    width: 100%;
}

/* Media / Video Section */
.media-section {
    background: var(--color-bg-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.video-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.video-wrapper {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Info Box / Furusato Tax / Quality Slogans */
.featured-box {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.featured-box h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.featured-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.featured-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.link-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.link-btn:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* SNS Section */
.sns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.insta-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.insta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.insta_profile_icon {
    display: block;
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    flex: 0 0 60px;
    border-radius: 50%;
    overflow: hidden;
}

.insta-icon,
.insta_profile_icon_img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    aspect-ratio: 1 / 1 !important;
}

.insta-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--color-secondary);
}

.insta-info p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.insta-grid li {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
}

.insta-grid img,
.insta-grid video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.insta-grid li:hover img {
    transform: scale(1.1);
}

/* =========================================================================
   Footer
   ========================================================================= */
.modern-footer {
    background-color: var(--color-secondary);
    color: white;
    padding: 4rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.f-brand h2 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.f-brand p {
    color: var(--color-text-muted);
    font-family: var(--font-en);
    margin-bottom: 1rem;
}

.f-slogan {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
}

.f-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.f-contact ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.f-contact li {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.f-contact a {
    color: white;
}

.f-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-family: var(--font-en);
}

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

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 350px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .main-container {
        padding: 0 1rem;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .businesses-grid,
    .video-grid,
    .sns-grid {
        grid-template-columns: 1fr;
    }

    .insta-card {
        padding: 1rem;
        overflow: hidden;
    }

    .banner-card img {
        width: 100%;
        height: auto;
    }

    .header-container {
        padding: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg-white);
        flex-direction: column;
        justify-content: center;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}