/*
Theme Name: Engineer Portfolio
Theme URI: https://example.com/engineer-portfolio
Author: Your Name
Author URI: https://example.com
Description: エンジニアのポートフォリオサイト用カスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: engineer-portfolio
*/


/* ============================================
   CSS変数
============================================ */
:root {
    --theme: #472ce6;
    --theme-pale: #f3f6ff;
    --theme-gradient-start: #087cf2;
    --theme-gradient-end: #cb99e6;
    --theme-gradient: linear-gradient(135deg, var(--theme-gradient-start) 0%, var(--theme-gradient-end) 100%);
    --theme-gradient-dark: linear-gradient(135deg, #002cd9 0%, #9049e9 100%);
    --box-shadow: 0 15px 25px rgba(24,60,178,0.2);
}


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

body {
    font-family:  'Avenir','Helvetica Neue','Helvetica','Arial', sans-serif, 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo';
    line-height: 1.5;
    font-feature-settings: "palt";
    letter-spacing: .05em;
    color: #333;
    font-size: 16px;
}

a:not(.btn) {
    text-decoration: none;
    color: #333;
    transition: .2s;
}
a:not(.btn):hover {
    text-decoration: none;
    color: var(--theme);
}

.inline_lnk {
    color: var(--theme)!important;
}
.inline_lnk:hover {
    text-decoration: underline!important;
}
.r {
    text-align: right;
}
.btn {
    padding: .4em 1.2em;
    text-decoration: none !important;
    position: relative;
    display: inline-block;
    text-align: center;
    transition: .3s;
    border-radius: 3em;
    cursor: pointer;
}

.btn_primary {
    background: var(--theme-gradient);
    color: #fff;
    overflow: hidden;
    border: none;
}

.btn_primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--theme-gradient-dark);
    opacity: 0; 
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}


.btn_primary:hover,
.btn_area:hover .btn_primary {
    opacity: .9;
}
.btn_primary:hover::before,
.btn_area:hover .btn_primary::before {
    opacity: 1;
}


.btn_default {
    background: #fff;
    color: var(--theme);
    transition: .3s ease;
    border: 1px solid var(--theme);
}
.btn_default .deco {
    padding: .1em .5em;
    vertical-align: middle;
    background-color: var(--theme-pale);
    display: inline-block;
    margin-top: -.4em;
    font-size: 60%;
    border-radius: 2em;
    transition: .4s;
    margin-right: .6em;
}

.btn_default:hover {
    background: var(--theme-pale);
}
.btn_default:hover .deco {
    background-color: #e8edfb;
}

.btn_area {
    display: block;
}

.btn_write:before {
    background-image: url('images/ic_pen.svg');
    content: "";
    display: inline-block;
    width: .9em;
    margin-right: .4em;
    height: .9em;
    filter: brightness(0) invert(40%) sepia(100%) saturate(7059%) hue-rotate(246deg) brightness(95%) contrast(143%);
}


.mt_1 {
    margin-top: 15px;
}

.mt_2 {
    margin-top: 30px;
}

.mt_3 {
    margin-top: 45px;
}

.mb_1 {
    margin-bottom: 15px;
}

.mb_2 {
    margin-bottom: 30px;
}

.mb_3 {
    margin-bottom: 45px;
}
/* Avatar */
.avatar {
    border-radius: 50%;
    object-fit: cover;
}

.tx_gry {
    color: #657786;
}
.tx_md {
    font-size: 16px;
}

.tx_sm {
    font-size: 14px;
}
.tx_xs {
    font-size: 12px;
}

.tx_lg {
    font-size: 18px;
}
.tx_xlg {
    font-size: 20px;
}
.tx_xxlg {
    font-size: 24px;
}
.ttl_sm {
    font-size: 20px;
}
.ttl_md {
    font-size: 24px;
}
.ttl_lg {
    font-size: 28px;
}
.ttl_xlg {
    font-size: 32px;
}
.ttl_xxlg {
    font-size: 36px;
}
@media (max-width: 768px) {
.tx_md {
    font-size: 14px;
}

.tx_sm {
    font-size: 12px;
}

.tx_lg {
    font-size: 16px;
}

.tx_xlg,
.tx_xxlg {
    font-size: 18px;
}
.ttl_md {
    font-size: 20px;
}
.ttl_lg {
    font-size: 24px;
}
.ttl_xlg {
    font-size: 28px;
}
}

