/* <system section="theme" selected="8599973812282948714"> */
/*! normalize.css v6.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
========================================================================== */

/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in
*    IE on Windows Phone and in iOS.
*/

html {
	line-height: 1.15; /* 1 */
	-ms-text-size-adjust: 100%; /* 2 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
========================================================================== */

/**
* Add the correct display in IE 9-.
*/

article,
aside,
footer,
header,
nav,
section {
	display: block;
}

/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
========================================================================== */

/**
* Add the correct display in IE 9-.
* 1. Add the correct display in IE.
*/

figcaption,
figure,
main { /* 1 */
	display: block;
}

/**
* Add the correct margin in IE 8.
*/

figure {
	margin: 1em 40px;
}

/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/

hr {
	box-sizing: content-box; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/* Text-level semantics
========================================================================== */

/**
* 1. Remove the gray background on active links in IE 10.
* 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
*/

a {
	background-color: transparent; /* 1 */
	-webkit-text-decoration-skip: objects; /* 2 */
}

/**
* 1. Remove the bottom border in Chrome 57- and Firefox 39-.
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/

abbr[title] {
	border-bottom: none; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
*/

b,
strong {
	font-weight: inherit;
}

/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/

b,
strong {
	font-weight: bolder;
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
* Add the correct font style in Android 4.3-.
*/

dfn {
	font-style: italic;
}

/**
* Add the correct background and color in IE 9-.
*/

mark {
	background-color: #ff0;
	color: #000;
}

/**
* Add the correct font size in all browsers.
*/

small {
	font-size: 80%;
}

/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
========================================================================== */

/**
* Add the correct display in IE 9-.
*/

audio,
video {
	display: inline-block;
}

/**
* Add the correct display in iOS 4-7.
*/

audio:not([controls]) {
	display: none;
	height: 0;
}

/**
* Remove the border on images inside links in IE 10-.
*/

img {
	border-style: none;
}

/**
* Hide the overflow in IE.
*/

svg:not(:root) {
	overflow: hidden;
}

/* Forms
========================================================================== */

/**
* Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
	margin: 0;
}

/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/

button,
input { /* 1 */
	overflow: visible;
}

/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/

button,
select { /* 1 */
	text-transform: none;
}

/**
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
*    controls in Android 4.
* 2. Correct the inability to style clickable types in iOS and Safari.
*/

button,
html [type="button"], /* 1 */
[type="reset"],
[type="submit"] {
	-webkit-appearance: button; /* 2 */
}

/**
* Remove the inner border and padding in Firefox.
*/

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
* Restore the focus styles unset by the previous rule.
*/

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
*    `fieldset` elements in all browsers.
*/

legend {
	box-sizing: border-box; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

/**
* 1. Add the correct display in IE 9-.
* 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/

progress {
	display: inline-block; /* 1 */
	vertical-align: baseline; /* 2 */
}

/**
* Remove the default vertical scrollbar in IE.
*/

textarea {
	overflow: auto;
}

/**
* 1. Add the correct box sizing in IE 10-.
* 2. Remove the padding in IE 10-.
*/

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box; /* 1 */
	padding: 0; /* 2 */
}

/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/

[type="search"] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
* Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
*/

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/* Interactive
========================================================================== */

/*
* Add the correct display in IE 9-.
* 1. Add the correct display in Edge, IE, and Firefox.
*/

details, /* 1 */
menu {
	display: block;
}

/*
* Add the correct display in all browsers.
*/

summary {
	display: list-item;
}

/* Scripting
========================================================================== */

/**
* Add the correct display in IE 9-.
*/

canvas {
	display: inline-block;
}

/**
* Add the correct display in IE.
*/

template {
	display: none;
}

/* Hidden
========================================================================== */

/**
* Add the correct display in IE 10-.
*/

[hidden] {
	display: none;
}

/*
Theme: gray
Author: kewpiedesign
Description:
写真が映えるようにデザインした、シンプルな1カラムのテーマ。
Responsive: yes
*/

@charset "UTF-8";
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,700);

