@charset "UTF-8";

html {
    scroll-behavior: smooth;
}

/* =========================================================
   1. 目次のデザイン
========================================================= */

.toc-container {
    background: #f6f5f3;
    border-radius: 4px;
    padding: 16px 30px 6px;
    position: relative;
    overflow: hidden;
    margin: 32px 0px;
}

.toc-title {
    font-size: 18px;
    font-weight:  var(--heading-font-weight);;
    margin-bottom: 15px;
    text-align: center;
    color: var(--accent_text_color);
}

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

.toc-item-h2 {
    position: relative;
    margin-bottom: 10px;
    font-weight: var(--heading-font-weight);
    font-size: 15px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.toc-item-h2:last-child {
    border-bottom: none;
}

.toc-item-h2 > a {
    color: var(--accent_text_color);
    text-decoration: none;
    display: block;
    padding-right: 30px; /* 矢印ボタンのスペース */
}

.toc-item-h2 > a:hover {
    color: var(--accent_color, #0073aa);
}

.toc-item-h2:not(:has(.toc-item-h3)) > .toc-toggle-btn {
  display: none;
}

/* H3リスト（初期状態は高さ0で隠す：アコーディオン用） */
.toc-list-h3 {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.toc-item-h3 {
    font-weight: normal;
    font-size: 14px;
    margin-top: 8px;
}

.toc-item-h3 a {
    color: #666;
    text-decoration: none;
}

.toc-item-h3 a:hover {
    color: var(--accent_color, #0073aa);
    text-decoration: underline;
}

/* アコーディオン開閉ボタン（H3がある場合のみ表示） */
.toc-toggle-btn {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
    display: block;
}

.toc-toggle-btn.has-children {
    display: block;
}

/* 開いた状態の矢印の向き */
.toc-toggle-btn.is-open {
    transform: rotate(180deg);
}

/* =========================================
   長すぎる場合の「グラデーション透過」設定
========================================= */

/* 折りたたみ状態 */
.toc-container.is-collapsed .toc-list {
    max-height: 300px; /* ★ここで表示する最大高さを調整できます */
    overflow: hidden;
}

/* 透過グラデーションのオーバーレイ */
.toc-container.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(253, 253, 253, 0) 0%, rgba(253, 253, 253, 1) 80%);
    pointer-events: none;
}

/* 続きを読むボタン */
.toc-read-more-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.toc-read-more-btn:hover {
    background: #f9f9f9;
}

/* 展開状態（ボタンとグラデーションを消す） */
.toc-container.is-expanded::after {
    display: none;
}
.toc-container.is-expanded .toc-list {
    max-height: none;
}
.sidebar-thumbnail img{
    border-radius: 4px;
}

/* 投稿ページシェアボタン */
.sns-share-container {
    margin-bottom: 50px!important;
}

h3.update-history-title {
    font-size: 16px;
    margin: 0;
}

ul.update-history-list {
    padding: 0;
    margin: 0;
    font-size: 14px;
}

li.update-history-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 14px;
}
.update-history-header {
    display: flex;
}
span.update-history-date {
    width: 8em;
}
span.update-history__status {
    font-size: 12px;
    padding: 0px 5px;
    border-radius: 4px;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: #000;
    color: #fff;
}
.update-history-content p {
    padding: 0;
    margin: 0;
}

.update-history-wrapper {
    display: flex;
    gap: 20px;
    margin: 25px 0;
}
.update-history-content a {
    text-decoration: underline;
}


/* =========================================================
   2. 個別記事ページ (single.php) のデザイン
========================================================= */

/* --- 全体のレイアウト（メイン ＋ サイドバー） --- */
.content-wrapper {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: stretch !important;
}

.main-content {
    flex: 1;
    min-width: 60%;
}

.sidebar-content {
    width: var(--site_side_width);
    height: auto !important;
    align-self: stretch !important;
}

.sidebar-sticky{
    position: -webkit-sticky !important; /* Safari対応 */
    position: sticky !important;
    top: 20px;
    margin-top: 32px;
}
/* --- アイキャッチ画像 --- */
.single-eyecatch {
    margin-bottom: 20px;
}

.single-eyecatch-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* --- 記事タイトル --- */
/* .single-title {
    font-size: 32px;
} */

.date-wrapper {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
}
time.published-date {
    font-size: 13px;
    display: block;
}
time.modified-date {
    font-size: 13px;
    display: block;
}
/* --- メタ情報（カテゴリー） --- */
.single-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
}

.updated-date {
    color: #666;
    font-size: 14px;
}

