@import url('https://fonts.googleapis.com/css2?family=Coustard:wght@900&family=Noto+Sans+JP:wght@400;700&family=Shippori+Mincho:wght@400;600&display=swap');

/* グローバルナビゲーション */
.global-nav {
    color: rgba(192, 0, 0, 0.35);
    position: fixed;
    top: 0;
    right: 0;
    padding: 0;
    z-index: 3;
}

.global-nav a {
    color: rgba(192, 0, 0, 0.7);
    text-decoration: none;
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    font-size: 0.9em;
    text-transform: uppercase;
    padding: 0.2em 0.2em;
    border-radius: 1em;
    display: inline-block;
    transition: all 0.3s ease;
}

.global-nav a:hover {
    color: #fff;
    background: rgba(192, 0, 0, 0.9);
    box-shadow: 
        0 0 15px rgba(192, 0, 0, 0.3),
        0 0 30px rgba(192, 0, 0, 0.2);
}

/* ヘッダー背景部分 */
.header-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #FFD700;  /* 黄金色 */
}

.main-title {
    font-family: 'Coustard', "Shippori Mincho", serif;
    font-weight: 900;
    font-size: 20vw;
    color: #C0C0C0;
    transform: rotate(-8deg);
    text-align: left;
    width: 120%;
    margin-top: -8vw;
    padding: 0;
    line-height: 0.8;
    position: relative;
}

/* コンテンツエリア */
.content {
    position: relative;
    z-index: 1;
    padding: 40px;
    margin-top: 70vh;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.85);
    max-width: 1200px;
    font-size: 1.1em;  /* 文字サイズを少し大きく */
}

/* 記事本文エリア */
.content .main-content {
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
}

/* 見出し */
.content h2 {
    font-family:
        "ゴシックMB101 B",
        "Gothic MB101 Bold",
        "Hiragino Kaku Gothic ProN",
        "ヒラギノ角ゴ ProN",
        "游ゴシック体",
        "Yu Gothic",
        "YuGothic",
        "Noto Sans CJK JP",
        "Noto Sans JP", sans-serif;
    font-size: 3em;
    font-weight: 700;
    margin: -5px 0 -5px 0; /* 上部のマージンを-10pxに設定 */
    line-height: 1.1;
    padding: 0 0 20px;
    position: sticky;
    top: 0;
    z-index: 2;
    font-feature-settings: 
        "palt" 1,
        "kern" 1;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.02em;
    background: none;
    text-shadow:
        /* 黒いシャドウ */
        1px 1px 1px rgba(0, 0, 0, 0.3),
        2px 2px 2px rgba(0, 0, 0, 0.2),
        /* 白い光彩効果 */
        0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.9),
        0 0 40px rgba(255, 255, 255, 0.8),
        0 0 50px rgba(255, 255, 255, 0.7);
}

/* リード文 */
.content .lead {
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 1em;
}

/* 本文 */
.content p {
    font-family: 
        /* macOS + iOS */
        "Hiragino Mincho ProN W3",
        "Hiragino Mincho ProN",
        "ヒラギノ明朝 ProN W3",
        /* Windows */
        "Yu Mincho Light",
        "YuMincho",
        "Yu Mincho",
        "游明朝体",
        /* Windows + macOS */
        "MS PMincho",
        /* 最終フォールバック */
        "Shippori Mincho", serif;
    font-weight: 300;
    font-size: 1em;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    text-align: justify;
}

/* 最初の段落のパディングを消す */
.content p:first-of-type {
    padding-top: 0;
}

/* 横長画面の場合のみ2段組を適用 */
@media screen and (min-width: 1200px) {
    .content .main-content {
        column-count: 2;
        column-gap: 3em;
        column-rule: 1px solid #ddd;
    }
}

/* ラム */
.content .column {
    font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    background: #f5f5f5;
    padding: 1.5em;
    margin: 2em 0;
}

/* フッター */
.global-footer {
    padding: 2em 40px;
    margin-top: 0;
    text-align: center;
}