body {
	font-family: 'Montserrat', '游ゴシック', YuGothic, 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
	color: #212121;
	font-size: 14px;
}

body a {
	color: #515151;
	text-decoration: none;
}

#container {
	max-width: 800px;
	margin: 0 auto;
}

#blog-title {
	text-align: center;
	margin: 100px 0;
}

#title {
	font-size: 30px;
	margin: 0;
}

#blog-description {
	font-size: 13px;
	font-weight: normal;
	font-style: italic;
	letter-spacing: 5px;
	margin: 10px 0 0;
}

.header-image-enable #blog-title #blog-title-inner {
	display: table;
	width: 100%;
}

.header-image-enable #blog-title-content {
	display: table-cell;
	vertical-align: middle;
}

.entry {
	margin-bottom: 100px;
	position: relative;
}

.entry-header-menu {
	position: absolute;
	right: 0px;
	top: 0px;
	padding: 6px 12px;
	font-size: 12px;
	background-color: #F5F7FA;
	border-radius: 3px;
}

.entry-date {
	font-size: 13px;
	text-align: center;
}

.entry-date a {
	display: inline-block;
	background-color: #515151;
	color: #fff;
	text-decoration: none;
	padding: 5px 8px;
}

.entry-title {
	text-align: center;
	margin: 10px 0;
	font-family: 'Montserrat', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
	font-size: 20px;
	font-weight: normal;
	line-height: 1.5;
	letter-spacing: 1px;
}

.entry-categories {
	text-align: center;
	font-size: 12px;
}

.entry-categories a {
	background-color: #F5F7FA;
	border-radius: 3px;
	color: #515151;
	padding: 3px 8px;
	margin-right: 3px;
}

.entry-content {
	margin: 30px 0;
	line-height: 1.75;
}

.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6 {
	margin: 1em 0;
}

.entry-content h1 {
	font-size: 27px;
}

.entry-content h2 {
	font-size: 25px;
}

.entry-content h3 {
	font-size: 23px;
}

.entry-content h4 {
	font-size: 21px;
}

.entry-content h5 {
	font-size: 19px;
}

.entry-content h6 {
	font-size: 17px;
}

.entry-content h1,h2,h3,h4,h5,h6 {
	margin: 0;
	line-height: 1.5;
}

.entry-content li {
	margin: 0 0 1em;
}

.entry-content hr {
	width: 50px;
	border: 1px solid #F5F7FA;
	margin: 30px auto;
}

.entry-content blockquote {
	padding: 20px 25px;
	margin: 20px 0;
	background: #F5F7FA;
}

.entry-content blockquote p {
	margin: 0 0 0.5em;
	font-style: italic;
}

.entry-content blockquote a {
	text-decoration: underline;
	font-style: italic;
}

.entry-content table {
	border-collapse: collapse;
	border-spacing: 0;
	margin-bottom: 1em;
}

.entry-content table td,
.entry-content th {
	border: 1px solid #F5F7FA;
	padding: 5px 10px;
}

.entry-content table th {
	background-color: #F5F7FA;
}

.entry-content pre {
	border: 1px solid #F5F7FA;
	padding: 20px;
}

.hatena-asin-detail {
	background-color: #F5F7FA;
	padding: 20px;
	margin: 1.5em 0;
}

.hatena-asin-detail li {
	margin: 0;
}

.hatena-asin-detail a {
	text-decoration: underline;
}

.hatena-asin-detail-title {
	margin: 0 0 5px;
}

.hatena-asin-detail li:last-child {
	padding: 0 0 5px;
}

.hatena-asin-detail-foot {
	display: none;
}

.entry-footer {
	text-align: center;
}

.entry-footer-section .author {
	margin-right: 5px;
}

.hatena-star-container {
	margin: 1.5em 0;
}

.social-buttons {
	margin: 1.5em 0;
}

.google-afc-image {
	margin: 1em 0;
}

