/*
Theme Name: Renovat Theme
Author: Antigravity
Description: Corporate theme for RENOVAT Inc.
Version: 1.0.1
*/
@charset "UTF-8";

:root {
    /* Brand Colors based on the Logo */
    --primary-color: #0d2240;
    /* 濃紺 (Navy) */
    --accent-color: #5ab546;
    /* 緑 (Green) - 矢印の色に近いイメージ */
    --accent-hover: #4a9e38;

    /* Base Colors */
    --text-color: #333333;
    --light-gray: #f4f7f9;
    --white: #ffffff;
    --border-color: #e0e0e0;

    /* Fonts */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Admin Bar Space */
.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .header {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    /* Increased from 80px */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    margin: 0;
    font-size: 0;
    line-height: 0;
    flex-shrink: 0;
}

.logo a {
    display: block;
}

.logo img {
    height: auto;
    width: auto;
    max-height: 60px;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-list li a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-list li a:hover::after {
    width: 100%;
}

.btn-header {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

.btn-header:hover {
    background: var(--accent-hover);
    opacity: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section (Front Page) */
.hero {
    margin-top: 100px;
    /* Adjusted for taller header */
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(13, 34, 64, 0.7), rgba(13, 34, 64, 0.7)), url('images/hero_background.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-hero {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Page Header (Sub Pages) */
.page-header {
    margin-top: 100px;
    /* Adjusted for taller header */
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* Service / Strength Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

/* Service Detail (page-service.php) */
.service-block {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-block:nth-child(even) {
    flex-direction: row-reverse;
}

.service-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-color);
    padding-left: 20px;
}

.service-list {
    margin-top: 20px;
    list-style: disc;
    padding-left: 20px;
}

.service-list li {
    margin-bottom: 10px;
}

/* Contact Form */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.form-group label span.required {
    background: #e74c3c;
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 34, 64, 0.1);
}

textarea.form-control {
    height: 200px;
    resize: vertical;
}

.btn-submit {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    margin: 40px auto 0;
}

.btn-submit:hover {
    background: #004098;
    opacity: 0.9;
}

/* Company Table */
.company-info dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-top: 1px solid #eee;
}

.company-info dt {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    background: #f9f9f9;
}

.company-info dd {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-address {
    font-style: normal;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: block;
        /* Change from none to block, but hide with opacity/visibility or transform */
        position: absolute;
        top: 100px;
        /* Match header height */
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);

        /* Animation properties */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s ease;
        pointer-events: none;
        /* Prevent clicking when hidden */
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero-content h2 {
        font-size: 1.5rem;
        word-break: auto-phrase;
    }

    .service-block,
    .service-block:nth-child(even) {
        flex-direction: column;
    }

    .company-info dl {
        grid-template-columns: 100px 1fr;
        /* Adjust for mobile */
    }

    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
}

/* Mobile Sticky Footer */
.mobile-sticky-footer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    text-align: center;
    padding: 15px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    color: #fff !important;
}

.sticky-btn.contact {
    background: var(--accent-color);
}

.sticky-btn.price {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .mobile-sticky-footer {
        display: flex;
    }


    .footer {
        padding-bottom: 80px;
    }

    .pc-only {
        display: none;
    }
}