/*
Theme Name: ネクセルプロ
Theme URI: https://example.com/
Author: ネクセルプロ
Author URI: https://example.com/
Description: ネクセルプロ人材派遣・人材紹介サービスのカスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: nexelpro
Tags: recruitment, staffing, business
*/

/* Google Fonts - 明朝体をインポート */
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600;700&family=Shippori+Mincho:wght@400;600;800&display=swap'); */
/* メイリオに統一 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3a52;
    --accent-color: #c17a3a;
    --text-dark: #2c2c2c;
    --text-light: #6b6b6b;
    --bg-light: #faf8f5;
    --bg-texture: #f5f3ef;
    --border-color: #e5e1dc;
    --white: #fefefe;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 12px 45px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
    color: var(--text-dark);
    line-height: 1.95;
    overflow-x: hidden;
    background: var(--bg-texture);
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.01) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.01) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 30px 30px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0;
}

.header-content {
    min-height: 76px;
}

.header-logo {
    padding: 0;
    display: flex;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 10px;
    box-sizing: border-box;
}

.header-logo .custom-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 5px 10px;
    box-sizing: border-box;
}

.header-nav {
    padding: 1.5rem 0;
}

.logo a {
    text-decoration: none;
}

.logo img {
    display: block;
    max-height: 76px;
    height: auto;
    width: auto;
}

.custom-logo {
    display: block;
    max-height: calc(100% - 10px);
    height: auto;
    width: auto;
}

.logo h1 {
    color: var(--primary-color);
    font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    transition: opacity 0.3s;
}

.logo a:hover h1 {
    opacity: 0.7;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    letter-spacing: 0.05em;
}

.nav-list a:hover {
    color: var(--accent-color);
}

.nav-list a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.btn-register {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(193, 122, 58, 0.2);
}

.btn-register:hover {
    background: #a66830;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(193, 122, 58, 0.3);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.75);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    color: var(--white);
    text-align: center;
}

.slide-content h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05em;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.35);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--white);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-cta,
.btn-search {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(193, 122, 58, 0.2);
}

.btn-primary:hover {
    background: #a66830;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(193, 122, 58, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 58, 82, 0.2);
}

.btn-secondary:hover {
    background: #0f2535;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26, 58, 82, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-cta {
    background: var(--accent-color);
    color: var(--white);
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
    box-shadow: 0 6px 20px rgba(193, 122, 58, 0.25);
}

.btn-cta:hover {
    background: #a66830;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(193, 122, 58, 0.35);
}

.btn-search {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
}

.btn-search:hover {
    background: #0f2535;
}

/* Quick Search */
.quick-search {
    background: var(--white);
    padding: 4rem 0;
    box-shadow: var(--shadow-soft);
    margin-top: -50px;
    position: relative;
    z-index: 100;
}

.quick-search h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.search-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.1);
}

/* Company Values */
.company-values {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f3ef 0%, #faf8f5 100%);
}