.comment {
	margin: 20px 0 50px;
	padding: 0;
	list-style-type: none;
	text-align: left;
}

.entry-comment {
	padding: 20px 0 20px 60px;
	border-top: 1px solid #F5F7FA;
	border-bottom: 1px solid #F5F7FA;
}

.entry-comment:nth-child(n+2) {
	border-top: 0;
}

.comment-box .hatena-id-icon {
	width: 50px;
	height: auto;
	border-radius: 50%;
	position: absolute;
	top: 0;
	left: 0;
	margin: 20px 0 0;
}

.comment-user-name {
	margin: 0 0 10px;
}

.comment-content p {
	margin: 5px 0;
	line-height: 1.7;
}

.comment-metadata {
	margin: 0;
}

.leave-comment-title {
	display: block;
	background-color: #F5F7FA;
	color: #515151;
	padding: 12px 16px;
	line-height: 1.5;
	transition: all .2s;
	background-color: #F5F7FA;
	border: 1px solid #fff;
}

.leave-comment-title:hover {
	background-color: #fff;
	border: 1px solid #F5F7FA;
}

.pager-prev {
	float: left;
	text-align: left;
}

.pager-next {
	float: right;
	text-align: right;
}

.pager-prev, .pager-next {
	width: 50%;
}

#box2 {
	clear: both;
	margin: 200px 0;
}

.hatena-module {
	margin-bottom: 50px;
}

.hatena-module-title {
	font-size: 15px;
	line-height: 2;
	letter-spacing: 3px;
	margin-bottom: 20px;
	border-bottom: 2px solid #F5F7FA;
	display: inline-block;
}

.hatena-urllist {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

.hatena-urllist li {
	margin: 0 0 20px;
}

.hatena-urllist .urllist-title-link {
	margin: 3px 0;
	line-height: 1.5;
	display: block;
}

.hatena-urllist .urllist-category-link {
	background-color: #F5F7FA;
	border-radius: 3px;
	color: #515151;
	padding: 3px 6px;
}

.hatena-urllist .urllist-image {
	margin: 0 10px 0;
}

.hatena-urllist .urllist-entry-body {
	margin: 5px 0 0;
}

.hatena-module-profile .profile-icon {
	border-radius: 50%;
	float: left;
	margin: 0 10px 10px 0;
}

.hatena-module-profile .profile-description p {
	margin: 5px 0 0;
	line-height: 1.7;
}

.hatena-module-profile .profile-description .name {
	line-height: 3;
}

.hatena-module-search-box .search-form {
	width: 100%;
	border: 1px solid #cecece;
	border-radius: 3px;
	position: relative;
	box-sizing: border-box;
}

.hatena-module-search-box .search-module-input {
	width: 90%;
	border: 0;
	padding: 8px;
	margin: 0;
	font-size: 13px;
	color: #515151;
	background-color: transparent;
	outline: none;
}

.hatena-module-search-box .search-module-button {
	background: url(http://f.st-hatena.com/images/fotolife/k/kewpiedesign/20160227/20160227174534.png) no-repeat right;
	background-size: 16px 16px;
	text-indent: -9999px;
	width: 25px;
	position: absolute;
	right: 7px;
	border: 0;
	padding: 6px;
	margin: 0;
}

.hatena-module-archive .archive-module-year-title {
	padding-bottom: 5px;
}

#footer {
	text-align: center;
}

.page-about .entry-content dt {
	font-size: 15px;
	line-height: 2;
	letter-spacing: 3px;
	margin-bottom: 20px;
	border-bottom: 2px solid #F5F7FA;
	display: inline-block;
}

.page-about .entry-content dd {
	margin: 0 20px 20px;
}

.page-archive .archive-heading {
	text-align: center;
	margin: 0 0 50px;
}

.page-archive .breadcrumb {
	text-align: center;
	margin: 50px 0;
}

.page-archive .ad-online-afc {
	margin: 0 0 50px;
}

.page-archive .archive-entry {
	margin-bottom: 50px;
}

.page-archive .date {
	font-size: 13px;
	text-align: center;
}

.page-archive .date a {
	display: inline-block;
	background-color: #515151;
	color: #fff;
	text-decoration: none;
	padding: 5px 8px;
}

.page-archive. .entry-title {
	text-align: center;
	margin: 10px 0;
	font-family: 'Montserrat', 'ヒラギノ角ゴ Pro', 'Hiragino Kaku Gothic Pro', 'メイリオ', 'Meiryo', sans-serif;
	font-size: 20px;
	font-weight: normal;
	line-height: 1.5;
	letter-spacing: 1px;
}

.page-archive .categories {
	text-align: center;
	font-size: 12px;
}

.page-archive .categories a {
	background-color: #F5F7FA;
	border-radius: 3px;
	color: #515151;
	padding: 3px 6px;
	margin-right: 3px;
}

.page-archive .entry-thumb {
	margin: 20px 10px 0 0;
}

.page-archive .entry-description {
	margin: 20px 0 10px;
	line-height: 1.7;
}

.page-archive #box2 {
	margin: 100px 0;
}

