/* =============================================================================
   CSS Variables & Global Settings
   ============================================================================= */

:root {
    --primary-orange: #FF8C42;
    --secondary-orange: #FFB366;
    --dark-orange: #E67E22;
    --light-orange: #FFF2E6;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --white: #FFFFFF;
}

/* =============================================================================
   Reset & Base Styles
   ============================================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 18px;
    margin: 0;
    padding: 0 !important;
}

/* Typography */
a,
p {
    font-size: 1.0rem !important;
}

h3 {
    font-size: 1.8rem !important;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Legacy Header Reset */
#header,
.inner,
.h-t,
.logo,
.top-info,
#menu-box,
#menu,
#toggle,
.menu-box2,
.navbar-toggler,
.offcanvas {
    display: none !important;
}

/* =============================================================================
   Header & Navigation
   ============================================================================= */

.new-header-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent;
}

/* Company Top Bar */
.company-top-bar {
    background: var(--dark-orange);
    color: white;
    padding: 10px 0;
}

.company-top-bar span {
    font-size: 0.8rem !important;
}

.company-top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.company-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.company-logo {
    max-height: 65px;
    width: auto;
}

.company-info-text {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.3;
    color: white;
}

.company-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.contact-item a {
    color: white;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--light-orange);
}

/* Main Navigation Bar */
.main-nav-bar {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    margin: 0;
}

.desktop-nav a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--light-orange);
    transform: translateY(-2px);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: white;
    transition: all 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 80%;
    left: 10%;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 5px 0;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-toggle:active {
    background: rgba(255, 255, 255, 0.3);
}

.mobile-nav-menu {
    display: none;
    background: rgba(255, 255, 255, 0.96);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.mobile-nav-menu.show {
    display: block;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list a {
    display: block;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 140, 66, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-list a:hover {
    background: rgba(255, 140, 66, 0.1);
    color: var(--primary-orange);
    padding-left: 30px;
}

.mobile-nav-list li:last-child a {
    border-bottom: none;
}

.mobile-contact-footer {
    background: var(--dark-orange);
    padding: 15px 20px;
    text-align: center;
}

.mobile-contact-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* =============================================================================
   Main Content Layout
   ============================================================================= */

.content-wrapper {
    margin-top: 130px;
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
    background: url('../img/main.png');
    background-size: cover;
    background-position: center;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero-banners {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    z-index: 10;
}

.hero-banner-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.hero-banner-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-banner-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Mobile Hero Banners */
.mobile-hero-banners {
    display: none;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--light-orange), rgba(255, 140, 66, 0.1));
}

/* =============================================================================
   Insurance Companies Section
   ============================================================================= */

.insurance-companies {
    padding: 80px 0;
    background: var(--light-orange);
}

.insurance-grid {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.insurance-item {
    text-align: center;
    margin-bottom: 30px;
}

.insurance-item img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.insurance-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.comparison-system {
    font-size: 26px;
    background: var(--primary-orange);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.comparison-system a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
}

.comparison-system:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
}

/* =============================================================================
   Services and Locations Section
   ============================================================================= */

.services-and-locations {
    background: linear-gradient(135deg, var(--light-orange), rgba(255, 255, 255, 0.9));
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.service-card,
.location-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover,
.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-card img:hover {
    transform: scale(1.05);
}

.location-card h3 {
    color: var(--primary-orange);
    font-size: 1.4rem !important;
    margin-bottom: 20px;
    font-weight: 600;
}

.location-image {
    display: block;
    margin-bottom: 20px;
}

.location-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.location-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.location-details {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-button {
    margin-top: 20px;
}

.contact-button a {
    background: var(--primary-orange);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-button a:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Products and Testimonials Section
   ============================================================================= */

.products-and-testimonials {
    background: var(--white);
    padding: 80px 0;
    border-top: 5px solid var(--primary-orange);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.services-overview {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.service-item {
    margin-bottom: 20px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem !important;
    font-weight: 500;
}

.service-item h3 a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.service-item h3 a:hover {
    color: var(--light-orange);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
    border-left-color: var(--light-orange);
}

.service-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem !important;
    margin: 0;
    padding-left: 10px;
}

.testimonials-card,
.consultation-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--light-orange);
}

.testimonials-card:hover,
.consultation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-orange);
}

.testimonials-card h3,
.consultation-card h3 {
    color: var(--primary-orange);
    font-size: 1.4rem !important;
    margin-bottom: 20px;
    font-weight: 600;
}

.testimonials-image img,
.consultation-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.testimonials-image img:hover,
.consultation-image img:hover {
    transform: scale(1.05);
}

.card-link a {
    background: var(--primary-orange);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.card-link a:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Company Overview Section
   ============================================================================= */

.company-overview {
    background: linear-gradient(135deg, var(--light-orange), rgba(255, 255, 255, 0.9));
    padding: 80px 0;
}

.company-overview h2 {
    text-align: center;
    color: var(--primary-orange);
    font-size: 2.2rem !important;
    margin-bottom: 50px;
    font-weight: 600;
    position: relative;
}

.company-overview h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.company-content {
    text-align: center;
}

.stores-showcase {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 50px;
}

.store-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 400px;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.store-card h3 {
    color: var(--primary-orange);
    font-size: 1.6rem !important;
    margin-bottom: 20px;
    font-weight: 600;
}

.store-image {
    display: block;
    margin-bottom: 15px;
}

.store-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.store-image img:hover {
    transform: scale(1.05);
}

.company-message {
    margin: 40px 0;
}

.company-message p {
    font-size: 1.2rem !important;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.8;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

.company-link a {
    background: var(--primary-orange);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.3);
}

.company-link a:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
}

/* =============================================================================
   Important Notice Section
   ============================================================================= */

.important-notice {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    text-align: center;
}

.important-notice p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 0.9rem !important;
    line-height: 1.8;
    padding: 0 20px;
}

/* =============================================================================
   Footer Section
   ============================================================================= */

.new-footer {
    background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
    color: white;
    padding: 60px 0 20px 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    padding: 0 20px;
}

.footer-column h3 {
    font-size: 1.4rem !important;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--light-orange);
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    padding-left: 0;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-column ul li a:hover {
    color: var(--light-orange);
    padding-left: 5px;
    transform: translateX(5px);
}

.footer-column ul li a i {
    font-size: 0.9rem;
    width: 16px;
}

.company-info {
    margin-bottom: 20px;
}

.company-info p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem !important;
    line-height: 1.6;
}

