@charset "UTF-8";
/*
 Theme: カスタムテーマ
 Author: [あなたの名前]
 Responsive: yes
 Description:
   はてなブログのboilerplateテーマを元にカスタマイズしたCSSです。
   このファイルを編集して、自由にデザインを変更してください。
*/

/* -------------------------------------------
   グローバル設定
   ------------------------------------------- */
/* フォント、行間、背景色などを設定します */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, sans-serif;
    line-height: 1.8;
    background-color: #ffffff;
    color: #333;
}

/* リンク */
a {
    color: #666;
    text-decoration: none;
}

a:hover {
    color: #333;
    text-decoration: underline;
}

/* -------------------------------------------
ヘッダー
------------------------------------------- */

/* Z-INDEXを有効にするために必須の指定 */
/* タイトルと説明文を一番手前に配置 */
#blog-title a, #blog-description {
position: relative;
z-index: 10;
}

#blog-title {
/* ★ヘッダーの土台となるスタイル */
text-align: center;
background-color: #fff; /* 背景色（白） */
padding: 30px 20px;
border-top: 3px solid #ccc; /* ボーダー色（薄いグレーに調整） */
border-bottom: 3px solid #ccc; /* ボーダー色（薄いグレーに調整） */

/* 必須：アニメーションの基盤 (シェイプアニメーション関連の設定は削除) */
    /* position: relative; */ 
    /* overflow: hidden; */

border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* 影を薄く調整 */
}

/* タイトルテキスト */
#blog-title a {
font-size: 1.6em;
font-weight: 700;
color: #1a1a1a; /* タイトルテキスト色 */
letter-spacing: 2px;
text-transform: none; /* 大文字固定を解除 */
text-decoration: none;
}

/* 説明文テキスト */
#blog-description {
font-size: 0.9em;
color: #4a4a4a; /* 説明文テキスト色 */
margin-top: 10px;
letter-spacing: 1px;
}

/* -------------------------------------------
シェイプアニメーション (このセクション全体を削除しました)
------------------------------------------- */

/* 関連するクラス .shape-container, .shape, @keyframes moveShapes はすべて削除済みです。*/

/* -------------------------------------------
   メニューバー
   ------------------------------------------- */
/* ナビゲーションメニューのスタイル */
.global-nav {
  /* ★ 修正ポイント: positionとz-indexを追加 ★ */
  position: relative; /* z-indexを有効にするために必須 */
  z-index: 20;      /* ヘッダー要素よりも手前に配置し、クリックを有効化 */
  
  background-color: transparent;
  padding: 0;
  text-align: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 20px;     /* 上に20pxの余白 */
  margin-bottom: 50px; /* 下に50pxの余白 */
}
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.global-nav li {
  margin: 0;
}
/* 各アイテムを縦線で仕切る */
.global-nav li:not(:last-child) {
  border-right: 1px solid #ccc;
}
.global-nav a {
  color: #666;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 15px;
  transition: all 0.3s ease;
  display: block;
}
.global-nav a:hover {
  color: #333;
  text-decoration: none;
  background-color: transparent;
  border-radius: 0;
}

/* -------------------------------------------
   パンくずリスト
   ------------------------------------------- */

/* パンくずリストのコンテナ */
.breadcrumb {
  position: relative; /* z-indexを有効にするために必須 */
  z-index: 20;      /* シェイプ(z-index: 1)よりも手前に出す */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  margin-bottom: 30px;
  font-size: 0.9em;
}

.breadcrumb ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

/* セパレーター */
.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 8px;
  color: #999;
}

/* 最後の項目（現在地） */
.breadcrumb li:last-child {
  font-weight: bold;
  color: #333;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

/* -------------------------------------------
   記事一覧
   ------------------------------------------- */
/* 記事セクション */
.entry {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 影の透明度を上げた */
    margin-bottom: 30px;
}


h1.entry-title {
    background-color: #f7f7f7;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* 強めの影 */
    border: 1px solid #eee;
    margin-top: 0px; /* 記事セクションの上部に被せることで浮き出し感を強調 */
}
.entry-title a {
    font-size: 1.0em;
    font-weight: 600;
    color: #4a4a4a;
    text-decoration: none;
}


/* -------------------------------------------
   記事下部のカテゴリー
   ------------------------------------------- */
.entry-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}
.entry-categories a {
  background-color: #fff;
  border: none;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  transform: rotate(0deg);
  display: inline-block;
}
.entry-categories a:hover {
  background-color: #eaeaea;
  color: #000;
  text-decoration: none;
  transform: rotate(-3deg) scale(1.05);
}

/* -------------------------------------------
   READ MOREボタン
   ------------------------------------------- */