.page-archive .search-result-form {
	margin: 0 auto;
}

.page-archive .search-result {
	margin-bottom: 50px;
}

@media (max-width: 767px) {
	#blog-title {
		margin: 50px 20px;
	}

	#title {
		font-size: 20px;
	}

	#blog-description {
		font-size: 12px;
	}

	#main {
		width: auto;
		float: none;
		margin: 20px;
	}

	.entry {
		margin-bottom: 30px:
	}

	.entry-title {
		font-size: 20px;
		word-break: break-all;
	}

	.browsing-with-smartphone .ad-online-afc {
		margin: 1em 0;
	}

	#box2 {
		width: auto;
		float: none;
		padding: 50px 20px;
	}

	.page-archive .archive-heading {
		margin: 30px 0;
		line-height: 1.3;
	}

	.page-archive .breadcrumb {
		margin: 20px;
	}

	.page-archive .ad-online-afc {
		margin: 30px 0;
	}

	.adx-responsive-mode {
		margin: 0;
		padding: 1em 0;
	}

	.page-archive .search-result {
		margin-bottom: 30px;
	}
}
/* </system> */


body, #blog-title, #blog-description, .entry-title, .archive-heading, .entry-content, .entry-content h2, .entry-content h3, .entry-content h4, .id a, .hatena-module-profile .profile-description {
     font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif !important;
}

/* ===== 各パーツの個別微調整 ===== */
/* トップページ記事概要のフォントサイズ */
.page-archive .archive-entries .entry-description {
     font-size: 15px;
}

/* 記事タイトル・カテゴリータイトルのフォントサイズ・文字間隔変更 */
.entry-title, .archive-heading {
     font-size: 26px;
     letter-spacing: 1.0pt; /*文字間隔調整*/
     margin-bottom: 2em; 
}

/* ===== 見出しの変更 ===== */
/* h2 特大見出し */
.entry-content h2 {
     font-size: 26px; /*文字サイズ*/
     margin: 3em 0 1.3em 0; /*見出しの上下の余白*/
     padding: 0.3em 0.5em; /*文字周りの余白(上下 左右)*/
     color: black; /*文字色*/
     border-left: solid 12px #005cb3; /*左線*/
     border-bottom: solid 3px #005cb3; /*下線*/
}

/* h3 大見出し */
.entry-content h3 {
     font-size: 26px; /*文字サイズ*/
     margin: 3em 0 1.3em 0; /*見出しの上下の余白*/
     padding: 0.3em 0.5em; /*文字周りの余白(上下 左右)*/
     color: black; /*文字色*/
     border-left: solid 12px #005cb3; /*左線*/
     border-bottom: solid 3px #005cb3; /*下線*/
}

