/*
Theme Name: Inaho Corporate
Theme URI: 
Author: Antigravity
Author URI: 
Description: 株式会社イナホのコーポレートおよびLPガス事業用テーマ
Version: 1.0
License: Proprietary
Text Domain: inaho
*/

/* Reset & Basics */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

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

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #004d99; /* Inaho Blue */
    text-decoration: none;
}

.global-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.global-nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.global-nav a:hover {
    color: #004d99;
}

/* ==========================================================================
   LP Gas LP Styles
   ========================================================================== */
:root {
    --primary-blue: #1E3A8A;
    --accent-orange: #EA580C;
    --bg-light: #F9FAFB;
    --text-main: #333;
}

/* Header Override */
.logo { font-size: 24px; font-weight: bold; color: var(--primary-blue); text-decoration: none; }
.nav-links { display: flex; align-items: center; }
.nav-links a { margin-left: 20px; text-decoration: none; color: var(--text-main); font-weight: bold; }
.nav-links a.active { color: var(--primary-blue); border-bottom: 2px solid var(--primary-blue); }
.contact-btn-header { margin-left: 20px; padding: 10px 20px; background: var(--accent-orange) !important; color: #fff !important; border-radius: 20px; text-decoration: none; font-weight: bold; }

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.45)), url('images/bg.webp?v=4') center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.6); }
.hero p { font-size: 1.2rem; margin-bottom: 40px; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.cta-container { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s;
}
.cta-btn:hover { transform: translateY(-3px); }
.btn-personal { background: var(--accent-orange); color: #fff; }
.btn-business { background: #fff; color: var(--primary-blue); border: 2px solid #fff; }
.btn-business:hover { background: #f0f0f0; color: var(--primary-blue); }

/* Features */
.features { padding: 80px 20px; background: var(--bg-light); text-align: center; }
.features h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 50px; font-weight: bold; }
.feature-grid { display: flex; justify-content: center; gap: 30px; max-width: 1000px; margin: 0 auto; flex-wrap: wrap; }
.feature-card { background: #fff; padding: 50px 30px 40px; border-radius: 16px; flex: 1; min-width: 250px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #E5E7EB; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 15px 25px rgba(0,0,0,0.1); }

/* Memorable Icon Design */
.feature-icon-wrapper {
    position: relative;
    width: 80px; height: 80px;
    margin: 0 auto 30px;
    display: flex; justify-content: center; align-items: center;
    background: var(--primary-blue);
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 4px var(--accent-orange), 0 10px 20px rgba(0,0,0,0.1);
}
.feature-icon-wrapper svg {
    width: 40px; height: 40px;
    color: #fff;
}
.feature-title { font-weight: bold; font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-blue); line-height: 1.4; }
.feature-card p { text-align: left; line-height: 1.8; margin: 0; color: #444; }

/* Flow */
.flow { padding: 80px 20px; background: #fff; text-align: center; }
.flow h2 { font-size: 2.2rem; color: var(--primary-blue); margin-bottom: 50px; font-weight: bold; }
.flow-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.flow-step { display: flex; align-items: center; background: #fff; border-radius: 8px; padding: 20px; text-align: left; position: relative; box-shadow: 0 2px 4px rgba(0,0,0,0.03); border: 1px solid #E5E7EB; }
.flow-step-num { flex-shrink: 0; width: 60px; height: 60px; background: var(--primary-blue); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; font-weight: bold; margin-right: 20px; }
.flow-step-content h3 { color: var(--primary-blue); margin: 0 0 5px 0; font-size: 1.2rem; }
.flow-step-content p { margin: 0; color: #555; }
.flow-arrow { color: #ccc; font-size: 2rem; margin: 10px 0; }

/* Inquiry Form Area */
.inquiry { padding: 80px 20px; max-width: 800px; margin: 0 auto; background: var(--bg-light); border-radius: 12px; margin-top: 40px; margin-bottom: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.inquiry h2 { text-align: center; color: var(--primary-blue); font-size: 2rem; margin-bottom: 30px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; box-sizing: border-box; font-size: 1rem;
}
.form-group textarea { height: 120px; resize: vertical; }
.submit-btn { width: 100%; padding: 15px; background: var(--accent-orange); color: #fff; font-size: 1.2rem; font-weight: bold; border: none; border-radius: 5px; cursor: pointer; transition: background 0.2s; }
.submit-btn:hover { background: #e67e00; }

/* ==========================================================================
   Responsive (Mobile) Styles
   ========================================================================== */
@media (max-width: 768px) {
    /* Header */
    .site-header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-links a {
        margin-left: 0;
        font-size: 0.9rem;
        padding: 5px;
    }
    .contact-btn-header {
        margin-left: 0;
        padding: 8px 15px;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

    /* Hero */
    .hero {
        padding: 60px 15px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cta-container {
        flex-direction: column;
    }
    .cta-btn {
        width: 100%;
        box-sizing: border-box;
    }

    /* Features & Typography */
    .features h2, .flow h2, .inquiry h2 {
        font-size: 1.8rem;
    }
    .feature-card {
        padding: 40px 20px 30px;
    }

    /* Flow */
    .flow-step {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
    }
    .flow-step-num {
        margin: 0 auto 15px auto;
    }
}

/* ==========================================================================
   Company Profile Styles
   ========================================================================== */
.company-main .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.page-hero {
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 60px;
}
.page-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-hero p { font-size: 1.2rem; opacity: 0.8; margin: 0; letter-spacing: 2px; }

/* Table */
.company-overview { margin-bottom: 80px; }
.company-table { width: 100%; border-collapse: collapse; margin-bottom: 50px; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.company-table th, .company-table td { padding: 20px; border-bottom: 1px solid #E5E7EB; text-align: left; }
.company-table th { background: var(--bg-light); color: var(--primary-blue); width: 25%; font-weight: bold; }
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: none; }

/* Message & Philosophy */
.company-message { margin-bottom: 50px; line-height: 1.8; color: #444; font-size: 1.1rem; }
.company-philosophy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.phil-card { background: #fff; padding: 30px; border-top: 4px solid var(--accent-orange); box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-radius: 0 0 8px 8px; }
.phil-card h3 { color: var(--primary-blue); margin-top: 0; margin-bottom: 15px; font-size: 1.3rem; }
.phil-card p { margin: 0; color: #555; line-height: 1.7; }

/* Section Titles */
.company-history h2, .company-access h2 { text-align: center; color: var(--primary-blue); font-size: 2rem; margin-bottom: 40px; }

/* History Timeline */
.company-history { margin-bottom: 80px; }
.timeline { list-style: none; padding: 0; position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 160px; top: 0; bottom: 0; width: 2px; background: var(--primary-blue); opacity: 0.2; }
.timeline li { display: flex; margin-bottom: 30px; position: relative; }
.timeline .time { width: 160px; flex-shrink: 0; font-weight: bold; color: var(--primary-blue); padding-right: 30px; text-align: right; position: relative; white-space: nowrap; }
.timeline .time::after { content: ''; position: absolute; right: -6px; top: 5px; width: 14px; height: 14px; background: var(--accent-orange); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent-orange); }
.timeline .desc { padding-left: 30px; color: #444; line-height: 1.6; }

/* Access */
.company-access { margin-bottom: 80px; }
.access-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.access-info h3 { color: var(--primary-blue); font-size: 1.5rem; margin-bottom: 20px; }
.access-info p { margin-bottom: 10px; color: #444; }
.access-info a { color: var(--accent-orange); text-decoration: none; }
.access-note { margin-top: 20px; padding-top: 20px; border-top: 1px solid #E5E7EB; font-size: 0.9rem; color: #666 !important; }
.access-map iframe { border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); max-width: 100%; box-sizing: border-box; }

/* Responsive Overrides for Company Profile */
@media (max-width: 768px) {
    .company-table th, .company-table td { display: block; width: 100%; box-sizing: border-box; }
    .company-table th { border-bottom: none; padding-bottom: 5px; }
    .company-table td { padding-top: 5px; margin-bottom: 15px; word-break: break-word; }
    
    .timeline::before { left: 20px; }
    .timeline li { flex-direction: column; }
    .timeline .time { width: 100%; text-align: left; padding-left: 45px; padding-right: 0; margin-bottom: 10px; }
    .timeline .time::after { left: 14px; right: auto; }
    .timeline .desc { padding-left: 45px; }
    
    .access-content { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--bg-light);
    color: #666;
    border-top: 1px solid #E5E7EB;
    margin-top: 40px;
}
.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Contact Form 7 Styles */
.wpcf7-radio {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap input[type="tel"],
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
}
.wpcf7-form-control-wrap textarea {
    height: 120px;
    resize: vertical;
}
.wpcf7-submit {
    width: 100%;
    padding: 18px;
    background: var(--accent-orange);
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.wpcf7-submit:hover {
    background: #e65c00;
}
.wpcf7-list-item {
    margin: 0;
}

/* ==========================================================================
   Real Estate Single & Print Styles
   ========================================================================== */
.real-estate-single {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}
.print-controls {
    text-align: right;
    margin-bottom: 20px;
}
.btn-print {
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}
.btn-print:hover { background: #152b65; }

.property-sheet {
    background: #fff;
    border: 1px solid #ccc;
    padding: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-blue);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.property-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 0;
}

.property-price-box {
    background: #fdf5e6;
    padding: 10px 20px;
    border: 1px solid var(--accent-orange);
    border-radius: 5px;
}
.property-price-box .price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
}
.property-price-box .price-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-orange);
}

.property-images {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}
.main-image {
    flex: 2;
}
.main-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}
.floor-plan-image {
    flex: 1;
    text-align: center;
}
.floor-plan-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
}
.image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}
.detail-table th, .detail-table td {
    border: 1px solid #ccc;
    padding: 10px 15px;
    font-size: 1rem;
}
.detail-table th {
    background: #f5f7fa;
    width: 15%;
    color: var(--primary-blue);
}
.detail-table td {
    width: 35%;
}

.property-remarks {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--accent-orange);
    margin-bottom: 30px;
}
.property-remarks h2 { margin-top: 0; font-size: 1.2rem; }

.property-footer {
    text-align: center;
    border-top: 1px solid #ccc;
    padding-top: 20px;
    margin-top: 40px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* 印刷用CSS (@media print) */
@media print {
    .no-print, .site-header, .site-footer, .global-nav {
        display: none !important;
    }
    
    body.irem-print-layout {
        background: none;
        margin: 0;
        padding: 0;
    }

    .real-estate-single {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: none;
    }

    .property-sheet {
        border: none;
        box-shadow: none;
        padding: 0;
        width: 100%;
    }

    /* A4縦に収まるように調整 */
    @page {
        size: A4 portrait;
        margin: 10mm 15mm;
    }

    .property-title {
        font-size: 1.8rem;
    }

    .detail-table th, .detail-table td {
        font-size: 0.9rem;
        padding: 8px;
    }

/* Real Estate Front Grid */
.real-estate-list-section {
    padding: 80px 20px;
    background: #fff;
    max-width: 1000px;
    margin: 0 auto;
}
.real-estate-list-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
    font-weight: bold;
}
.real-estate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.real-estate-card {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #E5E7EB;
}
.real-estate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
}
.re-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.re-content {
    padding: 20px;
}
.re-content h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--primary-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.re-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin: 0 0 5px;
}
.re-location {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