.company-values h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    border-top: 5px solid var(--accent-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.value-item h3 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value-item h3 span {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.15em;
    font-family: "Arial", sans-serif;
}

.value-item p {
    line-height: 1.9;
    color: var(--text-dark);
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-item {
        padding: 2rem 1.5rem;
    }

    .value-item h3 {
        font-size: 1.5rem;
    }
}

/* CEO Message */
.ceo-message {
    padding: 6rem 0;
    background: var(--white);
}

.ceo-message h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.message-content {
    max-width: 900px;
    margin: 0 auto;
}

.message-text {
    margin-bottom: 3rem;
}

.message-text p {
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.message-signature {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 2rem;
    text-align: right;
}

.message-name {
    text-align: right;
    border-top: 2px solid var(--accent-color);
    padding-top: 1.5rem;
}

.message-name .company-name {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.message-name .position {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.message-name .name {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Featured Jobs */
.featured-jobs {
    padding: 6rem 0;
    background: var(--bg-light);
}

 .job-hero {
     width: 100%;
     height: 320px;
     background: var(--bg-light);
     overflow: hidden;
 }

 .job-hero img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .job-detail-header {
     background: var(--white);
     padding: 3rem 0;
     border-bottom: 1px solid var(--border-color);
 }

.featured-jobs h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.job-card {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

 .job-thumb {
     width: 100%;
     margin: 0;
     border-radius: 0;
     overflow: hidden;
 }

 .job-thumb img {
     width: 100%;
     height: auto;
     display: block;
 }

 .job-card-content {
     padding: 2.5rem;
 }

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.job-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.job-card h3 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.job-location {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.job-description {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.job-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-salary,
.job-type {
    background: var(--bg-light);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

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

/* Benefits */
.benefits {
    padding: 6rem 0;
    background: var(--white);
}

.benefits h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-card h3 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-top: 1rem;
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), #0f2535);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #ccc;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3,
.footer-column h4 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    text-align: center;
}

/* Fixed Contact Button */
.fixed-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    background: #4CAF50;
    color: var(--white);
}

.fixed-btn:hover {
    background: #45a049;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-text {
    font-size: 1rem;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-soft);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .slide-content h2 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .hero-slider {
        height: 400px;
    }

    .slider-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .fixed-contact {
        bottom: 10px;
        right: 10px;
    }

    .fixed-btn {
        padding: 12px 18px;
    }

    .btn-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .hero-slider {
        height: 300px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .merit-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Page Header (for about, customer, service pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #0056a8);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-family: "Meiryo", "メイリオ", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.page-header p {
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* Service Page Styles */
.service-section {
    padding: 4rem 0;
}

.service-section:nth-child(even) {
    background: var(--bg-light);
}

.service-content {
    max-width: 900px;
    margin: 0 auto;
}

.service-content h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.service-description {
    margin-bottom: 2rem;
}

.service-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-points {
    background: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
    margin-top: 2rem;
}

.service-points p {
    margin-bottom: 0.5rem;
}

.point-item {
    display: block;
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.point-item::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.merit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.merit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.merit-card:hover {
    transform: translateY(-5px);
}

.merit-card h3 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.merit-card p {
    line-height: 1.6;
    color: var(--text-dark);
}

.flow-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

/* Flow Tabs */
.flow-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 3rem;
}

.flow-tab {
    flex: 1;
    max-width: 300px;
    padding: 1.2rem 2rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flow-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 122, 58, 0.1), transparent);
    transition: left 0.5s ease;
}

.flow-tab:hover::before {
    left: 100%;
}

.flow-tab:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.flow-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.flow-tab.active:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Tab Content */
.flow-tab-content {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.flow-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-steps {
    max-width: 600px;
    margin: 2rem auto;
}

.flow-step {
    background: var(--white);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid var(--border-color);
}

.flow-step-number {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.flow-step-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.flow-arrow {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

/* Customer Page Styles */
.problems-section {
    padding: 4rem 0;
}

.problems-section h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.problems-list {
    max-width: 800px;
    margin: 0 auto;
}

.problems-list ul {
    list-style: none;
    padding: 0;
}

.problems-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    line-height: 1.8;
    border-radius: 3px;
}

.solutions-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.solutions-section h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.solution-card:hover {
    transform: translateY(-5px);
}

.solution-card h3 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.solution-card p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.merit-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.merit-text {
    background: #fff3cd;
    padding: 0.8rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.result-section {
    padding: 3rem 0;
    text-align: center;
}

.result-box {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
}

.result-box p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.result-highlight {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

.contact-section {
    padding: 4rem 0;
    background: var(--white);
}

.contact-section h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    min-width: 280px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-dark);
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-btn p {
    margin-bottom: 0.5rem;
}

.contact-btn .phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.contact-btn .contact-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* About Page Styles */
.philosophy-section,
.policy-section {
    padding: 6rem 0;
    background: var(--white);
}

.philosophy-section h2,
.policy-section h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.philosophy-content,
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-main {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 2;
    font-weight: 500;
}

.philosophy-detail {
    margin-bottom: 2rem;
}

.philosophy-detail p {
    margin-bottom: 0.5rem;
}

.philosophy-en {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 0.5rem;
    font-weight: 700;
}

.philosophy-jp {
    color: var(--text-dark);
}

.philosophy-continue {
    margin-top: 1rem;
    font-weight: 600;
}

.service-types,
.policy-values {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.service-type,
.policy-value {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
}

.policy-content p {
    line-height: 2;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.about-section {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-content img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}

.about-text h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.about-text p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.stats-section {
    background: var(--bg-light);
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-label {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 600;
}

.mission-section {
    padding: 6rem 0;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
    border: 1px solid var(--border-color);
}

.mission-card:hover {
    transform: translateY(-5px);
}

.mission-card h3 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.mission-card p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.company-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.05rem;
}

.info-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--primary-color);
    width: 220px;
}

/* Visitor Page Styles */
.intro-section {
    padding: 4rem 0;
    background: var(--white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.intro-content h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.intro-text {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.intro-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.flow-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.flow-content h2 {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.flow-description {
    background: #fff8e7;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

.flow-description p {
    line-height: 1.9;
    margin-bottom: 0;
    color: var(--text-dark);
}

.flow-steps {
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.flow-step-item {
    background: var(--white);
    padding: 2.5rem 4rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* アニメーション用クラス */
.flow-step-item.animate {
    opacity: 0;
    transform: translateY(40px);
}

.flow-step-item.animate.visible {
    animation: slideUpFadeIn 0.8s ease-out forwards;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flow-step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 奇数番目のSTEP - アクセントカラー強調 */
.flow-step-item:nth-child(odd) {
    background: linear-gradient(135deg, #fefefe 0%, #faf8f5 100%);
    border-left: 5px solid var(--accent-color);
}

.flow-step-item:nth-child(odd) .flow-step-number {
    background: var(--accent-color);
    color: var(--white);
}

/* 偶数番目のSTEP - プライマリカラー強調 */
.flow-step-item:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8eef3 100%);
    border-left: 5px solid var(--primary-color);
}

.flow-step-item:nth-child(even) .flow-step-number {
    background: var(--primary-color);
    color: var(--white);
}

.flow-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.flow-step-title {
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

.flow-step-text {
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 100%;
}

.note-box {
    background: var(--bg-light);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
}

.note-box p {
    line-height: 1.9;
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .flow-tabs {
        flex-direction: column;
        max-width: 400px;
        margin: 2rem auto 3rem;
    }

    .flow-tab {
        max-width: 100%;
    }

    .flow-step-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