/* h4 中見出し */
.entry-content h4 {
     font-size: 20px; /*文字サイズ*/
     margin: 3em 0 1.3em 0; /*見出しの上下の余白*/
     position: relative; /*相対位置*/
     padding-left: 1.5em; /*アイコン分のスペース*/
     line-height: 1.0; /*行高*/
     color: black; /*文字色*/
}
.entry-content h4:before {
     font-family: "Font Awesome 5 Free"; /*忘れずに*/
     content: "\f111"; /*アイコンのユニコード*/
     font-weight: 900;
     position: absolute; /*絶対位置*/
     font-size: 0.9em; /*サイズ*/
     left: 0; /*アイコンの位置*/
     top: 0em; /*アイコンの位置*/
     color: #005cb3;
}
/* ===== 本文（記事の中身）の文字サイズと余白の調整 ===== */
.entry-content {
     font-size: 17px !important; /* パソコンでの本文の大きさを17pxに */
     line-height: 1.85 !important; /* 行間をゆったりさせて読みやすく */
}

.entry-content p {
     margin: 0 0 2em 0 !important; /* 段落（文章のまとまり）の後の余白を広げる */
}

/* スマホ表示（画面横幅640px以下）のときの文字サイズ調整 */
@media screen and (max-width: 640px) {
     .entry-content {
          font-size: 16px !important; /* スマホでは画面に合わせて16pxに */
          line-height: 1.8 !important;
     }
}


/* =====アンダーラインを蛍光マーカーに変更===== */
article u {
    text-decoration: none;
    background: linear-gradient(transparent 60%, #ffff80 60%);
}

/* 記事内の通常のリンク設定 */
.entry-content a {
    color: #2c8a4f; /* 目次と同じテーマカラーのオレンジにする場合（青系なら #1a73e8 など） */
    text-decoration: none; /* デフォルトのべったりした下線を消す */
    border-bottom: 1px solid #005cb3; /* テキストの下に細い線を引く */
    padding-bottom: 1px; /* 文字と線の隙間を少し空けて読みやすく */
    font-weight: 600; /* 文字を少しだけ太くして視認性をアップ */
    transition: all 0.2s ease;
}

/* マウスオーバー時の動き（PC用） */
.entry-content a:hover {
    color: #b85c13; /* 少し濃い色に変化 */
    border-bottom-color: #b85c13;
    opacity: 0.8;
}


/* =====フッターの変更===== */
/* フッターを消す*/
#footer {
     display: none;
}
/* フッターとボトムエリアの隙間をなくす　*/
#container {
     margin-bottom: 0;
}


/* =====コピーライトの変更===== */
#copyright {
     padding: 20px;
     text-align: center;
     font-size: 12px;
}


/* --- グローバルナビゲーション基本・最上部固定設定 --- */
.global-nav {
    background: rgba(255, 255, 255, 0.50); /* 白だけど、50%だけ後ろが透ける */
    backdrop-filter: blur(5px);            /* 後ろを少しぼかす（高級感が出ます） */
    position: fixed;   /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

}
.global-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.global-nav a {
    display: block;
    color: #005cb3; /* 通常時の文字色を指定 */
    padding: 14px 20px;
    text-decoration: none;
    font-size: 14px;
    transition: font-weight 0.1s ease; /* 太字への切り替えをなめらかに */
}

/* ホバー（カーソルを当てたとき）の設定 */
.global-nav a:hover {

    color: inherit;              /* 文字色はテーマ（ブログデフォルト）のカラーを継承 */
    font-weight: bold;           /* 文字を太字にする */
}