.ttl_sm,
.ttl_md,
.ttl_lg,
.ttl_xlg,
.ttl_xxlg,
.ttl_sm {
    line-height: 1.3em;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px 0;
}

.container.nrw {
    max-width: 800px;
}
@media (max-width: 768px) {
.container.sp_wide {
    padding: 0 6px 0;
}
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px 0;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.site-logo {
    height: 17px;
    width: auto;
    display: block;
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-description {
    font-size: 11px;
    font-weight: normal;
    color: #666;
    display: inline-block;
}

@media (max-width: 768px) {
    .site-description {
        display: none;
    }
}

.header-right {
    float: right;
    display: flex;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* ユーザーメニュー */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    padding: .3em 1em;
    font-size: 14px;
    color: #333;
    margin-left: .5em;
    cursor: pointer;
    border-radius: 2em;
    transition: background-color 0.2s;
}

.user-menu-trigger:hover {
    background-color: #f5f5f5;
}

.user-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 7px;
    background: #fff;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-menu:hover .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background-color: #f7f9fa;
    color: var(--theme);
}

/* ハンバーガーメニュー */
.hamburger-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.hamburger-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #657786;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}

.mobile-menu-user {
    padding: 60px 20px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #14171a;
    border-bottom: 1px solid #e1e8ed;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-item {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

.mobile-menu-item:hover {
    background-color: #f7f9fa;
    color: var(--theme);
}

@media (max-width: 768px) {
    .hamburger-menu-btn {
        display: flex;
    }

    .header-nav,
    .user-menu {
        display: none;
    }
}

.occupation-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.occupation-menu a {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.occupation-menu a:hover {
    color: var(--theme);
}

.header-search {
    display: flex;
    gap: 8px;
}

.header-search input[type="text"] {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.header-search input[type="text"]:focus {
    outline: none;
    border-color: var(--theme);
}

.header-search button {
    font-size: 14px;
    padding: 6px 16px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    background-color: #f2f3f6;
    padding:50px 0 80px;
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* Author Page Styles */
.author-page {
    padding-top: 0;
}

.author-cover {
    width: 100%;
    height: 200px;
    background-color: #1da1f2;
    overflow: hidden;
}

.author-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-cover {
    width: 100%;
    height: 100%;
    background: var(--theme-gradient);
}

.author-header {
    position: relative;
    padding: 90px 0 0;
    margin-bottom: 20px;
}
.author-header .author-name:hover {
    color: #333!important;
}

.author-avatar {
    position: absolute;
    top: -75px;
    left: 0;
}
.manage-posts-wrapper {
    margin-top: -20px;
}

.author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #fff;
    background-color: #fff;
    object-fit: cover;
}

.author-name {
    line-height: 1.5em;
}


.occupation-it {
    background-color: #659aef;
}

.occupation-mechanical {
    background-color: #1cc4bf;
}

.occupation-construction {
    background-color: #ef78d3;
}

.occupation-other {
    background-color: #e8bd0c;
}

.author-meta {
    color: #657786;
    margin-bottom: 15px;
}

.author-username {
    font-size: 15px;
}

.author-bio {
    color: #14171a;
    margin-top: 10px;
}

/* Two Column Layout */
.author-content,
.single-case-content-wrapper {
    display: flex;
    gap: 40px;
}

@media (max-width: 768px) {
.single-case-content-wrapper {
    display: block;
}
}

.content-main {
    flex: 1;
    min-width: 0;
    position: relative;
}

.content-sidebar {
    width: 350px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .author-content {
        flex-direction: column;
    }

    .content-sidebar {
        width: 100%;
    }
}


/* Case Studies List */
.case-studies-list,
.case-studies-archive {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* カードグリッドレイアウト（3列） */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* タブレット対応 */
@media (max-width: 1024px) {
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* グリッド1列 */
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.case-study-item {
    padding: 30px 35px;
    background: #fff;
    transition: .2s;
    position: relative;
}
@media (max-width: 768px) {
.case-study-item {
    padding: 17px 20px;
}
}

.case-study-item:hover {
    box-shadow: var(--box-shadow);
}

.case-study-item a:not(.btn) {
    color: #333;
}
.case-study-item a:not(.btn):hover {
    color: var(--theme);
}

/* タイトルと本文のリンク */
.case-study-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: color 0.2s ease;
}

.case-study-link:hover {
    color: var(--theme);
}

.case-study-link:hover .case-study-title,
.case-study-link:hover .case-study-excerpt {
    color: var(--theme);
}

.case-study-taxonomy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 7px 0 8px;
}

.case-study-category {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    background: #e2e2f1;
    padding: .5em 1.5em .5em 1em;
    border-radius: 0 0 2em 0;
    margin-right: .8em;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.case-study-category:hover {
    background: #ccccde;
}

.case-study-title {
    margin-bottom: 12px;
}

.case-study-title a {
    color: #14171a;
    transition: .3s;
}

.case-study-title a:hover {
    color: var(--theme);
}
/* タグ共通スタイル - 記事アイテム・記事詳細で共通 */
.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.case-study-tags .tag-link {
    color: #999!important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.case-study-tags .tag-link:hover {
    color: var(--theme)!important;
}

/* 投稿者情報共通スタイル - 投稿者名と技術タグの統一管理 */
.author-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5em;
}

.author-info .occupation-tag {
    display: inline-block;
    padding: .3em .6em .2em;
    font-size: 70%;
    font-weight: 500;
    line-height: 1em;
    color: #fff;
    vertical-align: top;
    margin: .1em .1em 0 0;
    border-radius: 2em;
}

.author-info .author-name {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-info .author-name:hover {
    color: var(--theme);
}

/* サイドバー用（大きめサイズ） */
.author-profile-name.author-info {
    font-size: 16px;
}

/* プレースホルダー用の古いスタイル */
.tag-simple.placeholder {
    display: inline-flex;
    align-items: center;
    color: #666;
    padding: .4em 1em;
    border-radius: 2em;
}


/* プレースホルダースタイル */
.case-study-category.placeholder,
.tag-simple.placeholder,
.tag-item.placeholder,
.occupation-tag.placeholder {
    background: #fff3cd;
    color: #856404;
    border: 1px dashed #ffc107;
    cursor: pointer;
    padding: .4em 1em;
    text-decoration: none;
}
.case-study-category.placeholder {
    padding: .4em 1.5em .4em 1em;

}
.occupation-tag.placeholder:hover {
    background: #ffe69c;
    color: #856404;
}
.edit-post-link-small {
    position: absolute;
    top: 12px;
    right: 12px;
}

/* ブックマークボタン */
.case-study-bookmark {
    position: absolute;
    bottom: 10px;
    right: 20px;
}

.case-study-bookmark .bookmark-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.case-study-bookmark .bookmark-btn:hover {
    transform: scale(1.1);
}

.case-study-bookmark .bookmark-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* プロフィール編集ボタン */
.profile-edit-wrapper {
    position: relative;
}

.profile-edit-wrapper .btn {
    position: absolute;
    display: block;
    top: 0;
    z-index: 1;
    right: 0;
}
.skill-tag-simple {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    font-size: 12px;
}

.skill-tag-simple:before {
    content: "🏷";
    font-size: 11px;
}

.case-study-excerpt {
    color: #666;
    margin: 5px 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-study-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.case-study-actions-left {
    display: flex;
    gap: 12px;
}

.case-study-actions-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bookmark-btn {
    display: inline-flex;
    border: 0;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s;
    position: relative;
    overflow: visible;
    opacity: .5;
}

.bookmark-btn:hover,
.bookmark-btn.bookmarked {
    opacity: 1;
}

.bookmark-icon {
    width: 25px;
    height: 25px;
    display: block;
}

/* いいねアニメーション - 放射状に飛び散る粒子 */
.like-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b9d, #ffc0cb);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    animation: particle-burst 0.8s ease-out forwards;
    box-shadow: 0 0 4px rgba(255, 107, 157, 0.5);
}

@keyframes particle-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.3);
    }
}

.read-more-btn {
    display: inline-block;
}

.no-posts-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.no-posts-wrapper .no-posts {
    padding: 0 0 20px 0;
}

.no-posts {
    color: #657786;
    text-align: center;
    padding: 40px 20px;
}

/* Sidebar Styles */
.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
}

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

.author-profile-avatar {
    margin-bottom: 12px;
}

.author-profile-avatar img {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.author-profile-name {
    font-weight: 600;
    margin: 0;
}

.author-profile-name a {
    color: #14171a;
    text-decoration: none;
}

.author-profile-name a:hover {
    color: var(--theme);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* サイドバータグ一覧 */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-tag-link {
    display: inline-block;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--theme);
    border-radius: 16px;
    color: var(--theme)!important;
    text-decoration: none;
    transition: .3s ease;
    font-size: 13px;
}

.sidebar-tag-link:hover {
    background: var(--theme-pale);
}

.sidebar-tag-link .tag-count {
    display: inline-block;
    background: #e1e8ff;
    color: #14171a;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    margin:-.2em 0 0 .3em;
    min-width: 1.6em;
    height: 1.6em;
    text-align: center;
    line-height: 1.6em;
    vertical-align: middle;
}

.no-tags {
    color: #657786;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    display: inline-block;
    background: #1da1f2;
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.skill-badge {
    display: inline-block;
    background: #1da1f2;
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}

.no-tags {
    color: #657786;
    font-size: 14px;
}

.loading-tags {
    color: #657786;
    font-size: 14px;
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.no-skills {
    color: #657786;
    font-size: 14px;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #14171a;
}

.stat-label {
    font-size: 14px;
    color: #657786;
}

/* Single Case Study Page */

.container .main-content {
    padding-top: 40px;
}

.single-case-study article {
    /* 2カラムレイアウトのため、article自体には背景を設定しない */
}

.single-case-study .content-main {
    background: #fff;
    padding: 40px;
}

.single-case-study .content-sidebar {
}

.article-actions {
    position: relative;
}
.article-actions .btn_write,
.article-actions .bookmark-btn  {
    position: absolute;
    right: -20px;
    top: -20px;
}

.article-actions-bottom {
    justify-content: flex-end;
    margin-top: 50px;
    margin-bottom: 0;
    padding-top: 50px;
    border-top: 1px solid #e1e8ed;
}
.article-actions-bottom .bookmark-btn {
    top: 20px;
    right: 0;
}

.case-study-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.case-study-header .case-study-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #14171a;
}

.case-study-header .case-study-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #657786;
}

.case-study-featured-image {
    margin-bottom: 30px;
}

.case-study-featured-image img {
    width: 100%;
    height: auto;
}

.case-study-content {
    font-size: 16px;
    line-height: 1.8;
    color: #14171a;
}

.case-study-content p {
    margin: 20px 0;
}

.case-study-content h2 {
    font-size: 28px;
    margin-top: 50px;
    padding-left: .8em;
    line-height: 2.3em;
    border-left: 1px solid #666;
    margin-bottom: 16px;
}

.case-study-content h3 {
    font-size: 20px;
    margin-top: 30px;
    margin-bottom: 5px;
}
.case-study-content h2 + h3 {
    margin-top: 20px;
}
.case-study-content h3 +p {
    margin-top: 10px;
}

.case-study-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}
.case-study-content ul,
.case-study-content ol {
    padding-left: 1em;
}
.case-study-content li {
    margin-bottom: .1em;
}
/* Posts Grid (for index.php) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.post-item {
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 16px;
    padding: 16px;
    transition: box-shadow 0.2s;
}

.post-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-thumbnail {
    margin-bottom: 12px;
}

.post-thumbnail img {
    width: 100%;
    border-radius: 12px;
    height: auto;
}

.post-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.post-title a {
    color: #14171a;
}

.post-title a:hover {
    color: #1da1f2;
    text-decoration: none;
}

.post-meta {
    font-size: 14px;
    color: #657786;
    margin-bottom: 8px;
}

.post-excerpt {
    font-size: 15px;
    color: #657786;
    line-height: 1.5;
}

/* Engineers Grid (for clients) */
.engineers-grid {
    display: grid;
    height: 100%;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin:20px 0 40px;
}

.engineer-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e1e8ed;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.engineer-card:hover {
    box-shadow: var(--box-shadow);
}

.engineer-card-cover {
    width: 100%;
    height: 100px;
    background-color: #1da1f2;
    overflow: hidden;
}

.engineer-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-cover-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d7dee8 0%, #e5e3e8 100%);
}