.global-footer .copyright {
    font-family: 
        "ゴシックMB101 B",
        "Gothic MB101 Bold",  
        "Hiragino Kaku Gothic ProN",
        "ヒラギノ角ゴ ProN",
        "Yu Gothic",
        YuGothic,
        "Noto Sans JP", sans-serif;
    font-size: 0.9em;
    color: #333;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.02em;
}

/* プロフィールページ用のスタイル */
.content h3 {
    font-family:
        "ゴシックMB101 B",
        "Gothic MB101 Bold",
        "Hiragino Kaku Gothic ProN",
        "ヒラギノ角ゴ ProN",
        "Yu Gothic",
        YuGothic,
        "Noto Sans JP", sans-serif;
    font-size: 1.4em;  /* 本文との比率を保つ */
    margin: 1.5em 0 0.5em;  /* 上下の余白を固定 */
    padding: 0;
    page-break-after: avoid;  /* 見出しの後で改段を避ける */
    text-rendering: optimizeLegibility;
    letter-spacing: -0.02em;
}

/* 最初の見出しは上マージンを小さく */
.content h3:first-of-type {
    margin-top: 0em;
}

/* 小見出しのマージン */
.content h4 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
    page-break-after: avoid;
}

.content ul {
    margin: 0;
    padding-left: 1.5em;
}

.content ul li {
    margin: 0;
    line-height: 1.6;
}

/* Works詳細ページのスタイル */
.breadcrumb {
    margin: 0 0 2em;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.work-meta {
    margin: 2em 0;
    padding: 1.5em;
    background: #f5f5f5;
    border-radius: 8px;
}

.work-meta dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5em 1em;
}

.work-meta dt {
    font-weight: bold;
    color: #333;
}

.work-meta dd {
    margin: 0;
}

.work-images {
    margin: 2em 0;
    display: grid;
    gap: 2em;
}

.work-images figure {
    margin: 0;
}

.work-images img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-images figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.work-links {
    margin: 2em 0;
}

.work-links ul {
    list-style: none;
    padding: 0;
}

.work-links li {
    margin: 0.5em 0;
}

.work-links a {
    color: #c00;
    text-decoration: none;
}

.work-links a:hover {
    text-decoration: underline;
}

/* Works一覧ページのスタイル */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin: 2em 0;
}

.work-card {
    display: flex;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

/* 偶数番目のカードのレイアウトを反転 */
.work-card:nth-child(even) {
    flex-direction: row-reverse;
}

.work-card:hover {
    transform: translateY(-3px);
}

.work-thumbnail {
    flex: 0 0 140px;
    height: 200px;
    overflow: hidden;
}

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

.work-info {
    flex: 1;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
}

.work-info h3 {
    margin: 0 0 1em 0;
    font-size: 1.4em;
}

.work-info h3 a {
    text-decoration: none;
    color: inherit;
}

.work-lead {
    flex: 1;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1em;
    line-height: 1.8;
    color: #333;
    margin: 0 0 1.5em 0;
}

.work-info time {
    font-size: 0.9em;
    color: #666;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .work-card,
    .work-card:nth-child(even) {  /* ��バイルでは全て同じ方向に */
        flex-direction: column;
    }
    
    .work-thumbnail {
        flex: none;
        width: 100%;
        height: 200px;
    }
}

/* 画像左配置 */
.image-left {
    flex-direction: row;
}

/* 画像右配置 */
.image-right a {
    flex-direction: row-reverse;
}

.work-image {
    flex: 0 0 40%;
}

.work-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.work-title {
    font-size: 1.5em;
    margin: 0 0 0.5em;
    line-height: 1.4;
}

.work-date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 0.5em;
}

.work-type {
    font-weight: bold;
    margin-bottom: 0.3em;
}

.work-media {
    color: #666;
    margin-bottom: 0.5em;
}

.work-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-top: 0.5em;
}

.role-tag {
    background: #f0f0f0;
    padding: 0.3em 0.8em;
    border-radius: 1em;
    font-size: 0.9em;
    color: #333;
}

