/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Colors */
    --color-navy: #0F1C2E;
    --color-navy-light: #1A2E4C;
    --color-gold: #B89C5D;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-border: #E5E5E5;

    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;

    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-sp: 50px 0;
    
    /* Max Widths */
    --container-width: 1100px;
}

/* Reset & Normalize */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.center {
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px;
    color: var(--color-navy);
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 280px;
}

.btn-navy-outline {
    border: 1px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}
.btn-navy-outline:hover {
    background: var(--color-white);
    color: var(--color-navy);
}

.btn-arrow {
    margin-left: 10px;
}

/* ==========================================================================
   1. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 60px 0 0;
    background-color: var(--color-navy);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Cityscape background overlay */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    color: var(--color-white);
    width: 50%;
    padding-bottom: 60px;
}

.hero-title-main {
    font-family: var(--font-serif);
    font-size: 48px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.hero-image {
    width: 45%;
    display: flex;
    align-items: flex-end;
    align-self: flex-end;
}

.hero-person-img {
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    object-fit: cover;
    /* Mask or mask image can be applied if it had a proper alpha, using unsplash photo for now */
    border-radius: 8px 8px 0 0;
}

/* ==========================================================================
   2. Problems Section
   ========================================================================== */
.problems-section {
    padding: var(--section-padding);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.problem-item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.problem-icon {
    width: 32px;
    height: 32px;
    margin-right: 20px;
    opacity: 0.8;
}

.problem-text {
    font-size: 18px;
    font-weight: 500;
}

/* ==========================================================================
   3. Assurances Section
   ========================================================================== */
.assurances-section {
    padding: var(--section-padding);
}

.assurances-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.assurance-card {
    background: var(--color-white);
    padding: 40px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border-top: 4px solid var(--color-gold);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.assurance-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assurance-icon img {
    width: 100%;
    height: 100%;
}

.assurance-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
    color: var(--color-navy);
}

.assurance-desc {
    font-size: 14px;
    color: var(--color-text-light);
    text-align: left;
    line-height: 1.6;
}

/* ==========================================================================
   4. Difficult Properties Section
   ========================================================================== */
.difficult-properties-section {
    padding: var(--section-padding);
}

.difficult-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.difficult-item {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 20px 30px;
    border-radius: 4px;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.difficult-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.difficult-icon {
    width: 28px;
    height: 28px;
    margin-right: 16px;
    opacity: 0.7;
}

.difficult-item span {
    font-size: 16px;
    font-weight: 500;
}

/* ==========================================================================
   5. Flow Section
   ========================================================================== */
.flow-section {
    padding: var(--section-padding);
    background-color: var(--color-navy-light);
    background-image: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.flow-section .section-title.text-white {
    color: var(--color-white);
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 15px;
}

.flow-step {
    flex: 1;
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.step-head {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-num {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 10px;
    font-style: italic;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
}

.step-body {
    padding: 24px 20px;
    flex: 1;
}

.step-body p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}

.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 24px;
    width: 20px;
}
.flow-arrow::after {
    content: "▶";
    opacity: 0.5;
}

/* ==========================================================================
   6. About Section
   ========================================================================== */
.about-section {
    padding: var(--section-padding);
}

.about-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.about-text-area {
    flex: 1;
}

.about-main-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.5;
    margin-bottom: 15px;
}

.title-line {
    width: 40px;
    height: 3px;
    background-color: var(--color-gold);
    margin-bottom: 30px;
}

.about-desc {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--color-text);
}

.support-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.support-list ul li {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.support-list ul li span {
    color: var(--color-gold);
    margin-right: 10px;
    font-weight: bold;
}

.about-company-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-image {
    width: 100%;
    margin-bottom: -40px;
    position: relative;
    z-index: 1;
}

.about-image img {
    border-radius: 4px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.company-card {
    background: var(--color-white);
    padding: 40px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    position: relative;
    z-index: 2;
    margin-left: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.company-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 20px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.company-table th {
    width: 100px;
    font-weight: 500;
    color: var(--color-text-light);
}

.company-table td {
    color: var(--color-text);
}

/* ==========================================================================
   7. Cases Section
   ========================================================================== */
.cases-section {
    padding: var(--section-padding);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: var(--color-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.case-image {
    position: relative;
    height: 200px;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-badge {
    position: absolute;
    bottom: -1px;
    left: 0;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
}

.case-body {
    padding: 30px 20px;
    flex: 1;
}

.case-info {
    margin-bottom: 20px;
}
.case-info:last-child {
    margin-bottom: 0;
}

.case-info h4 {
    font-size: 14px;
    color: var(--color-navy);
    margin-bottom: 5px;
    font-weight: 600;
}

.case-info p {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.6;
}

/* ==========================================================================
   8. Compliance Section
   ========================================================================== */
.compliance-section {
    background: var(--color-navy);
    padding: 60px 0;
    color: var(--color-white);
}

.compliance-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.compliance-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

/* ==========================================================================
   9. Contact Section
   ========================================================================== */
.contact-section {
    padding: var(--section-padding);
    background: #F0F4F8; /* Light blue-ish gray for separation */
}

.contact-lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.contact-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--color-navy);
}

.contact-icon {
    margin-right: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.contact-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-navy);
    font-family: 'Montserrat', sans-serif; /* fallback or if added later */
}
.contact-value.mail {
    font-size: 18px;
}
.contact-value.line-text {
    font-size: 16px;
}

.contact-note {
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: 5px;
}

.contact-line {
    position: relative;
    padding-right: 90px;
}

.qr-code {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #eee; /* placeholder background */
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright {
    font-size: 13px;
    opacity: 0.7;
}

/* ==========================================================================
   Responsive (Media Queries)
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .about-container {
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .problems-grid,
    .difficult-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-content {
        width: 100%;
        padding-bottom: 30px;
    }
    
    .hero-title-main {
        font-size: 32px;
    }
    
    .hero-image {
        width: 80%;
        margin: 0 auto;
        align-self: center;
    }
    
    .assurances-grid,
    .cases-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-steps {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px auto;
    }
    
    .about-container {
        flex-direction: column;
    }
    
    .company-card {
        margin-left: 0;
        margin-top: -30px;
        padding: 24px;
    }

    .contact-line {
        padding-right: 20px;
    }
    
    .qr-code {
        display: none; /* Hide on mobile to save space, user can tap to add friend */
    }
}
