/* ----------------------------------------------------------------
    Fides企画 - Core Design System
---------------------------------------------------------------- */

:root {
    --primary-blue: #007bff;
    --accent-orange: #fd7e14;
    --text-black: #333333;
    --text-gray: #6c757d;
    --border-color: #dee2e6;
    --bg-light: #f8f9fa;
    --soft-blue: #f0f7ff;
    --container-width: 1100px;
    --header-height: 80px;

    /* Additional UI Tokens (from Checkpoint 2) */
    --brand-accent: var(--primary-blue);
    --border-light: #eeeeee;
    --text-muted: #888888;
    --bg-soft: #fbfbfb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-black);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: var(--header-height);
    background: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-black);
    font-weight: 700;
    font-size: 15px;
    transition: 0.3s;
}

.nav a:hover {
    color: var(--primary-blue);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tel-info {
    text-align: right;
    line-height: 1.2;
}

.tel-info span {
    display: block;
    font-size: 11px;
    color: var(--text-gray);
}

.tel-info strong {
    font-size: 18px;
    color: var(--primary-blue);
}

.contact-btn {
    background: var(--primary-blue);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.contact-btn:hover {
    background: var(--accent-orange);
    transform: translateY(-2px);
}

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/13.png');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-black);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-orange);
}

/* Grid */
.feature-grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.feature-item {
    background: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Cards */
.unit-card {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.unit-card-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 350px;
}

.unit-card-content {
    flex: 1;
    padding: 50px;
}

.unit-tag {
    display: inline-block;
    background: var(--soft-blue);
    color: var(--primary-blue);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Service Page Specifics */
.service-hero {
    background: linear-gradient(135deg, #001f3f 0%, #007bff 100%);
    color: #fff;
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/pattern.png');
    /* Pattern overlay */
    opacity: 0.1;
}

.service-hero .hero-title {
    color: #fff;
    font-size: clamp(36px, 6vw, 56px);
    margin-bottom: 25px;
}

.service-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 900px;
}

.service-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.service-block:nth-child(even) {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-image {
    flex: 1;
    position: relative;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.service-num {
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 123, 255, 0.05);
    position: absolute;
    top: -40px;
    left: -20px;
    z-index: -1;
    line-height: 1;
}

.service-info .section-title {
    text-align: left;
    font-size: 28px;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

.service-info .section-title::after {
    left: 0;
    transform: none;
}

.service-info p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.service-features li {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-black);
    font-weight: 500;
}

.service-features li i {
    color: var(--primary-blue);
    font-size: 16px;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.price-table th {
    background: var(--primary-blue);
    color: #fff;
    padding: 20px;
    text-align: center;
}

.price-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-black);
    transition: 0.3s;
}

/* Footer */
.footer {
    background: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: block;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 13px;
}

/* Utility */
.label-caps {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--accent-orange);
    margin-bottom: 2rem;
}

.btn-corp {
    display: inline-flex;
    align-items: center;
    padding: 1.25rem 3rem;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.1rem;
    transition: 0.4s;
    border: none;
    cursor: pointer;
}

.btn-corp:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor.active {
    transform: translate(-50%, -50%) scale(2);
    background: rgba(0, 123, 255, 0.1);
}

/* Responsive Enhancement */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .unit-card {
        flex-direction: column;
    }

    .unit-card-img {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        gap: 40px;
    }

    .nav.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Price Table Mobile Stack */
    .price-table,
    .price-table thead,
    .price-table tbody,
    .price-table tr,
    .price-table th,
    .price-table td {
        display: block;
        width: 100%;
    }

    .price-table thead tr {
        display: none;
    }

    .price-table tr {
        margin-bottom: 25px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }

    .price-table th,
    .price-table td {
        text-align: left !important;
        padding: 15px 20px !important;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        width: 100% !important;
    }

    .price-table th {
        background: var(--soft-blue) !important;
        color: var(--primary-blue) !important;
        font-size: 14px;
        font-weight: 800;
    }

    .price-table td:last-child {
        border-bottom: none;
    }

    /* If data-label is present, show it as a label above the value */
    .price-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        color: var(--text-gray);
        text-transform: uppercase;
        margin-bottom: 5px;
        font-weight: 700;
        position: static;
        width: 100%;
    }

    .unit-card-content {
        padding: 30px 20px;
    }

    .service-block {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 80px;
    }

    .service-image {
        order: -1;
    }

    .service-info .section-title {
        font-size: 24px;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }
}