:root {
    /* Colors */
    --color-primary: #0056b3;
    /* Blue - Trust/Cleanliness */
    --color-primary-dark: #004494;
    --color-secondary: #f39c12;
    /* Orange - For "Anshin" and accents */
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f4f8fb;
    /* Very light blue tint */
    --color-white: #ffffff;

    /* Typography */
    --font-family-base: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Utility Classes */
.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

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

.font-bold {
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slogan {
    font-size: 14.4px;
    color: var(--color-text-light);
    margin-bottom: 2px;
    font-weight: 500;
}

.r-mark {
    font-size: 0.9em;
    opacity: 0.7;
    vertical-align: sub;
}

.logo {
    font-size: 28.8px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

/* Hero Section */
.hero {
    margin-top: var(--header-height);
    height: 600px;
    background-color: var(--color-bg-light);
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../img/img_main.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1035px;
    /* Increased to 1035px per request */
    padding: var(--spacing-xl);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.4;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Strong Points Section */
.bg-white {
    background-color: var(--color-white);
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.point-card {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
}


.point-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.point-title {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    min-height: 3.2rem;
    /* Align titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.point-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* PFAS Background Section */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-content-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 cards side by side on PC */
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.bg-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-primary);
    /* Use top border for card feel */
    border-left: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
    /* Square shape on PC */
}

.bg-card-img {
    width: 100%;
    height: 45%;
    /* Adjust to roughly half the card */
    object-fit: contain;
    /* Or cover depending on image ratio */
    border-radius: 4px;
    margin-bottom: var(--spacing-md);
    display: block;
    background-color: #f9f9f9;
}

.bg-card.warning {
    border-top-color: var(--color-secondary);
    border-left-color: transparent;
}

.bg-card.danger {
    border-top-color: #e74c3c;
    border-left-color: transparent;
}

.bg-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
    text-align: center;
}

.bg-card p,
.bg-list {
    font-size: 0.9rem;
    flex-grow: 1;
    overflow-y: auto;
    /* Allow scroll if text is too long for square */
    margin: 0;
}

.bg-list {
    padding-left: var(--spacing-md);
}

.bg-list li {
    margin-bottom: var(--spacing-xs);
}

/* Service Flow Section */
.flow-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background-color: var(--color-white);
    border: 2px solid var(--color-bg-light);
    border-radius: 8px;
    padding: var(--spacing-lg);
    width: 100%;
    position: relative;
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.step-card.future {
    border-style: dashed;
    background-color: var(--color-bg-light);
}

.step-image-wrapper {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background-color: var(--color-bg-light);
}

.step-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.step-number {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
}

.step-title {
    font-size: 1.25rem;
    color: var(--color-text-main);
    font-weight: 700;
    margin: 0;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.step-arrow {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin: var(--spacing-sm) 0;
}

/* Responsive: Mobile layout */
@media (max-width: 768px) {
    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-image-wrapper {
        width: 120px;
        height: 120px;
        margin-bottom: var(--spacing-md);
    }

    .step-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .step-title {
        font-size: 1.1rem;
    }
}

/* Contact Section */
.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.badge-required {
    background-color: #e74c3c;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: var(--spacing-md);
}

.btn-lg {
    padding: 16px 48px;
    font-size: 1.1rem;
    min-width: 240px;
}

/* Company Profile Section */
.company-profile {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: var(--spacing-lg);
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.company-item {
    display: flex;
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-md);
}

.company-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.company-item dt {
    width: 140px;
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.company-item dd {
    color: var(--color-text-main);
    line-height: 1.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Enhanced Hover Effects */


.step-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* Contact CTA */
.contact-cta {
    text-align: center;
    margin-top: 40px;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Responsive adjustments for Mobile specific overrides */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    .btn-lg {
        width: 100%;
    }

    .company-item {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .company-item dt {
        width: 100%;
    }

    .bg-content-wrapper {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
    }

    .bg-card {
        aspect-ratio: auto;
        /* Remove square constraint on mobile */
        border-top: none;
        border-left: 5px solid var(--color-primary);
        /* Revert border style */
        min-height: auto;
    }

    .bg-card.warning {
        border-left-color: var(--color-secondary);
    }

    .bg-card.danger {
        border-left-color: #e74c3c;
    }

    .bg-card-img {
        height: 200px;
        object-fit: cover;
    }
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question.active {
    color: var(--color-primary);
}

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.faq-toggle-icon::before {
    width: 16px;
    height: 2px;
}

.faq-toggle-icon::after {
    width: 2px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Customer Solutions Section */
.solution-card {
    max-width: 1200px;
    margin: 0 auto var(--spacing-xl);
    background-color: var(--color-bg-light);
    border-radius: 8px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.solution-card:last-child {
    margin-bottom: 0;
}

.solution-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.solution-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.solution-subtitle {
    font-size: 1.1rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    border-left: 4px solid var(--color-secondary);
    padding-left: var(--spacing-sm);
}

.solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    color: var(--color-text-light);
}

.solution-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.solution-answer p {
    color: var(--color-text-main);
    line-height: 1.8;
}

.solution-answer strong {
    color: var(--color-primary);
}

/* Responsive adjustments for solutions section */
@media (max-width: 768px) {
    .solution-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .solution-title {
        font-size: 1.25rem;
    }
}