.engineer-card-content {
    padding: 16px;
    position: relative;
    padding-top: 50px;
    height: 100%;
}

.engineer-card-avatar {
    position: absolute;
    top: -32px;
    left: 16px;
}

.engineer-card-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: #fff;
    object-fit: cover;
}

.engineer-card-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.engineer-card-name a {
    color: #14171a;
}

.engineer-card-name a:hover {
    color: #1da1f2;
    text-decoration: none;
}

.engineer-card-bio {
    font-size: 14px;
    color: #14171a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.engineer-card-stats {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid #e1e8ed;
}

.engineer-card-stats .stat-number {
    font-size: 20px;
    font-weight: bold;
    color: #14171a;
}

.engineer-card-stats .stat-label {
    font-size: 13px;
    color: #657786;
}

.view-profile-btn {
    display: block;
}

.view-profile-btn:hover {
    background: #0d8bd9;
    text-decoration: none;
}

/* Page Title */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e8ed;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-weight: bold;
    margin: 0;
}

.page-title-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 0;
    margin-top: -50px;
    margin-bottom: 40px;
}

.page-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.page-title-section .page-title {
    color: #fff;
    font-size: 2.2rem;
    text-align: left;
    margin: 0;
}

@media (max-width: 768px) {
    .page-title-section {
        padding: 40px 0;
    }

    .page-title-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .page-title-section .page-title {
        font-size: 2rem;
        text-align: center;
    }
}

