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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 2rem;
}

header h1 {
    font-size: 1.8rem;
    margin: 0;
}

/* Search Container */
.search-container {
    position: relative;
    flex: 0 0 auto;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.clear-search:hover {
    color: #333;
}

/* Search Highlight */
.highlight {
    background-color: #ffeb3b;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: bold;
}

.search-result-section {
    display: block;
}

.search-hidden {
    display: none !important;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

.lang-switch {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.hero .hero-btn {
    margin-top: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #667eea;
    text-align: center;
}

.bg-light {
    background-color: #f8f9fa;
}

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

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Manual Category */
.manual-category {
    margin-bottom: 3rem;
}

.manual-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
}

/* Manual List */
.manual-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.manual-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.manual-item:hover {
    transform: translateY(-5px);
}

.manual-item h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.manual-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #5568d3;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-card p {
    margin: 0.5rem 0;
    color: #666;
}

.contact-card p:last-child {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #999;
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Company Info */
.company-info {
    display: grid;
    gap: 2rem;
}

.company-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.company-section h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.info-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #667eea;
    width: 30%;
}

.business-list {
    list-style: none;
    padding: 0;
}

.business-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.business-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.philosophy {
    line-height: 1.8;
}

.philosophy p {
    margin-bottom: 1rem;
}

.philosophy ul {
    list-style: none;
    padding-left: 1rem;
}

.philosophy ul li {
    padding: 0.5rem 0;
}

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

.staff-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.staff-photo {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.staff-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.staff-position {
    color: #718096;
    font-weight: 600;
    margin-bottom: 1rem;
}

.staff-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Cleaning Intro Section */
.cleaning-intro-section {
    background: white;
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.intro-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.intro-header h4 {
    color: #667eea;
    font-size: 1.8rem;
    margin: 0;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h4 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.intro-text {
    background: #f7fafc;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-text p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f7fafc;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    line-height: 1.8;
}

.rules-list li:before {
    content: "✓";
    color: #48bb78;
    font-size: 1.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.tools-intro {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.tools-intro p {
    margin: 0.5rem 0;
    font-weight: 600;
}

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

.tool-card {
    background: #f7fafc;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e2e8f0;
}

.tool-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.tool-card h5 {
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tool-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tool-image-placeholder {
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: #a0aec0;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.tool-image-placeholder::before {
    content: "画像をここに追加";
}

.maintenance-box {
    background: #edf7ed;
    border: 2px solid #48bb78;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.maintenance-box h5 {
    color: #2f855a;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.maintenance-list {
    list-style: none;
    padding: 0;
}

.maintenance-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.maintenance-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
    font-size: 1.2rem;
}

.important-note {
    background: #fffaf0;
    border: 2px dashed #ed8936;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.important-note p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0.5rem 0;
}

.important-note .highlight {
    color: #c05621;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }

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

    .hero h2 {
        font-size: 2rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .card-grid,
    .manual-list,
    .contact-info,
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .info-table th {
        width: 35%;
        font-size: 0.9rem;
    }

    .info-table td {
        font-size: 0.9rem;
    }

    .cleaning-intro-section {
        padding: 1.5rem;
    }

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

    .content-section h4 {
        font-size: 1.3rem;
    }

    .intro-header h4 {
        font-size: 1.5rem;
    }
}

/* サイドメニュー */
.side-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    z-index: 50;
    padding-top: 180px;
    padding-bottom: 1.5rem;
}

.side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-nav li {
    margin: 0;
}

.side-nav-item {
    display: block;
    padding: 0.6rem 1.5rem;
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.side-nav-item:hover {
    background: #e8eaf6;
    color: #667eea;
    border-left-color: #667eea;
}

.side-nav-item.active {
    background: #e8eaf6;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

/* サブメニュー */
.has-submenu {
    position: relative;
}

.has-submenu > .side-nav-item {
    cursor: pointer;
}

.arrow {
    float: right;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.has-submenu.open .arrow {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f0f0f0;
}

.has-submenu.open .submenu {
    display: block;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.submenu a:hover {
    background: #e0e0e0;
    color: #667eea;
    border-left-color: #667eea;
}

/* メインコンテンツの左マージン調整 */
main {
    margin-left: 220px;
}

/* メニュートグルボタン */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: #5568d3;
}

.menu-toggle .menu-icon {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.menu-toggle.active .menu-icon {
    transform: rotate(180deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .side-menu {
        display: none;
    }

    main {
        margin-left: 0;
    }

    /* メニュートグルボタンを表示 */
    .menu-toggle {
        display: flex;
    }

    .header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .header-top h1 {
        order: 1;
    }

    .menu-toggle {
        order: 2;
    }

    .search-container {
        order: 3;
        flex: 1 1 100%;
    }

    /* ナビゲーションメニュー */
    nav {
        display: none;
        width: 100%;
        background: #f7fafc;
        border-radius: 8px;
        margin-top: 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav ul li a {
        display: block;
        padding: 1rem 1.5rem;
        color: #333;
        text-align: left;
    }

    nav ul li a:hover {
        background: #edf2f7;
    }
}
