/* マニュアルページ専用スタイル */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: #FFFEFD;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 144, 91, 0.2);
    box-shadow: 0 2px 10px rgba(255, 144, 91, 0.1);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-family: 'Playfair Display', 'Meiryo UI', 'Meiryo', serif;
    font-size: 1.8em;
    color: #d2691e;
    margin: 0;
    font-weight: 700;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #d2691e;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    display: none;
}

.menu-toggle:hover {
    background: rgba(255, 144, 91, 0.1);
}

.manual-content {
    padding: 30px;
    transition: left 0.3s ease;
    background: #FFFEFD;
    position: fixed;
    top: 70px;
    left: 250px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 250px;
    height: calc(100vh - 70px);
    background: #FFFEFD;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 144, 91, 0.2);
    box-shadow: 2px 0 10px rgba(255, 144, 91, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav {
    padding: 20px 0;
}

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

.nav-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #d2691e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem 0.5rem;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-section-title:first-child {
    margin-top: 0;
}

.nav-section-title i {
    font-size: 0.9rem;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 17px 15px 20px;
    color: #333333;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box;
}

.nav-link:hover {
    background: rgba(255, 144, 91, 0.1);
    color: #d2691e;
    text-decoration: none !important;
}

.nav-item.active .nav-link {
    background: rgba(255, 144, 91, 0.15);
    color: #d2691e;
    position: relative;
    border-right: 3px solid #d2691e;
    text-decoration: none !important;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #d2691e;
    margin: 0 0 30px 0;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 144, 91, 0.2);
}

.section-content h3 {
    font-family: 'Meiryo UI', 'Meiryo', sans-serif;
    font-size: 1.4em;
    color: #ffffff;
    margin: 0 0 15px 0;
    font-weight: 700;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e6834a 0%, #f0a366 100%);
    border-radius: 8px;
    border: none;
}

.manual-section h3 {
    font-family: 'Meiryo UI', 'Meiryo', sans-serif;
    font-size: 1.4em;
    color: #ffffff;
    margin: 40px 10px 15px 0;
    font-weight: 700;
    padding: 15px 20px;
    background: linear-gradient(135deg, #e6834a 0%, #f0a366 100%);
    border-radius: 8px;
    border: none;
}

.manual-section h3:first-child {
    margin-top: 0;
}

.manual-description {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.manual-description p {
    font-size: 1em;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 1rem;
}

.manual-steps {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 15px 0;
    border: none;
}

.manual-steps li {
    font-size: 1em;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 0.8rem;
    padding-left: 0;
    margin-left: 1.5rem;
}

.manual-notes {
    background: rgba(255, 243, 205, 0.9);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    margin: 15px 0;
}

.manual-notes li {
    font-size: 1em;
    line-height: 1.6;
    color: #856404;
    margin-bottom: 0.8rem;
    padding-left: 0;
}

.manual-description img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.manual-section h4 {
    color: #e6834a;
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    padding-top: 5px;
    padding-left: 10px;
    border-bottom: 1px solid #e6834a;
    border-left: 7px solid #e6834a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-description h5 {
    color: #d2691e;
    font-size: 1.3em;
    margin-bottom: 12px;
    margin-top: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* パラメーターテーブルスタイル */
.parameter-table-container {
    margin: 25px 0;
    overflow-x: auto;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 254, 253, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 144, 91, 0.1);
    border: 1px solid rgba(255, 144, 91, 0.2);
}

.parameter-table thead th {
    background: #5b6fb5 !important;
    color: #ffffff;
    font-weight: 700;
    text-align: center;
    padding: 10px 15px;
    border: none;
    position: relative;
}

.parameter-table thead .param-general-header {
    border-bottom: 1px solid #4a5fa3 !important;
}

.parameter-table tbody td {
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 144, 91, 0.1);
    vertical-align: top;
    line-height: 1.4;
}

.param-name {
    background: rgba(255, 248, 245, 0.7);
    font-weight: 600;
    color: #2c3e50;
    border-right: 1px solid rgba(255, 144, 91, 0.15);
    width: 30%;
    font-size: 0.95em;
}

.param-description {
    background: rgba(255, 255, 255, 0.5);
    color: #333333;
    font-size: 0.95em;
}

.parameter-table tbody tr:last-child td {
    border-bottom: none;
}

.parameter-table tbody tr:hover {
    background: rgba(255, 144, 91, 0.05);
}

.parameter-table tbody tr:hover .param-name {
    background: rgba(255, 240, 230, 0.9);
}

.parameter-table tbody tr:hover .param-description {
    background: rgba(255, 250, 245, 0.7);
}

.back-to-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ff6b35;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(255, 144, 91, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.back-to-menu-btn:hover {
    background: #e55a2b;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(255, 144, 91, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.back-to-menu-btn i {
    color: #ffffff !important;
    font-size: 1.1em;
}

.back-to-menu-btn span {
    color: #ffffff !important;
}

.back-to-menu-btn:focus,
.back-to-menu-btn:active,
.back-to-menu-btn:visited {
    text-decoration: none !important;
    color: #ffffff !important;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .parameter-table-container {
        margin: 15px -10px;
    }

    .parameter-table thead th,
    .parameter-table tbody td {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .param-name {
        width: 30%;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .manual-content {
        left: 0;
        padding: 20px;
    }

    .back-to-menu-btn span {
        display: none;
    }

    .header-controls {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        padding: 0.5rem;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}