.more-button {
    text-align: center;
    margin: 4em 0;
}

.more-button a {
    display: inline-block;
    padding: 1em 3em;
    background: #c00;
    color: #fff;
    text-decoration: none;
    border-radius: 2em;
    transition: background-color 0.3s;
}

.more-button a:hover {
    background: #900;
}

/* 最後のメッセージ用のスタイル */
.end-message {
    text-align: right;
    margin: 4em 0;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

/* プロフィールページの背景 */
.profile-page .header-background {
    background-image: url('../images/meishi.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #fff;
}

/* 大きな画面サイズの場合 */
@media screen and (min-width: 1600px) {
    .profile-page .header-background {
        background-size: cover;
        background-position: center top;
    }
}

/* プロフィールページのコンテンツ背景 */
.profile-page .content {
    background: rgba(255, 215, 0, 0.9);  /* #FFD700 with 0.9 opacity */
}

/* Wikipediaスタイルのリンク - より鮮やかなカラー */
.lead a {
    color: #0066cc;  /* より鮮やかな青 */
    text-decoration: none;
}

.lead a:hover {
    text-decoration: underline;
    color: #0099ff;  /* ホバー時はさらに明るく */
}

.lead a:visited {
    color: #6600cc;  /* より鮮やかな紫 */
}

/* プロフィールページのリード文スタイル調整 */
.profile-page .lead {
    line-height: 1.8;
    margin: 1 0;
    font-size: 1.1em;
}

/* カラム部分の左ボーダーも合わせて変更 */
.column {
    margin: 2em 0;
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.7);
    border-left: 5px solid #0066cc;  /* 新しい青に合わせる */
}

/* プロフィールページの本文調整 */
.main-content h3:first-of-type {
    margin-top: 0;  /* 最初の見出し（略歴）の上マージンを削除 */
}

/* 活動分野の小見出し */
.main-content h4 {
    margin: 0;
    padding-left: 1em;    /* 小見出し自体を右にずらす */
    font-size: 1.2em;
    color: #333;
    page-break-after: avoid;
}


/* プロフィールヘッダー部分のレイアウト */
.profile-header {
    display: flex;
    gap: 2em;
    align-items: flex-start;  /* 上端揃え */
}

.profile-icon {
    flex: 0 0 200px;
    height: 200px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

/* 略歴テキスト部分 */
.profile-header p {
    flex: 1;
    margin: 0;  /* マージンをリセット */
}

/* プロフィールページの段落スタイル調整 */
.content p {
    margin: 0;  /* すべてのマージンを完全に削除 */
    padding: 0; /* パディングも削除 */
    line-height: 1.8;  /* 行間のみ設定 */
}

/* 見出し後のスペース */
h3 {
    margin-bottom: 0.5em;  /* 見出しの下にだけ少し空間 */
}

/* 他のマージンやパディングをリセット */
.content h3 + p,
.content p + p {
    margin: 0;
    padding: 0;
}

/* 段落の1文字目のインデント */
.content p:not(:first-of-type)::first-letter {
    padding-left: 1em;  /* 1文字分のアキ */
}

/* 約物から始まる段落用のクラス */
.no-indent {
    padding-left: 0 !important;  /* アキを打ち消す */
}

/* ゴシック体の太字 */
.content b {
    font-family:
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "Noto Sans JP", sans-serif;
    font-weight: 600;  /* 太さは適度に */
    text-rendering: optimizeLegibility;
    letter-spacing: -0.02em;
}

/* 活動分野の見出し後の余白を特別に制御 */
.content h3:nth-of-type(2) {  /* 活動分野の見出し */
    margin-bottom: 0.5em !important;  /* 強制的に固定 */
}

/* 右揃えの段落 */
.content p[align="right"] {
    text-align: right;    /* 右揃えを優先 */
}

/* 余談用イル */
.note {
    font-size: 0.75em;    /* フォントサイズを75%に変更 */
    color: #666;
    line-height: 1.6;
}

/* 左マージン付きの段落 */
.content p.indent-left {
    margin-left: 1.5em !important;  /* より強い指定に変更 */
}

/* モバイル向けスタイル */
@media screen and (max-width: 768px) {
    /* 背景イージの高さを半分に */
    .profile-page .header-background {
        height: 50vh;
    }

    /* コンテンツ開始位置の調整 */
    .content {
        margin-top: 30vh;  /* 背景に合わせて調整 */
        padding: 20px;     /* 余白を少し縮小 */
    }

    /* 2段組みを解除 */
    .content .main-content {
        column-count: 1;
        column-gap: 0;
    }

    /* プロフィールヘッダーのレイアウト調整 */
    .profile-header {
        flex-direction: column;  /* 縦並びに */
        gap: 1em;
    }

    /* プロフィール画像エリアの調整 */
    .profile-icon {
        width: 150px;      /* サイズを少し小さく */
        height: 150px;
        margin: 0 auto;    /* 中央寄せ */
    }

    /* フッターのマージン調整 */
    .global-footer {
        margin-bottom: 4em;  /* モバイルナビの高さ分 + 余裕 */
    }

    /* 見出しタイトルのサイズ調整 */
    .content h2 {
        font-size: 1.8em;  /* モバイルでは小さく */
    }
}

/* モバイル用ナビゲーション - デフォルトは非表示 */
.mobile-nav {
    display: none;
}

/* モバイル向けスタイル */
@media screen and (max-width: 768px) {
    /* PC用ナビを非表示に */
    .global-nav {
        display: none;
    }

    /* モバイル用ナビを表示 */
    .mobile-nav {
        color: rgba(192, 0, 0, 0.35);
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        font-size: 0.8em;
        background: rgba(255, 255, 255, 0.9);
        padding: 10px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav a {
        color: rgba(192, 0, 0, 0.7);
        text-decoration: none;
        font-family: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
        text-transform: uppercase;
        padding: 0.2em 0.2em;
        border-radius: 1em;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .mobile-nav a:hover {
        color: #fff;
        background: rgba(192, 0, 0, 0.9);
        box-shadow: 
            0 0 15px rgba(192, 0, 0, 0.3),
            0 0 30px rgba(192, 0, 0, 0.2);
    }

    .mobile-nav a:active {
        color: #fff;
        background: rgba(192, 0, 0, 0.9);
        box-shadow: 
            0 0 15px rgba(192, 0, 0, 0.3),
            0 0 30px rgba(192, 0, 0, 0.2);
    }
}

/* モバイル向けスタイル */
@media screen and (max-width: 768px) {
    .copy-ui {
        background: rgba(240, 240, 240, 0.5);  /* 軽い背色 */
        padding: 0.5em;
        border-radius: 4px;
        margin: 0.5em 0;
    }
}

/* 記事プ */
.article-preview {
    margin-bottom: 3em;
    padding-bottom: 2em;
    border-bottom: 1px solid #eee;
}

.article-preview h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.4em;
}

.article-preview h3 a {
    color: #333;
    text-decoration: none;
}

.article-preview h3 a:hover {
    color: #c00;
}

/* 記事のメタ情報 */
.article-meta {
    font-size: 0.9em;
    color: #666;
}

.article-meta time {
    margin-right: 1em;
}

.article-meta .category {
    background: rgba(192, 0, 0, 0.1);
    padding: 0.2em 0.8em;
    border-radius: 1em;
    margin-bottom: 2em;  /* 下の余白を大きく */
    color: #c00;
}

/* または方法3: categoryクラスと組み合わせる */
.article-meta .category.series {
    background: rgba(192, 125, 0, 0.1);
    padding: 0.2em 0.8em;
    border-radius: 1em;
    margin-bottom: 2em;
    color: rgb(0, 204, 156);
}
/* 「すべての記事を見る」リンク */
.more-link {
    text-align: right;
    margin-top: 2em;
}

.more-link a {
    color: #c00;
    text-decoration: none;
    padding: 0.5em 1em;
    border: 1px solid #c00;
    border-radius: 2em;
}

.more-link a:hover {
    background: #c00;
    color: white;
}

@media screen and (min-width: 768px) {
    .article-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2em;
        margin: 2em 0;
    }
}

@media screen and (max-width: 767px) {
    .article-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2em;
        margin: 2em 0;
    }
}

/* カードスタイル */
.article-preview.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1.2em;
    gap: 1.5em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 0;    /* 下マージンを0に */
}

