/* 全体の初期化とベーススタイル */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: none !important;
    animation: none !important;
}

body {
    color: #000000;
    background-color: #ffffff;
    padding: 30px 37px;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Shippori Mincho', serif;
}

/* ==========================================================================
   ヘッダー周り
   ========================================================================== */
.header {
    display: block;
    margin-bottom: 50px;
    width: 100%;
}

.logo h1 {
    font-size: 14px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.header-main-line {
    display: flex;
    align-items: baseline;
    margin-top: 2px;
}

.logo .en {
    font-size: 13px;
    white-space: nowrap;
}

.divider {
    font-size: 13px;
    margin: 0 24px;
    color: #000000;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav a {
    color: #000000;
    text-decoration: none;
    font-size: 13px;
}

.nav ul li.menu-item {
    display: none !important;
}

.header:hover .nav ul li.menu-item {
    display: block !important;
}

/* ==========================================================================
   テキストページレイアウト（PC・タブレット：2カラム横並び）
   ========================================================================== */
.text-page-container {
    display: flex;
    justify-content: space-between;    
    align-items: flex-start;
    min-height: 600px;
    padding-right: 120px;
    margin-bottom: 80px;
}

/* --- 左側：サイドバー --- */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sort-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    height: 20px;
}

.sort-btn {
    background: none;
    border: none;
    font-size: 12px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 0;
    font-family: 'Shippori Mincho', serif;
}

.sort-btn.active {
    color: #000000;
}

.article-list {
    list-style: none;
}

.article-item {
    margin-bottom: 14px;
}

.article-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 10px;
    color: #b0b0b0;
}

/* タイトルの文字部分のみポインターカーソルに変更 */
.article-title-row .title {
    cursor: pointer;
    display: inline-block;
}

.article-title-row .category {
    font-size: 8px;
    color: #000000;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    cursor: default;
}

.article-item:hover .article-title-row,
.article-item.is-active .article-title-row {
    color: #000000;
}

.article-item:hover .category,
.article-item.is-active .category {
    opacity: 1;
    visibility: visible;
}

/* モバイル用インライン記事（PCでは非表示） */
.mobile-inline-content {
    display: none;
}

/* --- 右側：記事詳細エリア（PC） --- */
.article-content {
    flex: 1;
    max-width: 980px;
    margin-top: 55px;
}

.article-header-title {
    font-size: 15px;
    font-weight: normal;
    margin-bottom: 8px;
    line-height: 1.2;
}

.article-date {
    font-size: 11px;
    color: #a0a0a0;
    margin-bottom: 35px;
}

.article-body {
    font-size: 12px;
    line-height: 2.0;
    text-align: justify;
    text-justify: inter-ideograph;
}

.article-body p {
    margin-bottom: 25px;
}

.article-body a {
    color: #000000;
    text-decoration: underline;
}

.article-image-wrapper {
    margin: 40px 0 10px 0;
    width: 100%;
}

.article-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-image-caption {
    font-size: 10px;
    color: #000000;
    text-align: right;
    margin-bottom: 30px;
}

.back-to-works {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 30px;
}

.back-to-works a {
    font-size: 18px;
    color: #000000;
    text-decoration: none;
    display: inline-block;
}

/* ==========================================================================
   タブレット対応 (1024px以下)
   ========================================================================== */
@media (max-width: 1024px) {
    body {
         padding: 25px 20px;
    }
    .text-page-container {
        padding-right: 20px;
    }
    .sidebar {
        width: 240px;
    }


.divider {
        margin: 0 16px;
    }

    .nav ul {
        gap: 16px;
    }
    
    .nav ul li.menu-item { display: block !important; }
    .article-header-title {
        font-size: 12px;
    }
    .article-image-caption {
        font-size: 8px;
    }
}

/* ==========================================================================
   650px以下：モバイル表示
   ========================================================================== */
@media (max-width: 600px) {
      body {
        padding: 20px 30px;
    }
}
@media (max-width: 650px) {


    .header {
        margin-bottom: 40px;
    }

    .text-page-container {
        display: block;
        padding-right: 0;
        min-height: auto;
        margin-bottom: 40px;
    }

    .sidebar {
        width: 100%;
    }

    .article-content {
        display: none !important;
    }

    .article-item {
        margin-bottom: 22px;
    }

    .article-title-row {
        font-size: 11px;
    }

    .article-title-row .category {
        font-size: 8px;
        margin-top: 1.5px;
    }

    .mobile-inline-content {
        display: none;
        width: 100%;
        margin-top: 25px;
        margin-bottom: 35px;
    }

    .mobile-inline-content.is-opened {
        display: block;
    }

    .mobile-inline-content.is-active {
        visibility: visible;
    }

    .mobile-inline-content.is-hidden-space {
        visibility: hidden !important;
        pointer-events: none;
    }

    .mobile-inline-content .article-date {
        font-size: 10px;
        color: #000000;
        margin-bottom: 30px;
    }

    .mobile-inline-content .article-body {
        font-size: 11px;
        line-height: 2.1;
    }

    .mobile-inline-content .article-body p {
        margin-bottom: 20px;
    }

    .mobile-inline-content .article-image-wrapper {
        margin: 30px 0 8px 0;
    }

    .mobile-inline-content .article-image-caption {
        font-size: 8px;
        margin-bottom: 20px;
    }
}