.page-header-with-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header-with-filter .page-title {
    margin: 0;
}
/* アクティブフィルタ表示 */
.active-filters {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
    line-height: 1.8;
    margin-left: -15px;
}

.filter-type-label {
    display: inline-block;
    padding: .2em .7em;
    vertical-align: top;
    font-size: 10px;
    color: #fff;
    background-color: #aaa;
    margin: 2px 5px 0 15px;
    border-radius: 2em;
    position: relative;
}

/* 職種ナビゲーション */
.occupation-nav-wrapper {
    margin-bottom: 40px;
}

.occupation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}


.occupation-buttons .btn.active {
    background: var(--theme-gradient);
    color: #fff;
    border: none;
    padding: calc(.4em + 1px) calc(1.2em + 1px);
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .occupation-buttons {
        width: 100%;
        justify-content: center;
    }
}

/* Engineer Home Page */
.engineer-home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    min-height: 400px;
    padding: 60px 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.engineer-home-image {
    flex: 0 0 45%;
}

.engineer-home-image img {
    width: 100%;
    height: auto;
    display: block;
}

.engineer-home-content {
    flex: 1;
}

@media (max-width: 968px) {
    .engineer-home {
        flex-direction: column;
        gap: 40px;
        padding: 0 15px;
    }

    .engineer-home-image {
        flex: none;
        width: 100%;
        max-width: 500px;
    }

    .engineer-home-content {
        text-align: center;
    }

    .engineer-home-title,
    .engineer-home-description {
        text-align: center;
    }
}

