/**
 * KIHARU Site Responsive Styles
 * Version: 1.0.0
 */

/* ============================================
   Tablet Styles (768px - 979px)
   ============================================ */
@media screen and (max-width: 979px) {
    :root {
        --max-width: 100%;
    }

    /* Header */
    .header-container {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-sm);
    }

    .main-navigation .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

    .main-navigation .nav-menu li a {
        font-size: 13px;
    }

    /* Content Grids */
    .content-wrapper,
    .product-item-inner {
        grid-template-columns: 1fr;
    }

    .product-features,
    .benefits-grid,
    .gallery-grid,
    .applications-grid,
    .advantages-list,
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Product Thumbnail */
    .product-thumbnail img {
        height: 300px;
    }
}

/* ============================================
   Mobile Styles (max-width: 767px)
   ============================================ */
@media screen and (max-width: 767px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 16px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-xxl: 48px;
    }

    /* Typography */
    .page-title {
        font-size: 28px;
    }

    .section-heading {
        font-size: 22px;
    }

    .brand-name {
        font-size: 36px;
    }

    /* Header */
    .kiharu-header {
        height: auto;
        position: relative;
    }

    .header-container {
        padding: var(--spacing-md);
    }

    .site-branding .site-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: var(--spacing-sm);
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation .nav-menu {
        flex-direction: column;
        gap: var(--spacing-xs);
        width: 100%;
    }

    .main-navigation .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--color-bg-light);
    }

    .main-navigation .nav-menu li a {
        padding: var(--spacing-sm);
        display: block;
    }

    /* Footer */
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-links .separator {
        display: none;
    }

    /* Content Grids - Single Column */
    .content-wrapper,
    .product-features,
    .benefits-grid,
    .gallery-grid,
    .features-grid,
    .applications-grid,
    .advantages-list,
    .contact-info-grid,
    .product-item-inner {
        grid-template-columns: 1fr;
    }

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

    /* Images */
    .product-thumbnail img,
    .application-image img {
        height: auto;
    }

    .gallery-item img {
        height: auto;
    }

    /* Tables */
    .transaction-table {
        font-size: 14px;
    }

    .transaction-table th {
        width: 120px;
    }

    .transaction-table th,
    .transaction-table td {
        padding: var(--spacing-xs);
    }

    /* Product List */
    .product-title {
        font-size: 20px;
    }

    .product-meta {
        font-size: 13px;
    }

    /* Pagination */
    .pagination ul {
        flex-wrap: wrap;
    }

    .pagination li a,
    .pagination li span {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 0;
    }

    .kiharu-contact-form .submit-btn {
        width: 100%;
    }
}

/* ============================================
   Small Mobile Styles (max-width: 480px)
   ============================================ */
@media screen and (max-width: 480px) {
    /* Typography */
    .page-title {
        font-size: 24px;
    }

    .section-heading {
        font-size: 20px;
    }

    .brand-name {
        font-size: 28px;
    }

    .vision-text {
        font-size: 14px;
        line-height: 2em;
    }

    /* Header */
    .site-branding .site-title {
        font-size: 18px;
    }

    .main-navigation .nav-menu li a {
        font-size: 14px;
    }

    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }

    /* Feature Items */
    .feature-item,
    .feature-box,
    .advantage-item,
    .info-box {
        padding: var(--spacing-sm);
    }

    .feature-item h3,
    .feature-box h3,
    .advantage-item h3,
    .info-box h3 {
        font-size: 16px;
    }

    /* Benefit Icons */
    .benefit-icon img {
        width: 60px;
        height: 60px;
    }

    /* Step Numbers */
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    /* Table Responsive */
    .transaction-table {
        font-size: 12px;
    }

    .transaction-table th {
        width: 100px;
    }

    /* Product Items */
    .product-item {
        margin-bottom: var(--spacing-lg);
        padding-bottom: var(--spacing-lg);
    }

    .product-title {
        font-size: 18px;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .kiharu-header,
    .kiharu-footer,
    .read-more-link,
    .pagination {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    section {
        page-break-inside: avoid;
    }
}