/* --- 横並びとドロップダウンの制御（PC用） --- */
@media screen and (min-width: 769px) {
    .nav-level1 { display: flex; justify-content: center; } /* 中央寄せ */
    .global-nav li { position: relative; } /* ➔ すべての階層の項目を基準にする（修正！） */
    #content, #wrapper, .header-image-wrapper {
    margin-top: 48px !important;
    }
    
    /* 2階層目（下に出るメニューの背景も白に） */
    .nav-level2 {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 180px;
        background: rgba(255, 255, 255, 0.85); /* ドロップダウンは文字が重なるので、少し濃いめの白 */
    }
    /* 3階層目（右に出るメニューの背景も白に） */
    .nav-level3 {
        display: none;
        position: absolute;
        top: -1px; /* 枠線のズレを微調整 */
        left: 100%;
        width: 180px;
        background: rgba(255, 255, 255, 0.85); /* ドロップダウンは文字が重なるので、少し濃いめの白 */
    }
    
    /* カーソルを当てたら表示する命令 */
    .nav-level1 li:hover > ul { display: block; }
    
    /* 右に矢印を表示する（子メニューがある目印） */
    .nav-level2 .has-child > a::after {
        content: " ▶";
        font-size: 10px;
        float: right;
        color: #005cb3; /* 矢印の色も統一 */
    }
    /* ホバー時は矢印の色もデフォルトカラーに追従 */
    .nav-level2 .has-child:hover > a::after {
        color: inherit;
    }
}

/*==================================================
　📱 スマホ・タブレット用：トグル式ナビゲーション（3層完全対応）
　==================================================*/
@media screen and (max-width: 768px) {
    /* 元のPC用ナビゲーションと下部固定メニューを完全に非表示にする */
    .global-nav, ul.bottom-menu {
        display: none !important;
    }

    /* --- ① トグルメニュー全体のコンテナ --- */
    .sp-nav-toggle {
        display: block;
        position: relative;
        width: 100%;
        background-color: #f5f5f5;
        border-bottom: 2px solid #808080;
        z-index: 100;
    }

    /* --- ② ハンバーガーボタン（MENU） --- */
    .sp-nav-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        color: #808080;
        font-weight: bold;
        font-size: 16px;
        cursor: pointer;
        margin: 0;
    }
    
    /* 三本線アイコン */
    .sp-nav-icon {
        position: relative;
        width: 24px;
        height: 2px;
        background-color: #808080;
        transition: background-color 0.2s ease;
    }
    .sp-nav-icon::before, .sp-nav-icon::after {
        content: "";
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: #808080;
        left: 0;
        transition: transform 0.2s ease;
    }
    .sp-nav-icon::before { top: -6px; }
    .sp-nav-icon::after { top: 6px; }

    /* ギミック用のチェックボックス（非表示） */
    #nav-input, .sub-input, .grand-input {
        display: none !important;
    }

    /* --- ③ 1層目のメニューリスト --- */
    .sp-menu-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        padding: 0;
        list-style: none;
        background-color: #ffffff;
        transition: max-height 0.3s ease-out, opacity 0.2s ease;
    }

    .sp-menu-list li {
        width: 100%;
        position: relative;
        list-style: none !important;
    }
    .sp-menu-list > li {
        border-top: 1px dashed #a9a9a9;
    }

    /* 共通リンク・ラベルデザイン */
    .sp-menu-list a, .sub-label, .grand-label {
        display: block;
        color: #808080;
        text-decoration: none;
        line-height: 1.4;
        cursor: pointer;
        margin: 0;
        box-sizing: border-box;
    }

    /* 1層目のサイズ感 */
    .sp-menu-list > li > a, .sub-label {
        padding: 14px 24px;
        font-size: 15px;
    }

    /* 下位階層を持っている親要素は「＋」を表示 */
    .has-sub > .sub-label,
    .has-grand > .grand-label {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .has-sub > .sub-label::after,
    .has-grand > .grand-label::after {
        content: "＋";
        font-size: 12px;
        color: #a9a9a9;
        transition: transform 0.2s ease;
    }

    /* タップ・ホバー時のカラー変更 */
    .sp-menu-list > li > a:hover, .sub-label:hover {
        background-color: #005cb3;
        color: #ffffff !important;
    }
    .has-sub > .sub-label:hover::after { color: #ffffff; }

    /* --- ④ 2層目のメニューリスト（子カテゴリ） --- */
    .sp-sub-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        padding: 0;
        background-color: #fafafa; /* 少し暗いグレー */
        transition: max-height 0.3s ease-out, opacity 0.2s ease;
    }
    .sp-sub-menu > li {
        border-top: 1px solid #eeeeee;
    }
    .sp-sub-menu > li > a, .grand-label {
        padding: 12px 24px 12px 40px; /* 左側にインデント（隙間）を入れる */
        font-size: 14px;
    }
    .sp-sub-menu > li > a:hover, .grand-label:hover {
        background-color: #f0f0f0;
        color: #005cb3 !important;
    }
    .has-grand > .grand-label:hover::after { color: #dd792a; }

    /* --- ⑤ 3層目のメニューリスト（孫カテゴリ） --- */
    .sp-grand-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin: 0;
        padding: 0;
        background-color: #f0f0f0; /* さらに1歩暗いグレー */
        transition: max-height 0.3s ease-out, opacity 0.2s ease;
    }
    .sp-grand-menu > li {
        border-top: 1px solid #e0e0e0;
    }
    .sp-grand-menu > li > a {
        padding: 11px 24px 11px 56px; /* さらに深いインデント */
        font-size: 13.5px;
        color: #666666;
    }
    .sp-grand-menu > li > a:hover {
        background-color: #e5e5e5;
        color: #dd792a !important;
    }

    /* --- ⑥ 開閉ギミック（隣接セレクタ `+` と `~` で個別連動を完全保証） --- */
    
    /* 1層目を開く */
    #nav-input:checked ~ .sp-menu-list {
        max-height: 3000px; /* 3層まで全て開いても収まるように広く確保 */
        opacity: 1;
    }
    /* MENUボタン ✕ 変形 */
    #nav-input:checked + .sp-nav-label .sp-nav-icon { background-color: transparent; }
    #nav-input:checked + .sp-nav-label .sp-nav-icon::before { transform: translateY(6px) rotate(45deg); }
    #nav-input:checked + .sp-nav-label .sp-nav-icon::after { transform: translateY(-6px) rotate(-45deg); }

    /* 2層目を開く（直後の ul だけを狙い撃ちにするので他が誤作動しません） */
    .sub-input:checked ~ .sp-sub-menu {
        max-height: 1000px;
        opacity: 1;
    }
    .sub-input:checked + .sub-label::after { content: "ー"; }

    /* 3層目を開く（直後の ul だけを狙い撃ち） */
    .grand-input:checked ~ .sp-grand-menu {
        max-height: 500px;
        opacity: 1;
    }
    .grand-input:checked + .grand-label::after { content: "ー"; }
}

