/*
Theme Name: fukugi-theme
Description: 介護タクシーふくぎのテーマ
Version: 1.0
Author: Antigravity
Text Domain: fukugi-theme
*/

:root {
    --primary-color: #2e7d32;
    /* Deep forest green for trust */
    --primary-light: #60ad5e;
    --primary-dark: #005005;
    --secondary-color: #8bc34a;
    --accent-color: #ff9800;
    /* Warm accent */
    --bg-color: #fdfdfb;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --header-footer-bg: #f1f8e9;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --radius-sm: 8px;
    --radius-md: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans JP', "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

a {
    transition: var(--transition);
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-light);
}

/* Header */
header.site-header {
    background-color: var(--white);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.site-branding .site-title a {
    color: var(--primary-color);
}

.site-branding .site-description {
    font-size: 0.75rem;
    color: var(--text-muted);
}

nav.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav.main-navigation ul li a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
}

nav.main-navigation ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

nav.main-navigation ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    aspect-ratio: 21 / 9;
    /* Standard widescreen aspect ratio */
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 4rem;
    overflow: hidden;
}

/* Remove overlay and animation as requested */
.hero::before,
.hero-content,
.hero h2,
.hero p {
    display: none;
}

.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.primary-button {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    color: var(--white);
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid as requested */
    gap: 2.5rem;
    max-width: 900px;
    /* Centering the grid for better balance */
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* News */
.news-list {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.news-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background-color: #f9fbf9;
}

.news-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 120px;
}

.news-link {
    font-weight: 500;
    color: var(--text-color);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

footer .container {
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Pricing Page Specifics */
.pricing-header-info {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.intro-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.8;
}

.intro-sub {
    margin-top: 1.5rem;
}

.highlight-box {
    background: var(--header-footer-bg);
    color: var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    border: 1px solid rgba(46, 125, 50, 0.1);
    margin: 0;
}

.highlight-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.highlight-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: normal;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Info List */
.info-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    background: var(--header-footer-bg);
    padding: 1.2rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    color: var(--primary-dark);
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.info-list li small {
    display: block;
    font-weight: normal;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Contact Highlight */
.contact-highlight {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.2);
}

.contact-highlight h3 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.contact-highlight .phone-number {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-highlight .contact-note {
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Note Box */
.note-box {
    background: #fff8e1;
    border-left: 5px solid var(--accent-color);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.note-box p:last-child {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.pricing-table-container {
    max-width: 800px;
    /* Balancing the width */
    margin: 0 auto 3rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.rich-table {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #eee;
}

.rich-table th {
    background-color: #f8f9fa;
    color: var(--primary-dark);
}

/* Page Specific Components */
.info-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.description-list {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.description-list dt {
    font-weight: 700;
    color: var(--primary-color);
}

.description-list dd {
    margin-left: 0;
}

.contact-form label,
.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: var(--transition);
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

/* CF7 Submit Button */
.wpcf7-submit {
    display: inline-block;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    margin-top: 1rem;
}

.wpcf7-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* CF7 Response Messages */
.wpcf7-response-output {
    margin: 2rem 0 0 !important;
    padding: 1rem !important;
    border-radius: var(--radius-sm) !important;
    border-width: 2px !important;
    font-weight: 500 !important;
}

.wpcf7-mail-sent-ok {
    border-color: #4caf50 !important;
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
}

.wpcf7-validation-errors {
    border-color: #f44336 !important;
    background-color: #ffebee !important;
    color: #c62828 !important;
}

.wpcf7-not-valid-tip {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Contact Page Restored Info */
.contact-intro {
    margin-bottom: 2rem;
}

.contact-tel-block {
    background: var(--header-footer-bg);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    text-align: center;
    border: 1px solid rgba(46, 125, 50, 0.1);
}

.tel-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tel-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.tel-number a {
    color: var(--primary-color);
}

.tel-hours {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav.main-navigation ul {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero {
        aspect-ratio: 16 / 9;
        min-height: 150px;
        margin-bottom: 2rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }

    /* Services Grid to 1 Column */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Pricing Refinement */
    .pricing-table-container {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .rich-table th,
    .rich-table td {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
    }

    /* Info Card & Description List stacks on mobile */
    .info-card {
        padding: 1.5rem 1rem;
    }

    .description-list {
        grid-template-columns: 1fr;
        /* Stack label above content */
        gap: 0.5rem;
        padding-bottom: 1.5rem;
    }

    .description-list dd {
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .description-list dd:last-child {
        border-bottom: none;
    }

    .contact-tel-block {
        padding: 1.5rem 1rem;
    }

    .tel-number {
        font-size: 1.8rem;
    }

    /* Pricing Page Mobile overrides */
    .pricing-header-info {
        padding: 1.5rem 1rem;
    }

    .intro-main {
        font-size: 1.1rem;
    }

    .highlight-box {
        padding: 1.25rem 1rem;
        width: 100%;
    }

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

    .info-list {
        grid-template-columns: 1fr;
    }

    .contact-highlight {
        padding: 2rem 1.5rem;
        margin: 3rem auto;
    }

    .contact-highlight h3 {
        font-size: 1.4rem;
    }

    .contact-highlight .phone-number {
        font-size: 2.2rem;
    }

    .note-box {
        padding: 1.25rem;
        margin-bottom: 3rem;
    }
}

/* Single Post Specific Styles */
.single-post-article {
    background: var(--white);
    padding: 4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.single-post-article .entry-header {
    margin-bottom: 3rem;
    text-align: center;
}

.single-post-article .entry-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.single-post-article .entry-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-color);
    line-height: 1.3;
}

.single-post-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.single-post-article .entry-content h2 {
    font-size: 1.75rem;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--header-footer-bg);
}

.single-post-article .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post-article .entry-footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.post-navigation .nav-back .button {
    background: var(--header-footer-bg);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .single-post-article {
        padding: 2rem 1.5rem;
    }

    .single-post-article .entry-header {
        margin-bottom: 2rem;
    }

    .post-navigation .nav-links {
        flex-direction: column;
        gap: 2rem;
    }

    .post-navigation .nav-previous,
    .post-navigation .nav-next {
        width: 100%;
        text-align: center;
    }

    .post-navigation .nav-back {
        order: 3;
    }
}