.engineer-home-title {
    font-size: 40px;
    font-weight: bold;
    color: #14171a;
    margin-bottom: 20px;
}

@media (max-width: 968px) {
.engineer-home-title {
    font-size: 32px;
}
}
.engineer-home-description {
    margin-bottom: 30px;
}

.engineer-home-buttons {
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .engineer-home-buttons {
        justify-content: center;
    }
}

/* ===== ページネーション ===== */
.pagination,
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.4em 1em;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 3em;
    transition: all 0.3s;
    font-size: 14px;
    cursor: pointer;
}

.page-numbers:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.page-numbers.current {
    background: var(--theme-gradient);
    color: #fff;
    border-color: transparent;
    cursor: default;
}

.page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
    min-width: auto;
    padding: 0.4em 0.5em;
}

.page-numbers.dots:hover {
    background: none;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0.4em 1.2em;
}

@media (max-width: 768px) {
    .pagination,
    .nav-links {
        gap: 6px;
    }

    .page-numbers {
        min-width: 40px;
        height: 40px;
        padding: 0.3em 0.8em;
        font-size: 13px;
    }

    .page-numbers.prev,
    .page-numbers.next {
        padding: 0.3em 1em;
    }
}

/* Login Message */
.login-message {
    text-align: center;
    padding: 60px 20px;
}

