/*
Theme Name: Mitsutomo Official V31 Final
Description: 三友株式会社 最終仕様版 (V31)。16セクション完全実装、日本大手不動産企業級のデザイン。
Version: 31.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --bg-white: #FFFFFF;
    --warm-white: #FCFAF8;
    --charcoal: #1A1A1A;
    --gold: #C5A059;
    --border: rgba(0, 0, 0, 0.08);
    --blue-gray: #F0F2F5;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg-white);
    color: #333;
    line-height: 1.85;
    font-size: 14px;
}

.serif { font-family: 'Noto Serif JP', serif; }

/* Header */
header {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.nav-flex { height: 90px; display: flex; justify-content: space-between; align-items: center; }

.logo-box { display: flex; align-items: center; text-decoration: none; color: inherit; }
.logo-text { line-height: 1.1; margin-left: 15px; }
.logo-main { font-size: 18px; font-weight: 700; letter-spacing: 0.05em; color: #000; }
.logo-en { font-size: 9px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }

nav a { text-decoration: none; color: #1a1a1a; font-size: 11px; font-weight: 700; margin-left: 30px; transition: 0.3s; letter-spacing: 0.1em; }
nav a:hover { color: var(--gold); }

/* Hero Section */
.hero {
    height: 100vh; 
    display: flex; 
    align-items: center; 
    background: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070') center/cover no-repeat; 
    position: relative;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
}
.hero-content { position: relative; z-index: 10; max-width: 800px; padding-left: 5%; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero-content h1 { font-size: 58px; line-height: 1.2; margin-bottom: 30px; letter-spacing: 0.1em; }
.hero-content p { font-size: 18px; margin-bottom: 50px; line-height: 2; opacity: 0.9; }

/* Sections */
.section { padding: 140px 0; border-bottom: 1px solid var(--border); }
.section-alt { background: var(--warm-white); }
.label { display: block; text-align: center; color: var(--gold); font-size: 11px; letter-spacing: 0.4em; margin-bottom: 20px; font-weight: 700; }
.title { font-size: 36px; text-align: center; margin-bottom: 90px; font-weight: 700; color: #000; position: relative; }
.title::after { content: ''; display: block; width: 40px; height: 2px; background: var(--gold); margin: 25px auto 0; }

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

/* Strength/Service Cards */
.card { background: #fff; border: 1px solid var(--border); transition: 0.4s; }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.card-img { height: 280px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.card:hover .card-img img { scale: 1.1; }
.card-body { padding: 45px; }
.card h3 { font-size: 18px; margin-bottom: 20px; color: var(--gold); font-weight: 700; }
.card p { font-size: 14px; color: #555; }

/* Table System */
.info-table { width: 100%; border-collapse: collapse; max-width: 1000px; margin: 0 auto; background: #fff; }
.info-table th { text-align: left; padding: 25px 30px; border-bottom: 1px solid var(--border); background: #F8F9FA; width: 250px; font-weight: 700; color: var(--charcoal); }
.info-table td { padding: 25px 30px; border-bottom: 1px solid var(--border); color: #333; }

/* FAQ */
.faq-item { margin-bottom: 30px; border: 1px solid var(--border); background: #fff; padding: 30px; }
.faq-q { font-weight: 700; color: var(--gold); margin-bottom: 10px; font-size: 16px; }

/* Footer */
footer { padding: 100px 0 60px; background: #FDFDFD; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; margin-bottom: 80px; }
.copyright { text-align: center; font-size: 11px; color: #999; margin-top: 50px; border-top: 1px solid #f0f0f0; padding-top: 30px; }

/* ==================================================
   MOBILE RESPONSIVE OVERRIDES (ENGLISH ONLY)
   ================================================== */
@media screen and (max-width: 768px) {
    /* 1. Header Layout */
    header {
        padding: 5px 0 !important;
        height: auto !important;
    }
    .nav-flex {
        height: auto !important;
        padding: 5px 15px !important;
    }

    /* 2. Logo Adjustments (Overrides Inline Styles) */
    /* Shrink the Icon */
    .logo-box img { 
        height: 22px !important; 
        width: auto !important;
        margin-right: 8px !important;
        margin-top: 0 !important;
    }
    
    /* Shrink Japanese Text "三友株式会社" */
    .logo-main { 
        font-size: 17px !important; 
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    
    /* Remove English Sub-title on mobile for space */
    .logo-en { 
        display: none !important; 
    }

    /* 3. Hero Section (First View Title) */
    /* This targets the giant "70px" or "58px" text in your screenshot */
    h1[style*="font-size"], 
    .hero-content h1 {
        font-size: 26px !important; 
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    /* 4. Section Spacing (Fixes the "Giant Section" issue) */
    .section { 
        padding: 35px 0 !important; 
    }
    
    /* Sub-titles (Strength, Service, etc.) */
    .title { 
        font-size: 22px !important; 
        margin-bottom: 25px !important; 
    }

    /* 5. Grid Layouts (Stacking Columns) */
    .grid-2, .grid-3, .grid-4 { 
        display: block !important; 
    }
    .grid-2 > div, .grid-4 > div { 
        width: 100% !important; 
        margin-bottom: 25px !important;
    }

    /* 6. Navigation Control */
    nav { 
        display: none !important; 
    }
}/* ==================================================
   SAFE MOBILE PATCH (English Only)
   ================================================== */
@media screen and (max-width: 768px) {
    
    /* 1. Fix Logo text size without breaking header */
    .logo-main { 
        font-size: 20px !important; 
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    /* 2. Fix Footer Layout (The "Messy" part) */
    /* Force the footer grid to be a single vertical column */
    .footer-grid { 
        display: block !important; 
        padding: 0 20px !important;
    }

    /* Make each footer block take the full width */
    .footer-grid > div {
        width: 100% !important;
        margin-bottom: 40px !important;
        text-align: left !important;
    }

    /* Prevent text from vertical-stacking in menus */
    .footer-grid ul, .footer-grid nav {
        display: block !important;
        padding: 0 !important;
    }
    
    .footer-grid li, .footer-grid a {
        display: inline-block !important;
        margin-right: 20px !important;
        margin-bottom: 12px !important;
        font-size: 13px !important;
    }

    /* 3. Global Section Spacing Cleanup */
    .section { 
        padding: 40px 0 !important; 
    }
    
    /* Ensure Strength/Service grids don't overlap */
    .grid-2, .grid-3, .grid-4 { 
        display: block !important; 
    }
    .grid-2 > div, .grid-4 > div { 
        width: 100% !important; 
        margin-bottom: 25px !important;
    }
}/* ==================================================
   MOBILE CONTENT PATCH (V33.4.0)
   ================================================== */
@media screen and (max-width: 768px) {

    /* 1. Fix Company Info Table (Stack labels and content) */
    .info-table, 
    .company-info-table,
    table, 
    tbody, 
    tr, 
    th, 
    td {
        display: block !important; 
        width: 100% !important;
    }

    th, td {
        padding: 12px 15px !important;
        text-align: left !important;
        border: none !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    th {
        background-color: #f8f8f8 !important;
        color: #C5A059 !important;
        font-weight: 700 !important;
        border-top: 1px solid #eeeeee !important;
    }

    /* 2. Middle Grids Fix (Stack Strength & Service cards) */
    .grid-2, .grid-3, .grid-4 {
        display: block !important; 
    }

    .grid-2 > div, 
    .grid-4 > div, 
    .card,
    .service-item {
        width: 100% !important;
        margin-bottom: 30px !important;
        padding: 0 5px !important;
    }

    /* 3. Section Tightening (Fixes the giant spacing issue) */
    .section { 
        padding: 35px 0 !important; 
    }
    
    .title { 
        font-size: 22px !important; 
        margin-bottom: 30px !important; 
    }

    /* 4. Text and Paragraph spacing */
    .section p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
}/* Ensure line breaks are forced on mobile */
@media screen and (max-width: 768px) {
    .info-table td br {
        display: block !important;
        content: "" !important;
        margin-top: 8px !important; /* This creates the gap between lines */
    }
}/* ==================================================
   MOBILE LOGO & TEXT ADJUSTMENT (V33.9.0)
   ================================================== */
@media screen and (max-width: 768px) {

    /* 1. Logo Position: Move to Top-Left */
    .logo-box {
        display: flex !important;
        align-items: center !important;
        /* Adjust these two values to move further left or up */
        margin-left: -10px !important; /* Negative value moves it LEFT */
        margin-top: -5px !important;  /* Negative value moves it UP */
    }

    /* 2. Logo Icon Size Control */
    .logo-box img {
        height: 28px !important; /* Slightly larger icon to match bigger text */
        width: auto !important;
    }

    /* 3. Company Name Font Size (三友株式会社) */
    .logo-main {
        font-size: 26px !important; /* Increased from 22px to make it prominent */
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        color: #000000 !important;
        white-space: nowrap !important;
        margin-left: 5px !important; /* Space between icon and text */
    }

    /* 4. Hide English Subtitle if it crowds the header */
    .logo-en {
        display: none !important;
    }
}/* ==================================================
   CONTACT PHONE STYLING (V34.2.0)
   ================================================== */
/* This works for both Desktop and Mobile */
.contact-section a[href^="tel:"], 
.contact-box a[href^="tel:"],
a[href^="tel:06-4708-6863"] {
    color: #ffffff !important;        /* Pure White */
    font-size: 24px !important;       /* Larger Font Size */
    font-weight: 700 !important;      /* Extra Bold */
    text-decoration: none !important; /* Remove underline */
    display: inline-block !important;
    margin-top: 5px !important;
}

/* Specific Mobile Adjustment */
@media screen and (max-width: 768px) {
    a[href^="tel:"] {
        font-size: 22px !important;   /* Slightly adjusted for small screens */
    }
}/* ==================================================
   TABLE PHONE NUMBER FIX (V34.3.0)
   ================================================== */
/* 1. Target the phone numbers inside the Info Table */
.info-table td a, 
.company-info-table td a {
    color: #333333 !important;      /* Professional Dark Gray/Black */
    text-decoration: none !important;
    font-size: 16px !important;      /* Proper readable size for table */
    font-weight: 500 !important;
}

/* 2. Fix the layout of TEL/FAX row on Mobile */
@media screen and (max-width: 768px) {
    /* Prevent the slash and numbers from jumping lines */
    .info-table td, 
    .company-info-table td {
        display: block !important;
        width: 100% !important;
        line-height: 1.6 !important;
    }
    
    /* If the numbers are still blue on mobile, force them here */
    a[href^="tel"] {
        color: inherit !important; /* Follow the parent color (Black) */
    }
}/* ==================================================
   JAPANESE TYPOGRAPHY & LAYOUT (V34.4.0)
   ================================================== */

/* Hero Section (Image 1) - Premium Serif Style */
.hero-content p, 
.section-01-text { 
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif !important;
    line-height: 2.2 !important;       /* Breathable vertical spacing */
    letter-spacing: 0.1em !important;  /* Elegant character tracking */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4) !important;
    margin-bottom: 25px !important;
}

/* About Section (Image 2) - Clean Sans-Serif Style */
.about-text, 
.section-description {
    font-family: "Helvetica Neue", "Yu Gothic", "Meiryo", sans-serif !important;
    text-align: justify !important;    /* Clean edges */
    text-justify: inter-character !important;
    line-height: 2.0 !important;       /* Japanese standard readability */
    letter-spacing: 0.05em !important;
    color: #333333 !important;
    padding: 0 10px !important;
}

/* Mobile Fine-Tuning */
@media screen and (max-width: 768px) {
    .hero-content p {
        font-size: 15px !important;
        text-align: left !important;
        line-height: 1.8 !important;
    }
    
    .about-text {
        font-size: 14px !important;
        letter-spacing: 0.03em !important; /* Slightly tighter for small screens */
    }
}