/* ====================================
   SESメディア - ビジネスプロフェッショナル向けスタイル
   ==================================== */

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f8f9fa;
    font-size: 16px;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* 黄色マーカー */
.marker-yellow {
    background-color: yellow;
    font-weight: bold;
}
  
  /* 赤＋太字 */
.red-bold {
    color: red;
    font-weight: bold;
}

/* ====================================
   ヘッダー 上右下左 の順番
   ==================================== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0px 0px 0px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.site-logo a {
    color: #1a1a1a;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: #555;
    font-weight: 500;
    font-size: 15px;
}

/* ハンバーガーメニュー関連はデフォルトで非表示 */
.menu-toggle-checkbox,
.hamburger-menu {
    display: none;
}

/* ====================================
   パンくずリスト
   ==================================== */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #999;
    font-size: 16px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #0066cc;
}

.breadcrumb li:last-child {
    color: #333;
    font-weight: 500;
}

/* ====================================
   メインコンテンツ
   ==================================== */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 40px 0 60px;
}

/* ====================================
   ページヘッダー
   ==================================== */
.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e8e8e8;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.page-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* ====================================
   記事一覧
   ==================================== */
.article-list {
    display: grid;
    gap: 24px;
}

.article-item {
    background: #fff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.article-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.article-title a {
    color: #1a1a1a;
}

.article-title a:hover {
    color: #0066cc;
}

.article-description {
    color: #555;
    margin-bottom: 16px;
    line-height: 1.7;
}

.article-tags {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag, .tag-link {
    display: inline-block;
    background: #f0f4f8;
    color: #0066cc;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #d6e4f0;
    transition: all 0.2s ease;
}

.tag:hover, .tag-link:hover {
    background: #e3eef7;
    text-decoration: none;
}

.read-more {
    color: #0066cc;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: #0052a3;
}

/* ====================================
   ページネーション
   ==================================== */
.pagination {
    margin-top: 50px;
}

.pagination ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    min-width: 44px;
    text-align: center;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f0f4f8;
    border-color: #0066cc;
    text-decoration: none;
}