.login-message p {
    font-size: 18px;
    color: #657786;
    margin-bottom: 20px;
}



/* ============================================
   フィルタパネル
============================================ */
.filter-toggle-btn {
    cursor: pointer;
    position: relative;
    padding-left: 2.5em!important;
}
.filter-toggle-btn:after {
    content: url(images/ic_search.svg);
    width: 1em;
    height: 1em;
    left: 1em;
    top: .65em;
    position: absolute;
    filter: invert(100%);
}
.filter-toggle-btn.btn_default:after {
    filter: brightness(0) invert(40%) sepia(100%) saturate(7059%) hue-rotate(246deg) brightness(95%) contrast(143%);
}

.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.filter-panel.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.filter-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.filter-panel-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.filter-panel.active .filter-panel-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e1e8ed;
}

.filter-panel-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #14171a;
}

.filter-panel-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #657786;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.filter-panel-close:hover {
    background: #f7f9fa;
}

.filter-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filter-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e8ed;
}

.filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #14171a;
    min-width: 120px;
    flex-shrink: 0;
    padding-top: 8px;
}

.filter-keyword-search {
    flex: 1;
    max-width: 400px;
}

.keyword-search-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    color: #14171a;
}

.keyword-search-input:focus {
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.keyword-search-input::placeholder {
    color: #999;
}

.filter-checkboxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 8px;
    flex: 1;
}

.filter-checkboxes-scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.filter-checkboxes-scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-checkboxes-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-checkboxes-scrollable::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-checkboxes-scrollable::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 14px;
    transition: all 0.2s ease;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    border-radius: 4em;
    user-select: none;
}

.filter-checkbox-label:hover {
    border-color: #ccc;
}

/* デフォルトチェック状態（薄いグレー） */
.filter-checkbox-label.default-checked {
    background: #f5f5f5;
    border-color: #ddd;
    color: #555;
}


.filter-checkbox-label.default-checked input[type="checkbox"] + span::after {
    opacity:.15;
}

/* チェックボックス・ラジオボタンを非表示 */
.filter-checkbox-label input[type="checkbox"],
.filter-checkbox-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* カスタムチェックボックス・ラジオボタン */
.filter-checkbox-label input + span {
    position: relative;
    padding-left: 24px;
}

.filter-checkbox-label input + span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    background: #fff;
    transition: all 0.2s ease;
    margin-right: .3em;
}


/* ラジオボタンは円 */
.filter-checkbox-label input[type="radio"] + span::before {
    border-radius: 50%;
}

/* チェックマーク（チェックボックス） */
.filter-checkbox-label input[type="checkbox"]:checked + span::after,
.filter-checkbox-label.default-checked input[type="checkbox"] + span::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 44%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid var(--theme);
    border-width: 0 2px 2px 0;
}

/* ラジオボタンの内側の円 */
.filter-checkbox-label input[type="radio"]:checked + span::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme);
}

/* チェック済み・選択済みスタイル */
.filter-checkbox-label input[type="checkbox"]:checked + span::before,
.filter-checkbox-label input[type="radio"]:checked + span::before {
    background: #fff;
    border-color:#fff;
}

.filter-checkbox-label:has(input:checked) {
    background: var(--theme-gradient);
    color: #fff;
    border-color: #fff;
}

.filter-panel-footer {
    padding: 24px 30px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
}

.filter-count-display {
    font-size: 14px;
    color: #657786;
}

.filter-count-display #filterCount {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.filter-count-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #e1e8ed;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.filter-buttons {
    display: flex;
    gap: 16px;
}