.entry-see-more {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-top: 10px;
  background-color: #666;
  color: #fff;
  padding: 8px 15px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9em;
}

.entry-see-more:hover {
  background-color: #888;
}

/* -------------------------------------------
   記事本文
   ------------------------------------------- */
.entry-content {
    font-size: 1.0em;
}

/* 画像 */
.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 15px 10px;
}

/* リスト */
.entry-content ul {
    list-style-type: square;
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2.5em;
}

.entry-content dl {
    margin: 1.5em 0;
}

.entry-content dt {
    font-weight: bold;
    margin-top: 1em;
}

.entry-content dd {
    margin-left: 1.5em;
}

/* 小見出し */
.entry-content h3 {
    font-size: 1.2em;
    border-left: 5px solid #333;
    padding-left: 10px;
}

.entry-content h4 {
    font-size: 0.9em;
    border-left: 5px solid #666;
    padding-left: 10px;
}

.entry-content h5 {
    font-size: 0.9em;
    background-color: #f5f5f5;
    padding: 3px 10px;
    border-radius: 5px;
    display: inline-block;
}

.entry-content blockquote {
    border-left: 4px solid #666;
    background-color: #f0f8ff;
    margin: 1.5em 0;
    padding: 10px 20px;
}

/* -------------------------------------------
   目次
   ------------------------------------------- */
.table-of-contents {
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  display: table;
  max-width: 600px;
  width: calc(100% - 40px);
  margin: 1em auto;
  font-size: 0.9em;
}

.table-of-contents::before {
  content: "目次";
  display: block;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.2em;
  border-bottom: 1px dotted #333;
  padding-bottom: 5px;
  text-align: center;
}

.table-of-contents h2 {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 0;
    border-left: none;
    padding-left: 0;
}

.table-of-contents ul {
    list-style-type: square;
    padding-left: 2em;
}

.table-of-contents ol {
    margin: 1.5em 0;
    padding-left: 2.5em;
}

.table-of-contents dl {
    margin: 1.5em 0;
}

.table-of-contents dt {
    font-weight: bold;
    margin-top: 1em;
}

.table-of-contents dd {
    margin-left: 1.5em;
}

/* ネストされたリスト（階層） */
.table-of-contents ul ul {
  list-style-type: square;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 3em;
}

.table-of-contents ol ul {
  list-style-type: square;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 3em;
}

.table-of-contents ul ol,
.table-of-contents ol ol {
  list-style-type: decimal;
  margin-top: 5px;
  margin-bottom: 5px;
  padding-left: 3em;
}


/* コメント欄へのリンクをボタンにする */
.leave-comment-title {
    display: inline-block;
    background-color: #fff;
    color: #666;
    padding: 8px 15px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.9em;
    border: 1px solid #ccc;
}

.leave-comment-title:hover {
  background-color: #f5f5f5;
  color: #333;
}

/* 記事内のコードブロック */
pre {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 10px 15px; /* 上下の余白を小さく */
  border-radius: 5px;
  white-space: pre-wrap;
  word-wrap: break-word;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05); /* 影を控えめに */
  line-height: 1.4; /* 行間を狭く */
}

/* -------------------------------------------
   記事内のリンク
   ------------------------------------------- */
.entry-content a {
  font-weight: bold; /* 文字を太字にする */
  border-bottom: 2px solid #ccc; /* 下線を追加する */
  padding-bottom: 2px; /* 下線と文字の間に少しスペースを空ける */
  transition: all 0.3s ease-in-out; /* 変化を滑らかにする */
}

.entry-content a:hover {
  border-bottom: 2px solid #333; /* ホバー時に下線を濃くする */
  transform: translateY(-2px); /* ホバー時に少し上に移動する */
}

/* -------------------------------------------
   記事内のテーブル
   ------------------------------------------- */
/* スタイル8: ダークモード風 */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0; 
  color: #fff; /* 白い文字色 */
  background-color: #2d3748; /* ダークグレーの背景 */
}
.table th, .blog-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #4a5568; /* 暗い罫線 */
}
.table thead th {
  background-color: #1a202c; /* 濃いヘッダー色 */
  color: #90cdf4; /* 明るい水色の文字 */
  font-weight: bold;
}
/* ゼブラストライプ */
.table tbody tr:nth-child(even) { 
  background-color: #2c3444; 
}
.table tbody tr:hover {
  background-color: #3b4559;
  cursor: pointer;
}


/* -------------------------------------------
   記事フッター
   ------------------------------------------- */
/* 記事の最後にID、シェアボタン、読者ボタンを横並びにするスタイル */
.entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    margin-top: 30px;
    font-size: 0.9em;
    flex-wrap: wrap;
    gap: 15px;
}