.article-preview.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.article-preview .thumbnail {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 25%;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transform: rotate(8deg);
}

.article-preview .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-preview .card-content {
    flex-grow: 1;
    text-align: left;
}

.article-preview h3 {
    margin: 0 0 0.5em 0;
}

.article-preview .lead {
    margin: 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .article-preview.card {
        flex-direction: column;
        background: white;
  border-radius: 8px;
  overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s;
    }
    
    .article-preview .thumbnail {
        flex: none;
        width: 100%;
        height: 200px;
        transform: none;  /* 回転を解除 */
        border-radius: 8px;  /* 角丸を調整 */
    }
}

/* 記事詳細ページ */
.article-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-header {
    margin-bottom: 2em;
}

.article-header h2 {
    font-size: 1.8em;
    margin: 0 0 0 0;
}

.article-detail .lead {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2em;
    padding: 1em;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.article-body {
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.8;
    font-family: "Times New Roman", Times, "Shippori Mincho", serif;
}

@media (min-width: 1000px) {
    .article-body {
        column-width: 400px;
        column-gap: 3em;
        column-rule: 1px solid #ddd;
    }
}

.article-body {
    margin-bottom: 1em;
    text-align: justify;
    text-justify: inter-ideograph;  /* 日本語の両端揃えに最適 */
}

/* モバイル表示では1段組に */
@media screen and (max-width: 768px) {
    .article-body {
        column-count: 1;
        column-gap: 0;
    }
}

/* 記事内の見出し */
.article-body h3 {
    font-size: 1.4em;
    margin: 2em 0 1em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid rgba(192, 0, 0, 0.1);
}

/* モバイル対応 */
@media screen and (max-width: 768px) {
    .article-detail {
        padding: 0 15px;
    }

    .article-header h2 {
        font-size: 1.5em;
    }
}

/* リスト終端メッセージ */
.end-message {
    text-align: center;
    margin: 2em 0;
    padding: 1em;
    color: #666;
    font-style: italic;
}

/* Worksグリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.work-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.work-card:hover {
    transform: translateY(-3px);
}

.work-card a {
    text-decoration: none;
    color: inherit;
}

.work-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.work-info {
    padding: 1.2em;
}

.work-info h3 {
    margin: 0 0 0.5em 0;
    font-size: 1.2em;
}

.work-lead {
    font-size: 0.9em;
    color: #666;
    margin: 0 0;
    line-height: 1.6;
}

.work-info time {
    display: block;
    font-size: 0.8em;
    color: #999;
    margin-top: 1em;
}

/* 記事一覧のグリッドレイアウト */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.article-preview {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.article-preview:hover {
    transform: translateY(-3px);
}

.article-preview a {
    text-decoration: none;
    color: inherit;
}

.article-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.article-info {
    padding: 1.5em;
}

.article-info h3 {
    margin: 0 0 1em 0;
    font-size: 1.2em;
    line-height: 1.4;
}

.article-lead {
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
    margin: 0 0 1em 0;
}

.article-info time {
    font-size: 0.9em;
    color: #999;
}

/* 色鉛筆でチェックしたような演出 */
pencil {
    display: inline;
    position: relative;
    padding: 0 2px;
    background-image: 
        linear-gradient(-42deg, transparent 32%, rgba(245, 245, 245, 0.6) 32%, rgba(245, 245, 245, 0.6) 68%, transparent 68%),
        linear-gradient(-48deg, transparent 35%, rgba(245, 245, 245, 0.5) 35%, rgba(245, 245, 245, 0.5) 65%, transparent 65%),
        linear-gradient(-35deg, transparent 38%, rgba(245, 245, 245, 0.55) 38%, rgba(245, 245, 245, 0.55) 62%, transparent 62%),
        linear-gradient(-52deg, transparent 34%, rgba(245, 245, 245, 0.5) 34%, rgba(245, 245, 245, 0.5) 66%, transparent 66%);
    background-size: 
        4px 100%,
        5px 100%,
        3px 100%,
        4px 100%;
    background-position: 
        0 90%,
        2px 93%,
        -2px 91%,
        1px 92%;
}

/* 複数の色のバリエーション */
pencil.red {
    background-image: 
        linear-gradient(-42deg, transparent 32%, rgba(255, 200, 200, 0.7) 32%, rgba(255, 200, 200, 0.7) 68%, transparent 68%),
        linear-gradient(-48deg, transparent 35%, rgba(255, 180, 180, 0.6) 35%, rgba(255, 180, 180, 0.6) 65%, transparent 65%),
        linear-gradient(-35deg, transparent 38%, rgba(255, 190, 190, 0.65) 38%, rgba(255, 190, 190, 0.65) 62%, transparent 62%),
        linear-gradient(-52deg, transparent 34%, rgba(255, 185, 185, 0.6) 34%, rgba(255, 185, 185, 0.6) 66%, transparent 66%);
}

pencil.blue {
    background-image: 
        linear-gradient(-42deg, transparent 32%, rgba(200, 220, 255, 0.6) 32%, rgba(200, 220, 255, 0.6) 68%, transparent 68%),
        linear-gradient(-48deg, transparent 35%, rgba(200, 220, 255, 0.5) 35%, rgba(200, 220, 255, 0.5) 65%, transparent 65%),
        linear-gradient(-35deg, transparent 38%, rgba(200, 220, 255, 0.55) 38%, rgba(200, 220, 255, 0.55) 62%, transparent 62%),
        linear-gradient(-52deg, transparent 34%, rgba(200, 220, 255, 0.5) 34%, rgba(200, 220, 255, 0.5) 66%, transparent 66%);
}

pencil.yellow {
    background-image: 
        linear-gradient(-42deg, transparent 32%, rgba(255, 250, 200, 0.6) 32%, rgba(255, 250, 200, 0.6) 68%, transparent 68%),
        linear-gradient(-48deg, transparent 35%, rgba(255, 250, 200, 0.5) 35%, rgba(255, 250, 200, 0.5) 65%, transparent 65%),
        linear-gradient(-35deg, transparent 38%, rgba(255, 250, 200, 0.55) 38%, rgba(255, 250, 200, 0.55) 62%, transparent 62%),
        linear-gradient(-52deg, transparent 34%, rgba(255, 250, 200, 0.5) 34%, rgba(255, 250, 200, 0.5) 66%, transparent 66%);
}

pencil.green {
    background-image: 
        linear-gradient(-42deg, transparent 32%, rgba(220, 255, 220, 0.6) 32%, rgba(220, 255, 220, 0.6) 68%, transparent 68%),
        linear-gradient(-48deg, transparent 35%, rgba(220, 255, 220, 0.5) 35%, rgba(220, 255, 220, 0.5) 65%, transparent 65%),
        linear-gradient(-35deg, transparent 38%, rgba(220, 255, 220, 0.55) 38%, rgba(220, 255, 220, 0.55) 62%, transparent 62%),
        linear-gradient(-52deg, transparent 34%, rgba(220, 255, 220, 0.5) 34%, rgba(220, 255, 220, 0.5) 66%, transparent 66%);
}

pencil.purple {
    background-image: 
        linear-gradient(-42deg, transparent 32%, rgba(245, 230, 255, 0.6) 32%, rgba(245, 230, 255, 0.6) 68%, transparent 68%),
        linear-gradient(-48deg, transparent 35%, rgba(245, 230, 255, 0.5) 35%, rgba(245, 230, 255, 0.5) 65%, transparent 65%),
        linear-gradient(-35deg, transparent 38%, rgba(245, 230, 255, 0.55) 38%, rgba(245, 230, 255, 0.55) 62%, transparent 62%),
        linear-gradient(-52deg, transparent 34%, rgba(245, 230, 255, 0.5) 34%, rgba(245, 230, 255, 0.5) 66%, transparent 66%);
}

/* 手書きの赤丸囲み（フリーハンド風） */
akamaru {
    display: inline;
    position: relative;
    padding: 0 3px;
    z-index: 2;  /* 最前面に表示 */
}

akamaru::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -4px;
    right: -4px;
    bottom: -1px;
    clip-path: ellipse(50% 50% at 48% 52%);
    background: 
        linear-gradient(to right, 
            rgba(255, 0, 0, 0.35) 0%,
            rgba(255, 0, 0, 0.4) 20%,
            rgba(255, 0, 0, 0.35) 60%,
            rgba(255, 0, 0, 0.4) 100%
        );
    transform: rotate(-5deg) scaleX(1.02) scaleY(0.98);
    pointer-events: none;
}

akamaru::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -4px;
    right: -4px;
    bottom: -1px;
    background: 
        linear-gradient(to right, 
            rgba(255, 0, 0, 0.3) 0%,
            rgba(255, 0, 0, 0.35) 30%,
            rgba(255, 0, 0, 0.3) 70%,
            rgba(255, 0, 0, 0.35) 100%
        );
    clip-path: ellipse(49% 51% at 52% 48%);
    transform: rotate(-3deg) scaleX(0.98) scaleY(1.02);
    pointer-events: none;
}