.filter-apply-btn,
.filter-reset-btn {
    cursor: pointer;
    min-width: 8em;
}

/* ===== ケーススタディ作成モーダル ===== */
.create-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s ease;
}

.create-modal.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

.create-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.create-modal-content {
    position: relative;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 90%;
    max-width: 800px;
    margin-bottom: 50px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.create-modal.active .create-modal-content {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* 広いモーダルパターン */
.create-modal.wide .create-modal-content {
    max-width: 1000px;
}

.create-modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 28px;
    color: #657786;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

.create-modal-close:hover {
    background: #f7f9fa;
}

.create-modal-body {
    padding: 50px;
}
.create-modal-body .btn {
    width: 100%;
}

/* ステップコンテナを3カラムに */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.create-option {
}

.create-option-image {
    width: 100%;
    margin-top: 14px;
}

.create-option-image img {
    width: 100%;
    height: auto;
    display: block;
}
.create-option-content {
    width: 100%;
}
.create-option .step {
    display: inline-block;
    line-height: 1em;
    color: #fff;
    background-color: #555;
    border-radius: 2em;
    padding: .3em .8em;
    margin-top: 10px;
    margin-bottom: .9em;
    font-weight: bold;
}
.create-option h3 {
    line-height: 1.1em;
    color: #14171a;
}
.create-option .time {
    font-size: 60%;
    display: inline-block;
    vertical-align: top;
}
.create-option-content .tx {
    color: #657786;
    line-height: 1.6;
    margin-top: 10px;
}

.create-option-btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* モーダルボタングループ */
.modal-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-buttons .btn {
    flex: 1;
}

.modal-manual-link {
    text-align: center;
    margin-top: 20px;
    margin-bottom: -10px;
}

.modal-manual-link a {
    color: #657786;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-manual-link a:hover {
    color: #8952e3;
    text-decoration: underline;
}

.modal-manual-link .manual-icon {
    width: 1.5em;
    height: 1.5em;
    display: inline-block;
    margin-right: -.3em;
    vertical-align: middle;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .filter-panel-content {
        width: 97%;
        max-height: 98vh;
    }

    .filter-panel-header {
        padding: 16px 20px;
    }

    .filter-panel-header h2 {
        font-size: 20px;
    }

    .filter-panel-close {
        font-size: 28px;
        padding: 8px;
    }

    .filter-panel-body {
        gap: 0;
        padding: 15px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overflow: scroll;
        min-height: 0;
        flex: 1;
        max-height: calc(100vh - 200px);
    }

    .filter-section {
        margin-bottom: 0;
        padding-bottom: 24px;
        flex-direction: column;
        gap: 12px;
    }

    .filter-section:last-child {
        padding-bottom: 0;
    }

    .filter-section-title {
        font-size: 16px;
        margin-bottom: 0;
        width: 100%;
    }

    .filter-keyword-search {
        max-width: 100%;
    }

    .keyword-search-input {
        font-size: 16px;
        padding: 10px 16px;
    }

    .filter-checkboxes {
        gap: 8px 6px;
    }

    .filter-checkbox-label {
        padding: 8px 13px;
        font-size: 14px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .filter-checkbox-label input[type="checkbox"],
    .filter-checkbox-label input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    .filter-panel-footer {
        padding: 16px 20px;
        flex-direction: column;
        gap: 12px;
    }

    .filter-count-display {
        text-align: center;
        width: 100%;
    }

    .filter-buttons {
        gap: 10px;
        width: 100%;
    }

    .filter-apply-btn,
    .filter-reset-btn {
        width: 100%;
        min-width: auto;
    }

    /* 登録モーダルのスマホ対応 */
    .create-modal-content {
        width: 97%;
        top: 20px;
        margin-bottom: 20px;
    }

    .create-modal-body {
        padding: 45px 25px 35px;
        margin-bottom: 20px;
    }

    /* ステップを縦並びに */
    .steps-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* モーダルボタンを縦並びに */
    .modal-buttons {
        flex-direction: column;
    }
    .create-modal-close {
        top: 10px;
        right: 10px;
    }
}

/* ===== AI Interview選択ページ ===== */
.ai-interview-page {
    padding: 60px 0;
}

.ai-interview-header {
    margin-bottom: 20px;
}

.ai-interview-header h1 {
    margin-bottom: 16px;
}

.ai-interview-options {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.ai-option-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: #fff;
    border: 1px solid #e1e8ff;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-option-card:hover {
    border-color: var(--theme);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ai-option-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ai-option-content {
    flex: 1;
}

.ai-option-title {
    margin-bottom: 12px;
    color: #14171a;
}

.ai-option-description {
    color: #657786;
    line-height: 1.6;
}

.ai-option-arrow {
    flex-shrink: 0;
    font-size: 32px;
    color: var(--theme);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.ai-option-card:hover .ai-option-arrow {
    transform: translateX(3px);
}

.ai-interview-footer {
    text-align: center;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .ai-interview-page {
        padding: 40px 0;
    }

    .ai-interview-header {
        margin-bottom: 40px;
    }

    .ai-option-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }

    .ai-option-icon {
        width: 60px;
        height: 60px;
    }

    .ai-option-arrow {
        transform: rotate(90deg);
    }

    .ai-option-card:hover .ai-option-arrow {
        transform: rotate(90deg) translateX(8px);
    }
}

/* ===== 投稿マニュアルページ ===== */
.manual-page {
    padding: 60px 0;
}

.manual-page-header {
    margin-bottom: 40px;
}

.manual-page-title {
    color: #14171a;
    margin: 0;
}

/* スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* スクロール時のオフセット（ヘッダーの高さ分） */
.manual-section,
.manual-step {
    scroll-margin-top: 100px;
}

.manual-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.manual-toc {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
}

.manual-toc-inner {
    background: #fff;
    padding: 24px;
}

.manual-toc-title {
    margin-bottom: 20px;
    color: #14171a;
}

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

.manual-toc-nav > ul > li {
    margin-bottom: 20px;
}

.manual-toc-nav > ul > li:last-child {
    margin-bottom: 0;
}

.manual-toc-link {
    display: block;
    color: #14171a;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.manual-toc-link:hover {
    color: var(--theme);
}

.manual-toc-sub {
    margin-top: 8px;
    padding-left: 1em;
}

.manual-toc-sub li {
    margin-bottom: 8px;
}

.manual-toc-sub li:last-child {
    margin-bottom: 0;
}

.manual-toc-sublink {
    display: block;
    color: #657786;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.manual-toc-sublink:hover {
    color: var(--theme);
}

.manual-content {
    flex: 1;
    min-width: 0;
}

.manual-section {
    margin-bottom: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.manual-section-title {
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--theme);
    color: #14171a;
}

.manual-step {
    margin-bottom: 50px;
    padding: 0;
}

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

.manual-step-title {
    margin-bottom: 10px;
    color: #14171a;
}

.manual-step-description {
    margin-bottom: 20px;
    line-height: 1.8;
}

.manual-image {
    width: 100%;
    margin-top: 20px;
}

.manual-image img {
    width: 100%;
    height: auto;
    display: block;
}

.manual-image-placeholder {
    width: 100%;
    height: 400px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

.inline_lnk {
    color: var(--theme);
    text-decoration: underline;
}

.inline_lnk:hover {
    color: #5568d3;
}

@media (max-width: 968px) {
    .manual-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .manual-toc {
        flex: none;
        width: 100%;
        position: static;
    }

    .manual-toc-inner {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .manual-page {
        padding: 40px 0;
    }

    .manual-page-header {
        margin-bottom: 30px;
    }

    .manual-page-title {
        font-size: 28px;
    }

    .manual-section {
        margin-bottom: 40px;
        padding: 30px 20px;
    }

    .manual-section-title {
        margin-bottom: 30px;
        font-size: 24px;
    }

    .manual-step {
        padding: 0;
        margin-bottom: 30px;
    }

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

    .manual-step-title {
        font-size: 20px;
    }

    .manual-image-placeholder {
        height: 300px;
    }

    .manual-toc-title {
        font-size: 20px;
    }

    .manual-toc-link {
        font-size: 14px;
    }

    .manual-toc-sublink {
        font-size: 13px;
    }
}