/* PC環境用非表示設定 */
@media screen and (min-width: 769px) {
    .sp-nav-toggle { display: none !important; }
}



/* =====目次（これからの大見出し1階層化・最適化版）===== */
.entry-content .table-of-contents {
     position: relative;
     margin: 2em 0; /* 左右の無駄な余白を無くし、コンテンツ幅に合わせる */
     padding: 60px 24px 24px 24px; /* 上部にタイトル用の余白をたっぷり確保 */
     font-family: sans-serif;
     font-size: 100%;
     font-weight: normal;
     background: #ffffff; /* 清潔感のある白背景 */
     line-height: 1.0;
     
     /* 左側のアクセント線と繊細な影で今っぽく */
     border-left: 5px solid #005cb3; /* 左側だけにアクセントカラーのライン */
     border-top: none;
     border-bottom: none;
     border-right: none;
     border-radius: 8px; /* 角をほんのり丸く */
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 軽い浮遊感を与える繊細な影 */
}

/* ❌ 特大見出し（H2）または過去の大見出し（H3）の最上段以外は、目次で一切非表示にする */
.entry-content .table-of-contents ul {
     display: none !important;
}

/* 最上段の見出しリスト（一番外側のリスト） */
.entry-content .table-of-contents > li {
     /* 💡 行間（上下の余白）をしっかりと広げてスッキリ見せる */
     margin: 0 0 16px 1.2em !important; 
     font-size: 90%; 
     font-weight: normal !important;
     list-style-type: disc !important; /* 黒丸（●）の形式 */
     color: #a0a0a0 !important; /* ● のポッチの色を薄くして上品に */
}