.store-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.store-info h4 {
    color: var(--light-orange);
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.store-info p {
    margin: 5px 0;
    font-size: 0.85rem !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.9rem !important;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light-orange);
}

.footer-links a::after {
    content: '|';
    margin-left: 15px;
    opacity: 0.5;
}

.footer-links a:last-child::after {
    display: none;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem !important;
    line-height: 1.6;
}

.copyright small {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem !important;
}

/* =============================================================================
   Responsive Design - Tablet (992px and below)
   ============================================================================= */

@media (max-width: 992px) {
    /* Grid Layouts */
    .services-grid,
    .content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .services-overview {
        grid-column: 1 / -1;
    }
    
    .stores-showcase {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .store-card {
        max-width: 500px;
    }
    
    /* Footer */
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-column:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    /* Header */
    .company-top-bar {
        padding: 10px 0;
    }

    .company-info-text {
        font-size: 0.75rem;
    }

    .company-logo {
        max-height: 30px;
    }

    .company-contact {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        font-size: 0.7rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .content-wrapper {
        margin-top: 120px;
    }

    /* Hero */
    .hero {
        min-height: 32vh !important;
        height: 10vh;
        width: 100%;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .hero-banners {
        display: none;
    }

    .mobile-hero-banners {
        display: block;
    }

    .mobile-hero-banners .hero-banner-card {
        position: relative;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
    }
}

/* =============================================================================
   Responsive Design - Mobile (768px and below)
   ============================================================================= */

@media (max-width: 768px) {
    /* Sections */
    .services-and-locations,
    .products-and-testimonials,
    .company-overview {
        padding: 50px 0;
    }
    
    .services-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card,
    .location-card,
    .testimonials-card,
    .consultation-card,
    .services-overview,
    .store-card {
        padding: 25px;
    }
    
    .company-overview h2 {
        font-size: 1.8rem !important;
        margin-bottom: 40px;
    }
    
    .stores-showcase {
        gap: 25px;
    }
    
    .company-message p {
        font-size: 1.1rem !important;
        margin: 30px auto;
    }
    
    .important-notice {
        padding: 30px 0;
    }
    
    .important-notice p {
        font-size: 0.85rem !important;
        padding: 0 15px;
    }

    /* Footer */
    .new-footer {
        padding: 40px 0 20px 0;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        padding: 0 10px;
    }

    .footer-column h3 {
        font-size: 1.2rem !important;
        margin-bottom: 20px;
    }

    .footer-links {
        text-align: left;
    }

    .footer-links a {
        display: block;
        margin: 8px 0;
    }

    .footer-links a::after {
        display: none;
    }

    /* Insurance Companies */
    .insurance-companies {
        padding: 40px 0;
    }

    .insurance-companies h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .insurance-grid {
        padding: 20px;
    }

    .insurance-item {
        margin-bottom: 20px;
    }

    .insurance-item img {
        height: 60px;
    }

    .comparison-system {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .comparison-system a {
        font-size: 1rem;
        line-height: 1.4;
    }
}

/* =============================================================================
   Responsive Design - Small Mobile (576px and below)
   ============================================================================= */

@media (max-width: 576px) {
    .service-card,
    .location-card,
    .testimonials-card,
    .consultation-card,
    .services-overview,
    .store-card {
        padding: 20px;
    }
    
    .company-overview h2 {
        font-size: 1.6rem !important;
    }
    
    .contact-button a,
    .card-link a {
        padding: 10px 20px;
        font-size: 0.9rem !important;
    }
    
    .company-link a {
        padding: 12px 25px;
        font-size: 1rem !important;
    }
    
    .service-item h3 {
        font-size: 1.1rem !important;
    }
    
    .service-item h3 a {
        padding: 8px;
    }

    /* Header Mobile */
    .company-info-text {
        font-size: 0.65rem;
        line-height: 1.2;
    }

    .company-logo-row {
        gap: 8px;
    }

    .company-logo {
        max-height: 45px;
    }

    .company-contact {
        gap: 6px;
        font-size: 0.65rem;
    }

    .content-wrapper {
        margin-top: 110px;
    }
}

/* =============================================================================
   Responsive Design - Extra Small Mobile (480px and below)
   ============================================================================= */

@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }

    .footer-column ul li a {
        font-size: 0.9rem !important;
    }

    .store-info {
        padding: 12px;
    }

    .copyright {
        font-size: 0.8rem !important;
    }
}

/* 新しいヒーローバナーセクション */
.hero-banners-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--light-orange), rgba(255, 255, 255, 0.9));
}

/* PC版では3列、タブレットでは2列、モバイルでは1列 */
@media (max-width: 768px) {
    .hero-banners-section {
        padding: 40px 0;
    }
}