:root {
    --primary: #001f3f; /* Deep Navy */
    --accent: #c5a059;  /* Gold */
    --accent-light: #e0c9a0;
    --text-main: #333;
    --text-white: #fff;
    --bg-light: #f4f7f9;
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-heading: 'Montserrat', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--text-white);
    overflow-x: hidden;
}

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

/* Header */
header {
    background: var(--glass);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.brand-ihy { color: var(--primary); }
.brand-sep { margin: 0 8px; color: var(--accent); }
.brand-towa { font-size: 0.9rem; color: #666; }

.desktop-nav a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.desktop-nav a:hover { color: var(--accent); }

.nav-cta {
    background-color: var(--accent);
    color: var(--text-white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* Hero */
.hero {
    height: 100vh;
    background-color: var(--primary);
    background-image: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.4)), url('images/姉さん.png');
    background-position: center 15%;
    background-size: auto 160%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-white);
    text-align: center;
}
@media (max-width: 768px) {
    .hero {
        background-size: 200% auto;
        background-position: center 10%;
        height: auto;
        min-height: 100vh;
        padding-top: 15vh;
        padding-bottom: 60px;
    }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(transparent, var(--text-white));
}

.hero-content {
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 30px;
}

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

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns .btn-primary, .hero-btns .btn-secondary {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    margin: 10px;
    transition: 0.3s;
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Sections Common */
section { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary);
}
.section-subtitle {
    font-size: 1.1rem;
    color: #666;
}
.text-center { text-align: center; }

/* Partnership */
.partnership { background: var(--bg-light); }
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.partner-text p { margin-bottom: 20px; font-size: 1.1rem; }
.partner-benefits {
    background: var(--text-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.p-benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.p-benefit-item:last-child { margin-bottom: 0; }
.p-benefit-item i {
    color: var(--accent);
    font-size: 1.5rem;
    margin-right: 20px;
}

/* Problems */
.problem-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.p-card {
    background: var(--text-white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.p-card:hover { transform: translateY(-10px); }
.p-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.solution-ribbon {
    margin-top: 60px;
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Lineup Modern */
.lineup-modern { background: #fff; }
.product-category { margin-bottom: 80px; }
.product-category h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}
.product-category h3 i { margin-right: 15px; color: var(--accent); }

.product-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-item {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
}

.product-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}
.product-tag.luxury { background: #333; }
.product-tag.innovation { background: #a60000; }

.product-item h4 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.product-copy {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1rem;
}
.product-features {
    list-style: none;
    margin-bottom: 30px;
}
.product-features li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.product-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.btn-download {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    transition: 0.3s;
}
.btn-download:hover { opacity: 0.8; }
.catalog-placeholder {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Support Steps */
.support-steps { background: var(--bg-light); }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.step-item {
    background: white;
    padding: 40px;
    border-radius: 15px;
    position: relative;
}
.step-num {
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(197, 160, 89, 0.1);
    position: absolute;
    top: 20px;
    right: 30px;
}
.step-item h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* Contact Section (Replaced Footer CTA) */
.contact-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--primary);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.contact-info-card p {
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-tel-large {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cta-tel-large i {
    font-size: 2rem;
    color: var(--accent);
    margin-right: 15px;
}

.cta-tel-large a {
    font-size: 2.2rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-family: var(--font-heading);
}

.tel-hours {
    font-size: 0.9rem;
    opacity: 0.7;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.contact-company-info strong {
    color: var(--accent-light);
}

/* Custom Form */
.contact-form-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group.row {
    display: flex;
    gap: 20px;
}

.form-group.row .col {
    flex: 1;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.custom-form .required {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    vertical-align: middle;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
    background: #fafafa;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.checkbox-label {
    cursor: pointer;
    font-weight: 500 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

.btn-submit {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    max-width: 400px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

/* --- Case Studies --- */
.cases-section {
    background: #fff;
}
.case-category {
    margin-bottom: 50px;
}
.case-category h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    border-left: 5px solid var(--accent);
    padding-left: 15px;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.case-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background: #000;
}
.case-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s, opacity 0.3s;
}
.case-item:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}
.case-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 31, 63, 0.8);
    color: white;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Cases Footer Button */
.cases-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.5;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
    transition: all 0.3s ease;
}
.cases-footer .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(197, 160, 89, 0.4);
}


/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.lightbox-info {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.lightbox-location {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
}
.lightbox-btn {
    display: inline-block;
    padding: 12px 30px !important;
}

/* Category Catch */
.category-catch {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: -20px;
    margin-bottom: 30px;
    background: var(--accent-light);
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
}

/* Product Image Link Hover */
.product-img-link {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.product-item:hover .product-img-link {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Responsive Overrides */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-group.row {
        flex-direction: column;
        gap: 0;
    }
    .form-group.row .col {
        margin-bottom: 25px;
    }
    .form-group.row .col:last-child {
        margin-bottom: 0;
    }
    .contact-form-container {
        padding: 30px 20px;
    }
}

/* Footer */
footer {
    padding: 30px 0;
    background: #000;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}

/* Product Image Styling */
.product-img-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

.product-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-item:hover .product-img-container img {
    transform: scale(1.1);
}

/* Animations and Premium Effects */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Refinement */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Button Refinement */
.btn-primary, .btn-secondary, .btn-download {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* Components & Responsive Extra */
.header-inner { position: relative; }

/* Benefits Cards */
.benefits-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.benefit-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent);
}
.benefit-card .b-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}
.benefit-card h3 {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Fujimi Label */
.fujimi-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Nav Toggle (Hamburger Menu) */
.nav-toggle, .nav-toggle-label {
    display: none;
}

@media (max-width: 900px) {
    .nav-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1000;
        margin-left: auto;
    }
    .nav-toggle-label span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary);
        border-radius: 2px;
        transition: 0.3s;
    }
    .desktop-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s, visibility 0.3s;
        z-index: 999;
    }
    .desktop-nav a {
        display: block;
        margin-left: 0;
        padding: 15px 20px;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    .desktop-nav .nav-cta {
        margin: 15px auto 20px;
        width: 80%;
    }
    .nav-toggle:checked ~ .desktop-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 0.95rem;
        margin-left: 10px;
    }
    .nav-toggle-label {
        margin-right: 15px;
    }
    .hero-badge {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.6;
    }
    .hero {
        background-color: var(--primary);
        background-image: 
            linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.4)), 
            url('images/姉さん.png');
        background-size: cover;
        background-position: 25% top;
        background-repeat: no-repeat;
        height: auto;
        min-height: unset;
        padding-top: 80px;
        padding-bottom: 40px;
    }
    .product-img-container {
        height: 200px;
    }
    .product-flex {
        grid-template-columns: 1fr;
    }
    .benefits-cards,
    .problem-cards,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