/* 最後のリスト項目の下余白は不要なのでリセット */
.entry-content .table-of-contents > li:last-child {
     margin-bottom: 0 !important;
}

/* 目次の各項目（リンク）の個別設定 */
.entry-content .table-of-contents li a {
     /* 💡 行が折り返したときの行間も広く（1.8）設定 */
     line-height: 1.8 !important; 
     display: inline-block !important;
     
     /* 💡 記事内リンクの干渉（下線・背景マーカー・太字）を全て強制リセット */
     text-decoration: none !important; 
     border-bottom: none !important;
     background: none !important;
     font-weight: normal !important;
     
     /* 💡 文字色を本文と同じ（#333333）に指定 */
     color: #333333 !important; 
     transition: color 0.2s ease; /* 色が変わる瞬間をふわっと滑らかに */
}

/* マウスオーバーした時に色が変わる */
.entry-content .table-of-contents li a:hover {
     text-decoration: none !important; /* ホバー時も下線を出さない */
     color: #005cb3 !important; /* マウスオーバー時に変わる */
}

/* 「目次」のタイトル（Contents）変更 */
.entry-content .table-of-contents::before {
     content: "Contents";
     display: block;
     font-size: 100%; 
     font-weight: 700; /* 太文字で引き締める */
     letter-spacing: 0.08em; /* 英字の文字間隔を少し広げて上品に */
     position: absolute;
     top: 20px; /* 枠の内側上部に配置 */
     left: 24px; /* 左側の余白と位置を統一 */
     color: #005cb3 !important; /* タイトルも統一 */
}

/* ===== 📱 スマホ・タブレット用の表示調整（レスポンシブ） ===== */
@media screen and (max-width: 768px) {
     .entry-content .table-of-contents {
          margin: 1.5em 0; 
          padding: 50px 16px 18px 16px; /* スマホ画面に合わせて内側の余白を少し詰める */
          border-left-width: 4px; /* 左の線を少し細く */
     }

     /* スマホ時のタイトルサイズと位置 */
     .entry-content .table-of-contents::before {
          top: 16px;
          left: 16px;
     }

     /* スマホ時：見出しリストの文字サイズと行間 */
     .entry-content .table-of-contents > li {
          font-size: 85% !important; /* スマホでは本文より一回り小さく */
          margin-bottom: 12px !important; /* スマホでもしっかり行間をあける */
     }
}

/* はてなブログ：写真キャプションのカスタマイズ */
.entry-content .figure-image figcaption {
    text-align: left;       /* 中央寄せを解除して左寄せに */
    font-size: 13px;        /* 本文より少し小さく（お好みで調整） */
    color: #666666;         /* 文字色をグレーにして落ち着かせる */
    padding: 0;             /* 余計な余白をリセット */
    margin-top: 4px;        /* 写真との距離を調整 */
    line-height: 1.5;       /* 行間を整える */
    letter-spacing: -0.02em;　/* 文字感覚を詰める */
}

/* もし左に寄りきらない（少し隙間ができる）場合はこれも追加 */
.entry-content .figure-image {
    text-align: left;
}

/* 区切り線を横幅いっぱいに広げる設定 */
.entry-content hr {
    width: 100% !important;
    max-width: 90% !important;
    margin: 2em auto; /* 上下の余白（お好みで変更可） */
}


/* ===== カテゴリー覧・パンくずリスト ===== */
<style>.hatena-module-category ul li{display:block;padding:8px 0;border:0;list-style-type:none}.hatena-module-category ul li a{display:inline-block;padding:0;text-decoration:none;color:#000;border:none;transition:1s ease}.hatena-module-category ul li.on-border{border-top:1px solid #ddd}ul.hatena-breadcrumb-plus-child1{padding-left:30px}ul.hatena-breadcrumb-plus-child2{padding-left:15px}.hatena-breadcrumb-plus-toggle-button{cursor:pointer}</style>