.pagination .current span {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* ====================================
   コンテンツラッパー（2カラム）
   ==================================== */
.content-wrapper {
    max-width: 880px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* ====================================
   記事詳細
   ==================================== */
.article-detail {
    background: #fff;
    padding: 48px 56px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    overflow-x: hidden;
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
}

.article-header h1 {
    font-size: 32px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.article-meta {
    color: #666;
    font-size: 14px;
}

/* ====================================
   目次
   ==================================== */
.table-of-contents {
  background: #f7f7f7;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  padding: 20px 25px;
  margin: 2em 0;
}

.toc-title {
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding-left: 20px;
}

.toc-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid #333;
  border-right: 2px solid #333;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s ease;
}

.table-of-contents:not(.is-closed) .toc-title::before {
  transform: translateY(-30%) rotate(225deg);
}

.table-of-contents.is-closed .toc-list {
  display: none;
}

.toc-list, .toc-h3-list {
    list-style: none;
    padding-left: 0;
}

.toc-list {
  margin-top: 15px;
}

.toc-h2 {
  margin-top: 0.8em;
  font-weight: bold;
}

.toc-h2 a {
  color: #0066cc;
  text-decoration: none;
}

.toc-h3-list {
  margin-top: 0.5em;
  padding-left: 20px;
}

.toc-h3 {
  font-weight: normal;
  margin-top: 0.5em;
}

.toc-h3 a {
  color: #0066cc;
  text-decoration: none;
}

.toc-h2 a:hover,
.toc-h3 a:hover {
  text-decoration: underline;
}

/* ====================================
   記事コンテンツ
   ==================================== */
.article-content {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 48px;
    color: #333;
}

.article-content h2 {
    font-size: 28px;
    margin: 48px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #0066cc;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
}

.article-content h2::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0052a3;
}

.article-content h3 {
    font-size: 22px;
    margin: 36px 0 16px;
    padding-left: 12px;
    border-left: 4px solid #0066cc;
    color: #1a1a1a;
    font-weight: 600;
}

.article-content h4 {
    font-size: 19px;
    margin: 28px 0 12px;
    color: #1a1a1a;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content strong {
    font-weight: 700;
    color: #1a1a1a;
    background: linear-gradient(transparent 60%, #fff5b1 60%);
}

.article-content em {
    font-style: italic;
    color: #0066cc;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-content ul,
.article-content ol {
    margin-left: 28px;
    margin-bottom: 24px;
    padding-left: 8px;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ul ul {
    list-style-type: circle;
    margin-top: 8px;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.article-content li::marker {
    color: #0066cc;
    font-weight: 600;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content thead {
    background: #0066cc;
    color: #fff;
}

.article-content th {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 2px solid #0052a3;
}

.article-content td {
    padding: 16px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}

.article-content tbody tr:hover {
    background: #f8f9fa;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    font-style: italic;
    color: #555;
}

.article-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #d63384;
}

.article-content pre {
    background: #2d2d2d;
    color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    background: transparent;
    color: #f8f8f8;
    padding: 0;
}

.article-footer {
    margin-top: 48px;
    padding-top: 32px;
}

.article-share {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.article-share p {
    margin-bottom: 12px;
    font-weight: 600;
    color: #333;
}

.share-btn {
    display: inline-block;
    padding: 12px 24px;
    margin-right: 12px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    text-decoration: none;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.line {
    background: #00b900;
}

.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.nav-link {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    color: #333;
    transition: all 0.2s ease;
    font-size: 15px;
}

.nav-link:hover {
    background: #fff;
    border-color: #0066cc;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,102,204,0.15);
}

.nav-link.prev::before {
    content: "← ";
    color: #0066cc;
}

.nav-link.next {
    text-align: right;
}

.nav-link.next::after {
    content: " →";
    color: #0066cc;
}

.back-to-list {
    text-align: center;
    margin-top: 24px;
}

.back-to-list a {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    border: 2px solid #0066cc;
    border-radius: 4px;
    color: #0066cc;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-to-list a:hover {
    background: #0066cc;
    color: #fff;
    text-decoration: none;
}

/* サイドバー関連スタイル（1カラムレイアウトでは不使用）
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #0066cc;
    color: #1a1a1a;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.sidebar-list a {
    color: #333;
    font-size: 15px;
    display: block;
    transition: all 0.2s ease;
}

.sidebar-list a:hover {
    color: #0066cc;
    padding-left: 8px;
    text-decoration: none;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-form button {
    padding: 12px 20px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.search-form button:hover {
    background: #0052a3;
}
*/

.site-footer {
    background: #1a1a1a;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
}

.footer-nav a {
    color: #ccc;
    font-size: 14px;
}

.footer-nav a:hover {
    color: #fff;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.error-page h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

@media (max-width: 768px) {
    .article-detail {
        padding: 24px 20px;
    }
    
    .article-header h1 {
        font-size: 24px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 19px;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
    }
    
    .hamburger-menu {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 21px;
        position: relative;
        z-index: 1010;
    }

    .hamburger-menu span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #333;
        border-radius: 3px;
        left: 0;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 9px; }
    .hamburger-menu span:nth-child(3) { top: 18px; }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding-top: 80px;
        z-index: 1000;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .main-nav a {
        font-size: 18px;
    }

    .menu-toggle-checkbox:checked ~ .main-nav {
        transform: translateX(0);
    }

    .menu-toggle-checkbox:checked + .hamburger-menu span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }

    .menu-toggle-checkbox:checked + .hamburger-menu span:nth-child(2) {
        opacity: 0;
        left: -30px;
    }

    .menu-toggle-checkbox:checked + .hamburger-menu span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
    
    .article-content table {
        font-size: 14px;
    }
    
    .article-content th,
    .article-content td {
        padding: 12px 8px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .table-of-contents {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 19px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
}

/* 記事の公開日・更新日のスタイル */
.article-date {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.article-date time {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-date .date-label {
    font-weight: 600;
    color: #333;
}

.article-date .published-date {
    color: #555;
}

.article-date .updated-date {
    color: #555;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .article-date {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
}

/* 記事一覧ページの公開日・更新日のスタイル */
.article-date-list {
    display: flex;
    gap: 16px;
    margin: 8px 0 12px 0;
    font-size: 13px;
    color: #666;
}

.article-date-list time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-date-list .date-label {
    font-weight: 600;
    color: #333;
}

.article-date-list .published-date {
    color: #555;
}

.article-date-list .updated-date {
    color: #555;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .article-date-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 12px;
    }
}

/* H2見出し画像のスタイル（CLS対策：640×425対応・WebP） */
.article-content .h2-image {
    display: block;
    width: 100%;
    max-width: 640px;
    height: auto;
    aspect-ratio: 640 / 425;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-height: 425px;
}

/* スマホ表示時 */
@media (max-width: 768px) {
    .article-content .h2-image {
        margin: 15px auto;
        border-radius: 4px;
        min-height: auto;
    }
}

/* より小さい画面ではアスペクト比を維持しつつ可変 */
@media (max-width: 640px) {
    .article-content .h2-image {
        min-height: calc((100vw - 40px) * 425 / 640);
    }
}

/* ====================================
   メイン画像(タイトル画像) - 1920×1080対応
   ==================================== */

   .article-main-image {
    margin: 0 0 2rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.article-main-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1920 / 1080;
}

/* レスポンシブ対応 */
@media (max-width: 880px) {
    .article-main-image {
        border-radius: 0;
        margin-left: -56px;
        margin-right: -56px;
        width: calc(100% + 112px);
        max-width: calc(100% + 112px);
    }
}

@media (max-width: 768px) {
    .article-detail {
        padding: 24px 20px;
    }
    
    .article-main-image {
        box-shadow: none;
        border-radius: 0;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        max-width: calc(100% + 40px);
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .article-main-image {
        margin-bottom: 1rem;
    }
    
    .article-main-image img {
        object-fit: contain;
    }
}