.entry-footer .date,
.entry-footer .author-id,
.entry-footer .share-buttons,
.entry-footer .follower-button {
    flex-grow: 1;
    text-align: center;
}

.entry-footer .share-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* -------------------------------------------
   サイドバー
   ------------------------------------------- */
.hatena-module {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 影の透明度を上げた */
    margin-bottom: 30px;
}

.hatena-module-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

/* -------------------------------------------
   検索ボックス
   ------------------------------------------- */
/* 検索ボックスのカスタマイズ */

/* 検索ボックス全体のコンテナ */
.hatena-module-search-box {
  position: relative; /* z-indexを有効にするために必須 */
  z-index: 20;      /* シェイプ(z-index: 1)よりも手前に出す */
  background: none;
  border: none;
  padding: 15px 15px 20px 15px; /* 上下に余白を追加 */
}

/* 検索ボックスのタイトル（「検索」の部分） */
.hatena-module-search-box .hatena-module-title {
  font-size: 1.2rem;
  font-weight: bold;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #a89f92;
}

/* 検索フォーム */
.hatena-module-search-box .search-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 検索入力欄（テキストボックス） */
.hatena-module-search-box .search-module-input {
  flex-grow: 1;
  padding: 10px 20px;
  font-size: 1rem;
  border: 2px solid #d4d0cb;
  border-radius: 50px;
  outline: none;
  transition: border-color 0.3s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 検索入力欄にフォーカスした時 */
.hatena-module-search-box .search-module-input:focus {
  border-color: #a89f92;
}

/* プレースホルダーの色 */
.hatena-module-search-box .search-module-input::placeholder {
  color: #a89f92;
  opacity: 0.8;
}

/* 検索ボタン */
.hatena-module-search-box .search-module-button {
  padding: 10px 20px;
  border: none;
  background-color: #a89f92;
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
}

/* 検索ボタンにカーソルが乗った時 */
.hatena-module-search-box .search-module-button:hover {
  background-color: #baa894;
  transform: translateY(-1px);
}

/* 検索ボタンがクリックされた時 */
.hatena-module-search-box .search-module-button:active {
  background-color: #8c8273;
  transform: translateY(0);
}

/* -------------------------------------------
   サイドバーのカテゴリも付箋のように変更
   ------------------------------------------- */
.hatena-module-category ul,
.hatena-module-archive ul,
.hatena-module-list ul,
.hatena-module-recent-entries ul {
  list-style: none; /* リストの点を非表示にする */
  padding: 0;
}

.hatena-module-category a {
  background-color: #f8f8f8;
  border: none;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
  padding: 8px 12px;
  font-size: 0.9em;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  transform: rotate(0deg);
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
}

.hatena-module-category a:hover {
  background-color: #eaeaea;
  color: #000;
  transform: rotate(-3deg) scale(1.05);
}

/* ---------------------------------------------------- */
/* サイドバーの関連記事のデザイン */
/* ---------------------------------------------------- */

/* リストのデフォルトスタイルと余白をリセット */
#box2 .hatena-module-related-entries .hatena-module-body ul,
#box3 .hatena-module-related-entries .hatena-module-body ul {
list-style: none;
margin: 0;
padding: 0 10px;
}

/* 記事ごとのカードデザイン */
#box2 .hatena-module-related-entries li,
#box3 .hatena-module-related-entries li 
{
background-color: #ffffff;
border: solid 2px #e4e4e4;
border-radius: 0;
padding: 10px;
margin: 20px 0 20px 0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ホバー時に少し浮き上がるエフェクトを強化 */
#box2 .hatena-module-related-entries li:hover,
#box3 .hatena-module-related-entries li:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 記事タイトルと説明文の装飾をなくし、色を継承 */
#box2 .hatena-module-related-entries a,
#box3 .hatena-module-related-entries a 
{
text-decoration: none;
color: inherit;
}

/* タイトルを太字に */
#box2 .hatena-module-related-entries a.related-entries-title-link,
#box3 .hatena-module-related-entries a.related-entries-title-link {
font-weight: bold;
}

/* サムネイル画像に角丸を適用 */
#box2 .hatena-module-related-entries img.related-entries-image,
#box3 .hatena-module-related-entries img.related-entries-image {
border-radius: 8px;
}

/* 日付を非表示に */
#box2 .hatena-module-related-entries .related-entries-date-link,
#box3 .hatena-module-related-entries .related-entries-date-link {
display: none;
}

/* ---------------------------------------------------- */
/* 記事下の関連記事のデザイン */
/* ---------------------------------------------------- */