/* 始点と終点のずれを表現 */
akamaru::before,
akamaru::after {
    border: 2px solid transparent;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Adobe InDesign */
inde {
    background-color: #49021F;  /* 深い赤紫 */
    color: #FF3366;  /* ピンク系 */
    padding: 0 4px;
    border-radius: 2px;
}

/* Adobe Photoshop */
fotosho {
    background-color: #001E36;  /* 深いブルー */
    color: #31A8FF;  /* 明るいブルー */
    padding: 0 4px;
    border-radius: 2px;
}

/* Adobe Illustrator */
irare {
    background-color: #330000;  /* 深いブラウン */
    color: #FF9A00;  /* オレンジ */
    padding: 0 4px;
    border-radius: 2px;
}

/* Microsoft Excel */
ekuseru {
    background-color: #217346;  /* 深いグリーン */
    color: #70AD47;  /* 明るいグリーン */
    padding: 0 4px;
    border-radius: 2px;
}

/* LibreOffice Calc */
karuku {
    background-color: #18A303;  /* 深いグリーン */
    color: #B8FF4D;  /* より明るいライムグリーン */
    padding: 0 4px;
    border-radius: 2px;
}

/* Mac OS */
makku {
    background-color: #28293D;  /* ダークグレー */
    color: #A2A3B7;  /* シルバーグレー */
    padding: 0 4px;
    border-radius: 2px;
}

/* Windows 11 */
windouzu {
    background-color: #0078D4;  /* Windows ブルー */
    color: #50D9FF;  /* 明るいスカイブルー */
    padding: 0 4px;
    border-radius: 2px;
}

/* 共通のホバー効果を拡張 */
inde, fotosho, irare, ekuseru, karuku, makku, windouzu {
    display: inline-block;
    font-size: 0.9em;
    transform: translateY(-0.1em);  /* 若干上に持ち上げて、ベースラインを調整 */
    transition: all 0.2s ease;
}

.article-header-image {
    margin: -2rem -2rem 2rem -2rem;  /* コンテンツの余白を打ち消して端まで表示 */
    max-height: 400px;  /* 適度な高さに制限 */
    overflow: hidden;
}

.article-header-image img {
    width: 100%;
    height: auto;
    object-fit: cover;  /* 画像比率を保持しつつ領域を埋める */
    display: block;
}

.related-link {
    color: #666;      /* リンクの色を少し薄く */
}

div.rinkuarutoki {
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 0.9em;
    color: #666;
}

div.rinkuarutoki a {
    color: #666;
    text-decoration: underline;
}

div.rinkuarutoki a:hover {
    opacity: 0.7;