.single-categories {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* --- 導入文 --- */
.single-intro {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- アフィリエイト注意文 --- */
.single-affiliate-notice {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.single-affiliate-notice small {
    color: #777;
    display: block;
}

/* --- 監修・協力者エリア --- */
.single-supervisors-box {
    padding: 25px;
    background-color: #f6f5f378;
    border-radius: 6px;
    margin-bottom: 20px;
    /* border: 1px solid #8d8c8c; */
}
.supervisor-name-link{
    text-align: left;
}
.supervisors-box-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px dotted #8d8c8c;
}

.supervisors-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: center;
    padding-top: 10px;
}

.supervisor-item {
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: flex-start;
    width: 48%;
}

.supervisor-item:only-child {
    width: 100%;
}

.supervisor-avatar-img {
    border-radius: 50%;
}



.supervisor-name {
    font-size: 14px;
    font-weight: 500;
}

/* --- SNSシェアボタン枠 --- */
.single-sns-share {
    margin-bottom: 30px;
}

.sns-share-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* --- 本文エリア --- */
.entry-content {
    line-height: 2;
}

/* --- 関連記事エリア --- */
.single-related-posts {
    border-top: 1px solid #8d8c8c;
    margin: 120px 0px 0px;
    padding: 40px 0px 0px;
}
span.related-posts-sub.font-en {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-style: normal;
    display: block;
    /* text-align: center; */
    font-size: 43px;
    margin-bottom: 60px;
    line-height: 1.5;
}
.related-posts-title {
    /* margin-bottom: 16px; */
    /* font-weight: normal; */
    font-size: 18px;
    /* text-align: center; */
    font-weight: normal;
    line-height: 1;
    margin-bottom: 0px;
}
p.notice-text {
    font-size: 13px;
    opacity: .7;
}
/* 閲覧履歴ウィジェット */
.history-widget {
    background: #f9f9f9; /* 少し背景色をつけて「履歴」であることを強調 */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.history-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.history-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.history-item a {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}
.history-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
.history-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}
.history-title {
    font-size: 0.85rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 2行で省略 */
    overflow: hidden;
    font-weight: 500;
}
.section-report-box {
    font-size: 13px;
    opacity: .6;
}
/* =========================================================
   レスポンシブ対応（スマホ・タブレット表示時）
========================================================= */
@media (max-width: 767px) {
    /* メインエリアとサイドバーを縦並びに変更 */
    .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    /* スマホではサイドバーの横幅を100%にする */
    .sidebar-content {
        width: 100%;
    }
    
    /* タイトルの文字サイズを少し小さく */
    .single-title {
        font-size: 22px;
    }
}
/* =========================================
   この記事を書いた人・監修した人 エリア
========================================= */





/* 最後の1人は下の余白と線を消す */
.supervisor-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* アイコン画像エリア */
.supervisor-avatar-link {
    flex-shrink: 0; /* ★重要：テキストが多くても画像が潰れないようにする */
}

.supervisor-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%; /* アイコンを丸くする */
    object-fit: cover;
}

/* テキスト情報エリア */
.supervisor-info {
    flex-grow: 1; /* 余った幅をすべて使う */
    flex-grow: 1;
    min-width: 0; /* ★超重要：長い文章が枠を突き破って横に広がるのを防ぐ魔法の1行 */
}

.supervisor-name-wrap {
    display: flex;
    align-items: baseline; /* 名前と肩書きのベースラインを揃える */
    gap: 10px;
    flex-wrap: wrap; /* スマホなどで狭い場合は折り返す */
}



.supervisor-name-link:hover {
    text-decoration: underline;
}

.supervisor-title {
    text-align: left;
    line-height: 1;
    display: block;
}

.supervisor-description {
    font-size: 12px;
    line-height: 1.6;
    color: var(--accent_text_color);
    margin: 0;
    /* ★長すぎる文章を美しく省略するテクニック（Line Clamp） */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* ここで表示する「行数」を決めます（例：3行） */
    overflow: hidden;
    text-align: left;
}
.supervisor-item a img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

/* いいねはーとまわり */
.my-theme-like-box {
    background-color: #f6f5f378;
    padding: 20px;
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h4.mylike-h {
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 20px;
}

button.my-theme-like-btn.is-liked {
    border: none;
    /* width: 39px; */
    background-color: #f6f5f378;
}

button.my-theme-like-btn {
    border: none;
    background-color: #f6f5f378;
}

span.like-icon {
    color: red;
    width: 30px;
    font-size: 25px;
}
/* -----------------------------------------
   スマホ表示（画面幅が狭い時）の調整
----------------------------------------- */
@media screen and (max-width: 600px) {
   
    
.supervisor-name-wrap {
    justify-content: center; /* 名前を中央揃え */
}
.content-wrapper{
padding: 0px;
}
.update-history-wrapper {
    display: flex;
    gap: 8px;
    margin: 25px 0;
    flex-direction: column;
}
li.update-history-item {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding-bottom: 14px;
    flex-direction: column;
}
.my-theme-like-box{
    margin: 20px 0px 0px;
}
.single-related-posts{
    margin: 40px 0px 0px;
}
}
@media (max-width: 1023px) {
    .content-wrapper {
        display: block;
    }
}
