/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #c74c4c;
    /* Gentle red */
    --secondary-color: #a33838;
    /* Darker calm red */
    --accent-color: #fcf2f2;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --transition-speed: 0.3s;
    --font-main: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

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

.section-title .en {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-top: 5px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.header-logo-img {
    height: 45px;
    width: auto;
    margin-right: 15px;
}

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

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.logo span {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

.global-nav {
    display: none;
    /* Mobile first */
}

@media (min-width: 992px) {
    .global-nav {
        display: block;
        flex: 1;
        margin: 0 40px;
    }

    .global-nav ul {
        display: flex;
        justify-content: center;
    }

    .global-nav li {
        margin: 0 15px;
    }

    .global-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-color);
        font-weight: 500;
        font-size: 1.05rem;
        padding: 10px;
        position: relative;
    }

    .global-nav a .en {
        font-size: 0.7rem;
        color: var(--text-light);
        margin-top: 2px;
        transition: color var(--transition-speed);
    }

    .global-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--primary-color);
        transform: scaleX(0);
        transition: transform var(--transition-speed);
    }

    .global-nav a:hover,
    .global-nav a.active {
        color: var(--primary-color);
    }

    .global-nav a:hover .en,
    .global-nav a.active .en {
        color: var(--primary-color);
    }

    .global-nav a:hover::after,
    .global-nav a.active::after {
        transform: scaleX(1);
    }
}

.header-contact {
    display: none;
}

@media (min-width: 992px) {
    .header-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .tel-link {
        display: flex;
        align-items: center;
        color: var(--primary-color);
        font-size: 1.4rem;
        font-weight: 700;
    }

    .tel-link .icon {
        font-size: 1.2rem;
        margin-right: 5px;
    }

    .hours {
        font-size: 0.8rem;
        color: var(--text-light);
    }
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 90px;
    /* Header height */
    left: 0;
    width: 100%;
    height: calc(100vh - 90px);
    background-color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
}

.mobile-menu li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: calc(100vh - 90px);
    min-height: 500px;
    background-color: var(--accent-color);
    background-image: linear-gradient(135deg, rgba(80, 80, 80, 0.6) 0%, rgba(120, 120, 120, 0.6) 100%), url('../images/image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (min-width: 768px) {
    .hero-content h2 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   News Section
   ========================================================================== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: background-color var(--transition-speed);
}

.news-item:first-child {
    border-top: 1px dashed var(--border-color);
}

.news-item:hover {
    background-color: var(--bg-light);
}

.news-meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-date {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-light);
    margin-right: 15px;
}

.news-category {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--white);
    font-weight: 500;
}

.badge-info {
    background-color: var(--primary-color);
}

.badge-product {
    background-color: var(--secondary-color);
}

.news-title {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.news-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .news-item {
        flex-direction: row;
        align-items: center;
    }

    .news-meta {
        margin-bottom: 0;
        width: 200px;
        flex-shrink: 0;
    }

    .news-title {
        flex-grow: 1;
    }
}

/* ==========================================================================
   Products Snippet Section
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    color: inherit;
    display: block;
}

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

.product-img-wrapper {
    width: 100%;
    height: 200px;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-img {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.2rem;
    opacity: 0.6;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Secondary Pages Banner (Shared)
   ========================================================================== */
.page-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.page-banner .en {
    font-size: 1rem;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #f1f3f5;
    padding: 60px 0 20px;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.footer-logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer-address,
.footer-tel {
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-tel a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
}

.footer-hours {
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-links h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer Social */
.footer-social {
    margin-top: 15px;
}

.footer-social a {
    display: inline-block;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
}

.footer-social a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.footer-social img {
    height: 35px;
    width: auto;
    display: block;
    border-radius: 8px;
}

/* Footer Seal */
.footer-seal {
    margin-top: 15px;
}

.footer-seal input {
    cursor: pointer;
    transition: opacity var(--transition-speed);
}

.footer-seal input:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}