/* 記事ごとのカードデザイン */
.related-entries-item {
background-color: #ffffff;
border: solid 2px #e4e4e4;
border-radius: 0;
padding: 10px;
margin: 20px 0 20px 0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* ホバー時に少し浮き上がるエフェクトを強化 */
.related-entries-item:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* 記事タイトルと説明文の装飾をなくし、色を継承 */
.related-entries-item a {
text-decoration: none;
color: inherit;
}

/* タイトルを太字に */
.related-entries-item .related-entries-title-link {
font-weight: bold;
}

/* サムネイル画像に角丸を適用 */
.related-entries-item img.related-entries-image {
border-radius: 8px;
}

/* 日付を非表示に */
.related-entries-item .related-entries-date-link {
display: none;
}

/* 記事下の関連記事モジュール全体の余白 */
.hatena-module-related-entries {
margin-top: 30px;
}

/* 記事下の関連記事タイトルと本文の余白 */
.hatena-module-related-entries .hatena-module-title,
.hatena-module-related-entries .hatena-module-body ul {
padding: 0 10px;
}

/* 記事下の関連記事タイトル */
.hatena-module-related-entries .hatena-module-title {
margin-bottom: 10px;
}



/* ---------------------------------------------------- */
/* 最新記事リスト全体 */
/* ---------------------------------------------------- */
.recent-entries-item-inner {
    background: #ffffff;
    border: solid 2px #e4e4e4;
    padding: 10px;
    margin-bottom: 11px;
    margin-top: 30px; /* ここにマージンを追加 */
    box-sizing: border-box;
    display: block; /* ブロック要素にすることで縦に並ぶ */
}

/* 記事タイトルのリンク */
a.recent-entries-title-link {
    text-decoration: none;
    color: #525252;
    font-weight: bold;
    display: block; /* クリック領域を広げる */
}

/* ホバー時のスタイル */
a.recent-entries-title-link:hover {
    color: #95a5a6; /* ホバー時に色を変更 */
}

/* -------------------------------------------
   フッター
   ------------------------------------------- */
#footer {
    border-top: 1px solid #ddd;
}

/* フッターのコンテンツ */
#footer-inner {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    padding: 20px;
    text-align: center;
}

.footer {
    text-align: center;
    font-size: 0.7em;
    color: #999;
}

/* -------------------------------------------
   トップへ戻るボタン
   ------------------------------------------- */
/* ボタンの基本スタイルと非表示設定 */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #666;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5em;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    z-index: 1000;
}

/* ボタンが表示されるときのスタイル */
.scroll-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #888;
    transform: scale(1.1);
}

/* -------------------------------------------
   ページャ
   ------------------------------------------- */
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 50px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
}

.pager-prev,
.pager-next {
  flex: 1;
  text-align: center;
  font-size: 1.1em;
}

.pager-prev a,
.pager-next a {
  text-decoration: none;
  font-weight: bold;
  color: #666;
  transition: all 0.2s ease;
  font-size: 0;
  text-indent: -9999px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pager-prev a::before {
  content: '<< Prev';
  font-size: 1rem;
  text-indent: 0;
  position: absolute;
  color: #666;
  font-weight: bold;
}

.pager-next a::after {
  content: 'Next >>';
  font-size: 1rem;
  text-indent: 0;
  position: absolute;
  color: #666;
  font-weight: bold;
}

.pager-prev a:hover,
.pager-next a:hover {
  color: #333;
  text-decoration: none;
  transform: translateY(-5px);
}

/* -------------------------------------------
   記事フッターのIDを非表示にする（完全版）
   ------------------------------------------- */
.entry-footer .entry-author-id,
.entry-footer .user-name-hatena-id,
.user-name-hatena-id,
.user-name-nickname,
.user-name-paren {
  display: none;
}

/* -------------------------------------------
   2カラムレイアウト（PC用）
   ------------------------------------------- */
#container {
    max-width: none;
    margin: 0;
}

#content-inner {
    display: flex;
    justify-content: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

#wrapper {
    width: 750px;
}

#box2 {
    width: 330px;
    margin-left: 10px;
}

/* -------------------------------------------
   レスポンシブデザイン（タブレット・スマホ用）
   ------------------------------------------- */
@media (max-width: 1024px) {
    /* 1024px以下（タブレット）での調整 */
    #content-inner {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 20px;
        gap: 20px;
    }

    #wrapper {
        width: auto;
        flex: 3;
    }

    #box2 {
        width: auto;
        flex: 1;
        margin-left: 0;
    }

    #blog-title a {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* 768px以下（スマートフォン）での調整 */
    #content-inner {
        flex-direction: column;
        gap: 0;
        padding: 0 10px;
    }
}
