/*
Theme Name: Ecoten Corporate
Theme URI: https://ecoten.online
Author: Antigravity
Description: Custom theme for Ecoten Inc.
Version: 1.0.0
*/

:root {
    --primary-color: #004098;
    /* Trust Blue */
    --secondary-color: #008f5d;
    /* Eco Green */
    --text-color: #333333;
    --light-gray: #f4f7f6;
    --white: #ffffff;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    /* 横スクロールの防止 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* UI Helper Classes */
.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

.text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-hero {
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 1.1rem;
    padding: 16px 40px;
    margin-top: 30px;
}

.btn-contact {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 16px 40px;
}

.text-link {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--primary-color);
}

.text-white {
    color: var(--white);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* WP Admin Bar Adjustment */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list li a {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-list li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--white);
    padding-top: 100px;
    transition: 0.4s;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Sections Common */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-lead {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.section-cta_link {
    text-align: center;
    margin-top: 40px;
}

/* Hero */
.hero {
    position: relative;
    height: 90vh;
    /* Full viewport height mostly */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #001f4d;
    color: #ffffff;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1530124560677-bdaea02c9a79?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    animation: heroZoom 20s infinite alternate;
    z-index: 1;
    pointer-events: none;
}

@keyframes heroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 64, 152, 0.85) 0%, rgba(0, 31, 77, 0.7) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Service */
.service {
    background-color: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 64, 152, 0.15);
}

.service-card-image {
    width: 100%;
    height: 240px;
    /* 高さを一定に固定 */
    overflow: hidden;
    position: relative;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 30px;
    text-align: center;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    background: var(--light-gray);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Reason */
.reason {
    background-color: var(--light-gray);
}

.reason-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.reason-item {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.reason-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(0, 64, 152, 0.1);
    line-height: 1;
}

.reason-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* News */
.news-list {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #ddd;
}

.news-list li {
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    display: flex;
    gap: 20px;
    align-items: baseline;
}

.news-list li .date {
    font-weight: 700;
    color: var(--primary-color);
    width: 100px;
    flex-shrink: 0;
}

.news-list li a:hover {
    text-decoration: underline;
}

/* Contact */
.contact {
    background-color: var(--primary-color);
    text-align: center;
}

.contact-lead {
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: #333;
    color: #999;
    padding: 40px 0 20px;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 30px;
}

.footer-logo {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a:hover {
    color: var(--white);
}

.copyright {
    text-align: center;
}

/* Sub-page Header */
.page-header {
    background: linear-gradient(135deg, #004098 0%, #001f4d 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Sub-page Content */
.page-content {
    background-color: var(--white);
    padding: 80px 0;
}

.content-block {
    margin-bottom: 60px;
}

.content-block h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-left: 5px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 30px;
}

.content-block h4 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 20px;
    margin-top: 30px;
    font-weight: 700;
}

.content-block p {
    margin-bottom: 20px;
}

.content-block ol,
.content-block ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
}

/* Table Styles */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.company-table th,
.company-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}

.company-table th {
    background-color: var(--light-gray);
    width: 30%;
    color: var(--primary-color);
}

/* Contact Form Styles */
.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
}

.contact-phone {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.phone-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .header .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .reason-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .news-list li {
        flex-direction: column;
        gap: 5px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        background-color: #eee;
    }
}

/* Individual Service Page (toC) Styles */
.toc-hero {
    background: linear-gradient(135deg, #004098 0%, #008f5d 100%);
    padding: 160px 0 100px;
    color: var(--white);
    text-align: center;
}

.toc-hero h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.toc-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.problem-box {
    background: #fff5f5;
    border-radius: 20px;
    padding: 40px;
    margin-top: 40px;
}

.problem-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.problem-item {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.problem-item .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.solution-highlight {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.solution-highlight::before {
    content: "TRUST";
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: 0.3s;
}

.plan-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.plan-card h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 20px 0;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
}

.flow-step-container {
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 60px;
    width: 2px;
    height: 40px;
    background: #ddd;
}

.flow-num {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-q {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.faq-a {
    padding-left: 28px;
    color: #555;
}

@media (max-width: 768px) {
    .toc-hero h2 {
        font-size: 2rem;
    }

    .problem-list,
    .plan-grid {
        grid-template-columns: 1fr;
    }
}

/* LP Specific Styles */
.lp-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1582408921715-18e7806365c1?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    padding: 180px 0 100px;
    color: var(--white);
    text-align: center;
}

.lp-hero .badge {
    display: inline-block;
    background: #c5a059;
    /* Gold */
    color: #fff;
    padding: 5px 20px;
    border-radius: 5px;
    font-weight: 700;
    margin-bottom: 20px;
}

.lp-hero h1 {
    font-size: 3.5rem;
    line-height: 1.3;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.lp-section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.lp-section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
}

.empathy-box {
    background: #fff9f0;
    padding: 50px;
    border-radius: 30px;
    border: 2px dashed #d1b894;
    margin-bottom: 40px;
}

.check-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-list li {
    position: relative;
    padding-left: 35px;
    font-size: 1.2rem;
    text-align: left;
}

.check-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: 900;
    font-size: 1.5rem;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
}

.comparison-table th {
    background: var(--light-gray);
    color: var(--primary-color);
}

.comparison-table td.highlight {
    background: rgba(0, 143, 93, 0.05);
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.circle-check {
    color: #008f5d;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 1000;
    display: flex;
    gap: 15px;
}

.btn-line {
    background: #06C755;
    color: #fff !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
}

.btn-form-lp {
    background: var(--primary-color);
    color: var(--white) !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 64, 152, 0.4);
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.scene-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.scene-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.scene-info {
    padding: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .lp-hero h1 {
        font-size: 1.8rem;
    }

    .lp-section-title {
        font-size: 1.6rem;
    }

    .floating-cta {
        flex-direction: column;
        gap: 10px;
    }

    .scene-grid {
        grid-template-columns: 1fr;
    }

    .lp-hero {
        padding: 120px 0 60px;
    }
}