/* <system section="theme" selected="6653586347149180725"> */
@import url("https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css");

/*

	Theme: Innocent
	Author: waitingmoon
	Desciprtion: カスタマイズのためのテーマ
	Responsive: yes

*/

/**

	Table of Contents:

	* Normalize
	* Global
	* Repeatable Patterns
	* Layout
	* Header
	* Navigation
	* Recommend Entries
	* Breadcrumb
	* Entry
		* Entry Header
		* Entry Content
		* Entry Footer
		* Archive
	* Comment
	* Pager
	* Sidebar
		* Profile
		* Recent Post, Popular Post
		* Recent Comment
		* Archive
			* List Style
			* Calendar Style
		* Category
		* Search
		* Group
	* Footer
	* Modify
		* Colorbox
		* Advertisement

**/

/*! normalize.css v3.0.2 | MIT License | git.io/normalize */

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */

html {
  font-family: sans-serif; /* 1 */
  -ms-text-size-adjust: 100%; /* 2 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/**
 * Remove default margin.
 */

body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */

/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */

audio,
canvas,
progress,
video {
  display: inline-block; /* 1 */
  vertical-align: baseline; /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */

audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */

[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */

/**
 * Remove the gray background color from active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */

a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */

/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */

abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */

b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */

dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */

mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove border when inside `a` element in IE 8/9/10.
 */

img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */

svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */

/**
 * Address margin not present in IE 8/9 and Safari.
 */

figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */

hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */

pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */

/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */

/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */

button,
input,
optgroup,
select,
textarea {
  color: inherit; /* 1 */
  font: inherit; /* 2 */
  margin: 0; /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */

button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */

button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */

button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
  -webkit-appearance: button; /* 2 */
  cursor: pointer; /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */

button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */

input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */

input[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box; /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */

legend {
  border: 0; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */

textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */

optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */

/**
 * Remove most spacing between table cells.
 */

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}


/* Global
   ========================================================================== */

::-moz-selection {
	background-color: #ccc;
	color: #fff;
}

::selection {
	background-color: #ccc;
	color: #fff;
}

html {
	font-size: 85%;
}

body {
	color: #333;
	font-size: 15px;
	font-family: Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	line-height: 1.7;
	word-wrap: break-word;
}

@media screen and (min-width: 768px) {
	
	html {
		font-size: 100%;
	}
	
	body {
		font-size: 16px;
	}
}

a {
	color: inherit;
	text-decoration: none;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}

.entry-content a,
.comment-content a {
	color: #3872b8;
	text-decoration: underline;
}

.entry-content a.keyword,
.comment-content a.keyword {
	border-bottom: 1px dotted;
	text-decoration: none;
}

a:hover {
	color: #5687c3;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	color: #222;
	letter-spacing: -0.01em;
	line-height: 1.4;
}

h1 {
	font-size: 1.625rem;
	margin-top: 2em;
	margin-bottom: 1em;
}

h2 {
	font-size: 1.5rem;
	margin-top: 2em;
	margin-bottom: 1em;
}

h3 {
	font-size: 1.375rem;
	margin-top: 1.5em;
	margin-bottom: 1em;
}

h4 {
	font-size: 1.25rem;
	margin-top: 1.5em;
	margin-bottom: 1em;
}

h5 {
	font-size: 1.125rem;
	margin-top: 1em;
	margin-bottom: 0.5em;
}

h6 {
	font-size: 1rem;
	margin-top: 1em;
	margin-bottom: 0.5em;
}

p {
	margin: 0 0 1.5em;
}

/* List */

ul,
ol {
	margin: 0 0 1.5em 2em;
	padding: 0;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dl {
	margin: 0;
}

dt {
	font-weight: 700;
	margin-bottom: 0.75em;
}

dd {
	margin: 0 0 1.5em 1.5em;
}

.table-of-contents,
.entry-content .table-of-contents {
	border: 1px solid #e6e6e6;
	margin: 0 0 1.6em;
	padding: 1.6em 1.6em 1.6em 3.2em;
}

/* Table */

table {
	border-top: 1px solid #e6e6e6;
	font-size: 0.9375em;
	margin: 0 0 1.7em;
	width: 100%;
}

th {
	font-weight: 700;
	text-align: left;
}

th,
td {
	border-bottom: 1px solid #e6e6e6;
	padding: 0.8em;
}

/* Elements */

pre,
.entry-content pre {
	border: 1px solid #e6e6e6;
	font-family: Consolas, "Courier New", Courier, Monaco, monospace;
	font-size: 0.9375em;
	line-height: 1.4;
	margin: 0 0 1.7em;
	padding: 1.6em;
	word-wrap: normal;
}

code,
.entry-content code {
	background-color: #fee5ee;
	border: 0;
	border-radius: 0;
	color: #f92672;
	font-family: Consolas, "Courier New", Courier, Monaco, monospace;
	font-size: 0.9375em;
	margin: 0;
	padding: 0;
}

pre > code,
.entry-content pre > code {
	color: inherit;
	font-family: inherit;
	font-size: 1em;
	margin: 0;
	padding: 0;
}

blockquote,
.entry-content blockquote {
	border: 1px solid #e6e6e6;
	color: #666;
	font-size: 0.9375em;
	margin: 1.85em 0 1.7em;
	padding: 32px 24px 0.1em;
	position: relative;
}

blockquote::before,
.entry-content blockquote::before {
	background-color: #fff;
	content: "\f10d";
	display: inline-block;
	font: normal 28px/1 FontAwesome;
	vertical-align: middle;
	position: absolute;
	top: -10px;
	left: 24px;
}

blockquote cite,
.entry-content blockquote cite {
	display: block;
	margin-bottom: 1.5em;
	text-align: right;
}

blockquote > *:first-child,
.entry-content blockquote > *:first-child {
	margin-top: 0;
}

hr {
	background-color: #e6e6e6;
	border: 0;
	height: 1px;
	margin: 0 0 28px;
}

/* Media */

img {
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}

embed,
iframe,
object {
	max-width: 100%;
}

/* ASIN, iTunes */

.hatena-asin-detail,
.itunes-embed {
	border: 1px solid #e6e6e6;
	font-size: 0.9375em;
	line-height: 1.5;
	margin: 0 0 1.7em;
	padding: 1.6em;
	position: relative;
}

.hatena-asin-detail::before,
.itunes-embed::before {
	color: #e6e6e6;
	display: inline-block;
	font: normal normal normal 32px/1 FontAwesome;
	vertical-align: middle;
	position: absolute;
	bottom: 0;
	right: 0;
}

.hatena-asin-detail::before {
	content: "\f270";
}

.itunes-embed::before {
	content: "\f179";
}

.hatena-asin-detail .hatena-asin-detail-image,
.itunes-embed .itunes-embed-image {
	float: left;
	margin-right: 1.6em;
	max-width: 60px;
}

@media screen and (min-width: 768px) {
	
	.hatena-asin-detail .hatena-asin-detail-image,
	.itunes-embed .itunes-embed-image {
		max-width: 100px;
	}
	
}

.hatena-asin-detail .hatena-asin-detail-info,
.itunes-embed .itunes-embed-info {
	overflow: hidden;
}

.hatena-asin-detail .hatena-asin-detail-title,
.itunes-embed .itunes-embed-title {
	margin-bottom: 0.8em;
}

.hatena-asin-detail .hatena-asin-detail-info ul li:last-child,
.itunes-embed .itunes-embed-info ul li:last-child {
	margin-top: 0.4em;
}

/* Repeatable Patterns
   ========================================================================== */

.hatena-image-right {
	margin: 0 0 1.5em 1.5em;
}

.hatena-image-left {
	margin: 0 1.5em 1.5em 0;
}

/* Clearing */

#content-inner::before,
#content-inner::after,
#main-inner::before,
#main-inner::after,
.categories::before,
.categories::after,
.entry-content::before,
.entry-content::after,
.comment-box::before,
.comment-box::after,
.pager::before,
.pager::after,
#box2-inner::before,
#box2-inner::after,
.hatena-urllist::before,
.hatena-urllist::after {
	content: "";
	display: table;
}

#content-inner::after,
#main-inner::after,
.categories::after,
.entry-content::after,
.comment-box::after,
.pager::after,
#box2-inner::after,
.hatena-urllist::after {
	clear: both;
}

/* Layout
   ========================================================================== */

#blog-title-inner,
#content-inner,
#footer-inner,
.breadcrumb-inner {
	margin: 0 auto;
	max-width: 656px;
	padding: 0 20px;
}

#blog-title {
	padding-top: 36px;
	padding-bottom: 32px;
}

#top-box,
#content {
	background-color: #fff;
	border-top: 1px solid #e6e6e6;
	padding-top: 24px;
}

#top-box + #content {
	border-top: 0;
}

.entry,
.page-archive .archive-entry {
	border-bottom: 1px solid #e6e6e6;
	margin-bottom: 36px;
	padding-bottom: 36px;
}

.entry-content {
	margin-top: 28px;
}

.entry-footer {
	margin-top: 36px;
}

.pager {
	margin-bottom: 36px;
}

#wrapper {
	border-bottom: 1px solid #e6e6e6;
	margin-bottom: 36px;
}

.hatena-module {
	margin-bottom: 48px;
}

#footer {
	padding-bottom: 28px;
	padding-top: 28px;
}

@media screen and (min-width: 540px) {
	
	#blog-title-inner,
	#content-inner,
	#footer-inner,
	.breadcrumb-inner {
		padding-left: 36px;
		padding-right: 36px;
	}
	
	#top-box,
	#content {
		padding-top: 36px;
	}
	
}

@media screen and (min-width: 768px) {
	
	#blog-title-inner,
	#content-inner,
	#footer-inner,
	.breadcrumb-inner {
		padding-left: 54px;
		padding-right: 54px;
	}

	#blog-title {
		padding-top: 48px;
		padding-bottom: 40px;
	}
	
	#top-box,
	#content {
		padding-top: 48px;
	}

	.entry,
	.page-archive .archive-entry {
		margin-bottom: 48px;
		padding-bottom: 48px;
	}
	
	.pager {
		margin-bottom: 48px;
	}

	#wrapper {
		margin-bottom: 48px;
	}

	#footer {
		padding-top: 36px;
		padding-bottom: 36px;
	}
	
}

@media screen and (min-width: 1024px) {
	
	#blog-title-inner,
	#content-inner,
	#footer-inner,
	.breadcrumb-inner,
	.main-navigation-inner {
		max-width: 1065px;
	}
	
	.main-navigation-inner {
		padding-left: 54px;
		padding-right: 54px;
	}
	
	#content {
		padding-bottom: 48px;
	}
	
	#wrapper {
		border-bottom: 0;
		box-sizing: border-box;
		float: left;
		margin-right: -354px;
		margin-bottom: 0;
		padding-right: 354px;
		width: 100%;
	}

	#main-inner {
		border-right: 1px solid #e6e6e6;
		padding-right: 54px;
	}
	
	#box2 {
		float: right;
		width: 354px;
	}
	
	#box2-inner {
		border-left: 1px solid #e6e6e6;
		margin-left: -1px;
		padding-left: 54px;
	}

	.pager {
		border-bottom: 0;
		padding-bottom: 0;
	}
	
}

@media screen and (min-width: 1280px) {
	
	#blog-title-inner,
	#content-inner,
	#footer-inner,
	.breadcrumb-inner,
	.main-navigation-inner {
		max-width: 1101px;
	}
	
	#wrapper {
		margin-right: -390px;
		padding-right: 390px;
	}
	
	#box2 {
		width: 390px;
	}
	
}

/* Breadcrumb margin fix */

.page-entry .breadcrumb { margin-bottom: 0; }
#top-box { padding-bottom: 24px; }
@media screen and (min-width: 540px) { #top-box { padding-bottom: 24px; padding-top: 24px; } }
@media screen and (min-width: 768px) { #top-box { padding-bottom: 28px; padding-top: 28px; } }

/* Header
   ========================================================================== */

#globalheader-container {
	background-color: #222;
	color: #eee;
}

#blog-title {
	text-align: center;
}

@media screen and (min-width: 1024px) {
	
	#blog-title {
		text-align: left;
	}
	
}

#title {
	display: inline-block;
	line-height: 1.2;
	margin: 0;
}

#title a,
#title a:hover {
	color: #222;
}

#title a:hover {
	opacity: 0.7;
}

#blog-description {
	color: #999;
	font-size: 0.9375em;
	font-weight: normal;
	letter-spacing: normal;
	margin: 0;
}

/* Header-Image */

.header-image-enable #blog-title #title a {
	color: #fff;
	-webkit-text-shadow: 0 1px 2px #000;
			text-shadow: 0 1px 2px #000;
}

.header-image-enable #blog-title #blog-description {
	color: rgba(255,255,255,0.9);
	font-weight: normal;
	-webkit-text-shadow: 0 1px 2px #000;
			text-shadow: 0 1px 2px #000;
}

/* Navigation
   ========================================================================== */

.main-navigation {
	font-size: 0.9375em;
}

.main-navigation,
.main-navigation ul ul {
	background-color: #222;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
}

.main-navigation.toggled ul {
	display: block;
}

.menu-toggle {
	cursor: pointer;
}

.menu-toggle::before {
	content: "\f0c9";
	display: inline-block;
	font: normal 16px/1 FontAwesome;
	margin-right: 12px;
	vertical-align: middle;
}

.menu-toggle,
.main-navigation a {
	color: rgba(255,255,255,0.8);
	display: block;
	line-height: 54px;
	padding: 0 20px;
	text-decoration: none;
}

.menu-toggle:hover,
.main-navigation a:hover {
	color: rgba(255,255,255,0.9);
}

.main-navigation a {
	border-top: 1px solid rgba(255,255,255,0.2);
}

.main-navigation ul ul a {
	padding-left: 30px;
}

.main-navigation ul ul ul a {
	padding-left: 45px;
}

.main-navigation ul ul ul ul a {
	padding-left: 60px;
}

@media screen and (min-width: 1024px) {
	
	.menu-toggle {
		display: none;
	}
	
	.main-navigation-inner {
		margin: 0 auto;
	}
	
	.main-navigation-inner ul {
		position: relative;
		left: -18px;
	}
	
	.main-navigation ul {
		display: block;
		letter-spacing: -0.4em;
	}
	
	.main-navigation ul li {
		display: inline-block;
		letter-spacing: normal;
		position: relative;
	}

	.main-navigation ul ul {
		box-shadow: 0 0 2px rgba(0,0,0,0.5);
		letter-spacing: normal;
		opacity: 0;
		text-align: left;
		-webkit-transition: all .3s ease;
				transition: all .3s ease;
		width: 216px;
		position: absolute;
		top: 100%;
		/* left: -9999px; */
        left: 0;
        visibility: hidden;
		z-index: 9999;
	}
	
	.main-navigation ul ul li,
	.main-navigation ul ul ul li,
	.main-navigation ul ul ul ul li {
		display: block;
	}
	
	.main-navigation ul li:hover > ul {
		opacity: 1;
		left: 0;
        visibility: visible;
	}
	
	.main-navigation ul ul ul {
		top: 0;
        left: 100%;
	}
	
	.main-navigation ul ul li:hover > ul {
		opacity: 1;
		left: 100%;
        visibility: visible;
	}
	
	.main-navigation a {
		border-top: 0;
		padding: 0 18px;
	}

	.main-navigation ul ul a {
		border-top: 1px solid rgba(255,255,255,0.2);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	
	.main-navigation ul ul a,
	.main-navigation ul ul ul a,
	.main-navigation ul ul ul ul a {
		padding: 0 18px;
	}
	
	.main-navigation a.has-child::after {
		content: "\f107";
		display: inline-block;
		font: normal 16px/1 FontAwesome;
		margin-left: 8px;
		vertical-align: middle;
		position: relative;
		top: -2px;
	}
	
	.main-navigation ul ul a.has-child::after {
		content: "\f105";
		display: inline-block;
		font: normal 16px/1 FontAwesome;
		position: absolute;
		top: 19px;
		right: 17px;
	}
	
}

/* Recommend Entries
   ========================================================================== */

#recommend-entries {
	background-color: #fff;
	padding: 48px 0;
}

#recommend-entries-inner {
	margin: 0 auto;
	max-width: 1101px;
	padding: 0 54px;
}

#recommend-entries .hatena-module-entries-access-ranking {
	margin-bottom: 0;
}

#recommend-entries .urllist-with-thumbnails {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
	margin: 0;
}

#recommend-entries .urllist-item {
	border-top: 0;
	/* float: left; */
	padding: 0;
	width: 20%;
	position: relative;
}

@media screen and (max-width: 1279px) {
	#recommend-entries-inner {
		max-width: 1065px;
	}
	#recommend-entries .urllist-item {
		width: 25%;
	}
	#recommend-entries .urllist-item:nth-child(5) {
		display: none;
	}
}

@media screen and (max-width: 1023px) {
	#recommend-entries-inner {
		max-width: 656px;
	}
	#recommend-entries .urllist-item {
		width: 33.3333%;
	}
	#recommend-entries .urllist-item:nth-child(4) {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	#recommend-entries-inner {
		padding: 0 36px;
	}
}

@media screen and (max-width: 599px) {
	#recommend-entries .urllist-item {
		width: 50%;
	}
	#recommend-entries .urllist-item:nth-child(3) {
		display: none;
	}
}

@media screen and (max-width: 539px) {
	#recommend-entries {
		display: none;
	}
}

#recommend-entries .urllist-image-link {
	display: block;
	margin: 0;
	overflow: hidden;
}

#recommend-entries .urllist-image {
	box-sizing: border-box;
	float: none;
	margin: 0;
	opacity: 0.8;
	width: 100%;
	-webkit-transition: all .3s ease;
			transition: all .3s ease;
}

#recommend-entries .urllist-item:hover .urllist-image {
	opacity: 1;
	-webkit-transform: scale(1.2);
	transform: scale(1.2);
}

#recommend-entries .urllist-title-link {
	background-color: rgba(0, 0, 0, 0.5);
	background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.5));
	background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.5));
	box-sizing: border-box;
	color: #fff;
	font-size: 0.8667em;
	font-weight: 700;
	line-height: 1.2;
	padding: 16px 12px 11px;
	width: 100%;
	position: absolute;
	left: 0;
	bottom: 0;
}

#recommend-entries .bookmark-widget-counter {
	display: inline-block;
	line-height: 1;
	position: absolute;
	top: 10px;
	right: 12px;
}

/* Breadcrumb
   ========================================================================== */

.breadcrumb {
	font-size: 0.9375em;
}

.breadcrumb-gt {
	margin: 0 4px;
}

/* Entry Header
   ========================================================================== */

.entry-header {
	position: relative;
}

.entry-title {
	line-height: 1.2;
	margin: 0;
}

.date {
	color: #999;
	font-size: 0.875em;
	margin-bottom: 7px;
}

.categories {
	font-size: 0.875em;
	margin-top: 12px;
}

.categories a {
	border: 1px solid #e6e6e6;
	border-radius: 2px;
	float: left;
	display: block;
	line-height: 32px;
	margin: 0 6px 6px 0;
	padding: 0 12px;
}

.categories a:hover {
	background-color: #f6f6f6;
	color: #333;
}

.entry-header-menu {
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	height: 48px;
	line-height: 1;
	text-align: center;
	width: 48px;
	position: absolute;
	top: 0;
	right: -78px;
}

.entry-header-menu a::before {
	content: "\f044";
	display: block;
	font: normal 16px/48px FontAwesome;
	margin-left: 4px;
	margin-top: 2px;
	vertical-align: middle;
}

.entry-header-menu a {
    display: block;
	font-size: 0;
}

@media screen and (max-width: 1023px) {
	
	.entry-header-menu {
		display: none !important;
	}
	
}

.entry-header .social-buttons {
	font-size: 0;
	line-height: 1;
	margin: 12px 0 -8px;
}

.entry-header .social-button-item {
	display: inline-block;
	margin: 0 8px 8px 0;
}

.customized-header {
	margin-top: 18px;
}

/* Entry Content
   ========================================================================== */

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content .entry-see-more {
	background-color: #222;
	border-radius: 2px;
	box-sizing: border-box;
	color: rgba(255,255,255,0.9);
	display: inline-block;
	font-size: 0.875em;
	line-height: 44px;
	min-width: 176px;
	text-align: center;
	text-decoration: none;
}

.entry-content .entry-see-more:hover {
	background-color: #555;
	color: rgba(255,255,255,0.9);
}

.entry-content .footnote {
	font-size: 0.875em;
	line-height: 1.5;
}

.entry-content .footnote p.footnote {
	font-size: 1em;
	margin: 0 0 0.5em;
}

.entry-content .footnote p.footnote:last-child {
	margin-bottom: 0;
}

/* Entry Footer
   ========================================================================== */

.entry-footer-section {
	color: #999;
	display: block;
	font-size: 0.875em;
	margin-bottom: 24px;
}

.entry-footer .social-buttons {
	font-size: 0;
	line-height: 1;
	margin-bottom: 24px;
}

.entry-footer .social-button-item {
	display: inline-block;
	margin: 0 8px 8px 0;
}

.page-index .customized-footer,
.page-category-category_name .customized-footer {
	display: none;
}

.customized-footer {
	margin-bottom: 32px;
}

/* Archive
   ========================================================================== */

.page-archive .archive-entry-body {
	margin-top: 28px;
}

.page-archive .entry-thumb {
	margin: 28px 26px 26px 0;
}

@media screen and (min-width: 768px) {
	
	.page-archive .entry-thumb {
		margin-right: 32px;
		margin-bottom: 32px;
	}
	
}

.page-archive .social-buttons {
	clear: both;
	display: block;
}

/* Comment
   ========================================================================== */

.comment-box {
	font-size: 0.9375em;
	text-align: right;
}

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

.entry-comment {
	border-top: 1px solid #e6e6e6;
	padding: 28px 0 28px 60px;
	position: relative;
	text-align: left;
}

.entry-comment:first-child {
	border-top: 0;
	margin-top: 16px;
	padding-top: 0;
}

.entry-comment .comment-user-name {
	color: #222;
	display: block;
	font-weight: 700;
	margin-bottom: 6px;
}

.entry-comment .comment-user-name img {
	border-radius: 2px;
	height: 40px !important;
	width: 40px !important;
	position: absolute;
	top: 28px;
	left: 0;
}

.entry-comment:first-child .comment-user-name img {
	top: 0;
}

@media screen and (min-width: 768px) {
	
	.entry-comment {
		padding-left: 72px;
	}
	
	.entry-comment .comment-user-name img {
		height: 48px !important;
		width: 48px !important;
	}
	
}

.comment-content {
	margin-bottom: 12px;
}

.comment-content > p:last-child {
	margin-bottom: 0;
}

.comment-metadata {
	color: #999;
	font-size: 0.9333em;
	margin-bottom: 0;
}

.leave-comment-title {
	border: 1px solid #e6e6e6;
	border-radius: 2px;
	box-sizing: border-box;
	color: #333;
	display: inline-block;
	font-size: 0.875em;
	line-height: 44px;
	min-width: 176px;
	text-align: center;
}

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

/* Pager
   ========================================================================== */

.pager {
	font-size: 0.9375em;
}

.pager a {
	text-decoration: underline;
}

.pager-prev::before,
.pager-next::before {
	color: #999;
	display: block;
	font-size: 0.875em;
	margin-bottom: 3px;
	text-transform: uppercase;
}

.pager-prev::before {
	content: "prev";
}

.pager-prev {
	float: left;
	text-align: left;
	width: 48%;
}

.pager-next::before {
	content: "next";
}

.pager-next {
	float: right;
	text-align: right;
	width: 48%;
}

.pager-arrow {
	display: none;
}

/* Sidebar
   ========================================================================== */

.hatena-module {
	font-size: 0.9375em;
	line-height: 1.5;
}

.hatena-module-title {
	color: #222;
	font-weight: 700;
	margin-bottom: 18px;
}

.hatena-urllist {
	list-style: none;
	margin: -12px 0;
	padding: 0;
}

.hatena-urllist li {
	border-top: 1px solid #e6e6e6;
	padding: 12px 0;
	position: relative;
}

.hatena-urllist li:first-child {
	border-top: 0;
}

/* Profile */

.id {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}

.profile-icon {
	border-radius: 2px;
	float: left;
	height: 48px;
	margin: 0 20px 20px 0;
	width: 48px;
}

.profile-description > p:last-child {
	margin-bottom: 0;
}

.hatena-follow-button-box {
	margin-top: 24px;
}

.hatena-follow-button-box + .hatena-follow-button-box {
	margin-top: 8px;
}


/* Recent Posts, Popular Posts */

.urllist-date-link {
	color: #999;
	font-size: 0.8667em; /* 15 * 0.8667 = 13 */
	overflow: hidden;
	padding-bottom: 3px;
}

.urllist-title-link {
	font-size: 1em;
}

.urllist-categories {
	font-size: 0.8667em;
	overflow: hidden;
	padding-top: 3px;
}

.urllist-category-link {
	font-size: 1em;
	margin-right: 6px;
}

.urllist-entry-body {
	color: #999;
	font-size: 0.8667em;
	line-height: inherit;
	overflow: hidden;
	padding-top: 3px;
}

.urllist-with-thumbnails {
	margin: -20px 0;
}

.urllist-with-thumbnails li::before {
	content: none;
}

.urllist-with-thumbnails li {
	border-top: 1px solid #e6e6e6;
	padding: 20px 0;
}

.urllist-with-thumbnails li:first-child {
	border-top: 0;
}

.urllist-with-thumbnails li .urllist-image {
	float: left;
	margin: 0 20px 0 0;
}

/* Recent Comment */

.recent-comments .user-id img {
	border-radius: 2px;
	margin-right: 5px;
	vertical-align: middle;
	position: relative;
	top: -2px;
}

.recent-comments .recent-comment-time {
	color: #999;
	font-size: 0.8667em;
	font-style: normal;
	opacity: 1;
}

/* Archive - List Style */

.hatena-urllist .archive-module-year {
	padding-left: 24px;
}

.hatena-urllist .archive-module-year .archive-module-months {
	margin-bottom: -2px;
	margin-top: 2px;
}

.hatena-urllist .archive-module-year .archive-module-month {
	margin-left: 0;
	padding: 2px 0 2px 24px;
}

.hatena-urllist .archive-module-year .archive-module-button {
	display: inline-block;
	font-size: 0;
	opacity: 1;
	position: absolute;
	top: 14px;
	left: 7px;
}

.hatena-urllist .archive-module-year .archive-module-show-button,
.hatena-urllist .archive-module-year .archive-module-hide-button {
	opacity: 1;
}

.hatena-urllist .archive-module-year .archive-module-show-button::before,
.hatena-urllist .archive-module-year .archive-module-hide-button::before {
	color: #999;
	font: normal 16px/1 FontAwesome;
	display: inline-block;
	-webkit-transition: .3s all ease;
			transition: all .3s ease;
	vertical-align: middle;
	position: relative;
}

.hatena-urllist .archive-module-year .archive-module-show-button:hover::before,
.hatena-urllist .archive-module-year .archive-module-hide-button:hover::before {
	color: #111;
}

.hatena-urllist .archive-module-year .archive-module-show-button::before {
	content: "\f105";
}

.hatena-urllist .archive-module-year .archive-module-hide-button::before {
	content: "\f107";
	left: -3px;
}

/* Archive - Calendar Style */

.archive-module-calendar .archive-module-calendar-selector {
	margin-bottom: 24px;
}

.archive-module-calendar table {
	font-size: 1em;
	margin-bottom: 0;
}

.archive-module-calendar th,
.archive-module-calendar td {
	font-size: 0.9333em;
	line-height: 40px;
	padding: 0;
}

.archive-module-calendar th a,
.archive-module-calendar td a {
	text-decoration: underline;
}

/* Category */

.hatena-module-category .hatena-urllist {
	margin: 0 0 -6px;
	padding: 0;
}

.hatena-module-category .hatena-urllist li::before {
	content: none;
}

.hatena-module-category .hatena-urllist li {
	border-top: 0;
	display: block;
	float: left;
	margin: 0 6px 6px 0;
	padding: 0;
}

.hatena-module-category .hatena-urllist li a {
	border: 1px solid #e6e6e6;
	border-radius: 2px;
	display: block;
	font-size: 0.8667em;
	line-height: 32px;
	padding: 0 12px;
}

.hatena-module-category .hatena-urllist li a:hover {
	background-color: #f6f6f6;
	color: #333;
}

/* Search */

.search-form,
.search-result-form {
	background-color: transparent;
	border-radius: 0;
	border: 0;
	box-sizing: border-box;
	max-width: 336px;
	position: relative;
}

.search-form .search-module-input,
.search-result .search-result-input {
	border: 1px solid #e6e6e6;
	box-shadow: none;
	box-sizing: border-box;
	height: 44px;
	line-height: 44px;
	outline: 0;
	padding: 8px 52px 8px 12px;
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
	width: 100%;
}

.search-result-form .search-result-input {
	font-size: 0.9375em;
}

.search-form .search-module-input:hover,
.search-result-form .search-result-input:hover {
	border-color: #ccc;
}

.search-form .search-module-input:focus,
.search-form .search-result-input:hover {
	border-color: #ccc;
}

.search-form .search-module-button,
.search-result-form .search-result-button {
	background: transparent url("https://cdn.blog.st-hatena.com/images/theme/search.png?version=1cb944db0eeca13f9892a4d8ff32d3") no-repeat center center;
	border: 0;
	height: 44px;
	line-height: 44px;
	opacity: 0.6;
	overflow: hidden;
	padding: 0;
	text-indent: 100%;
	-webkit-transition: all .3s ease;
			transition: all .3s ease;
	width: 44px;
	white-space: nowrap;
	position: absolute;
	top: 1px;
	right: 1px;
}

.search-form .search-module-button:hover,
.search-result-form .search-result-button:hover {
	opacity: 1;
}

.search-result {
	margin-bottom: 40px;
}

.search-result + p {
	margin-bottom: 36px;
}

.page-archive span.highlight {
	background-color: #fee5ee;
	border: 0;
	border-radius: 0;
	color: #f92672;
	font-weight: 700;
	margin: 0;
	padding: 0;
}

/* Group */

.hatena-module-circles .circle-urllist {
	margin: -20px 0;
}

.hatena-module-circles .circle-urllist li {
	padding: 20px 0;
}

.hatena-module-circles .circle-urllist li a .circle-image {
	border: 1px solid #e6e6e6;
	border-radius: 2px;
	box-sizing: border-box;
	height: 44px;
	margin-right: 20px;
	padding: 8px;
	width: 44px;
}

/* Footer
   ========================================================================== */

#footer {
	background-color: #222;
	color: rgba(255,255,255,0.9);
	font-size: 0.875em;
	text-align: center;
}

@media screen and (min-width: 1024px) {
	
	#footer {
		text-align: left;
	}
	
}

#footer a:hover {
	color: #fff;
}

#footer address,
#footer p {
	margin: 0;
}

#footer address img {
	display: none;
}

#footer p {
	color: rgba(255,255,255,0.5);
}

/* Colorbox
   ========================================================================== */

#colorbox,
#cboxOverlay,
#cboxWrapper {
	overflow: visible;
}

#cboxOverlay {
	background-color: #000;
	opacity: 0.85 !important;
}

#colorbox #cboxContent,
#colorbox #cboxContent #cboxLoadedContent {
	background-color: transparent;
	overflow: visible !important;
}

.cboxPhoto {
	box-shadow: 0 0 20px rgba(0,0,0,0.7);
}

/* Advertisement
   ========================================================================== */

.google-afc-image,
.google-afc-text {
	font-family: inherit;
	font-size: inherit;
	margin: 0 0 32px;
}

.page-archive .google-afc-image,
.page-archive .google-afc-text {
	border-bottom: 1px solid #e6e6e6;
	margin-bottom: 36px;
	padding-bottom: 36px;
}

@media screen and (min-width: 768px) {
	
	.page-archive .google-afc-image,
	.page-archive .google-afc-text {
		margin-bottom: 48px;
		padding-bottom: 48px;
	}
	
}

.google-afc-image div.google_ads_by,
.google-afc-text div.google_ads_by {
	font-size: 13px;
	margin-bottom: 8px;
}

.google-afc-image ul,
.google-afc-text ul {
	margin: 0;
}

.google-afc-image li,
.google-afc-text li {
	margin: 0 !important;
}

.google-afc-image ul .title,
.google-afc-text ul .title {
	font-size: 17px;
	margin-bottom: 8px;
}

.google-afc-image ul .title a,
.google-afc-text ul .title a {
	font-size: 17px !important;
	letter-spacing: normal;
	padding: 0;
}

.google-afc-image ul .summary,
.google-afc-text ul .summary {
	font-size: 13px !important;
	margin: 0 8px 0 0;
}

.google-afc-image ul .visible_url,
.google-afc-text ul .visible_url {
	font-size: 13px;
}

.google-afc-image ul .visible_url a,
.google-afc-text ul .visible_url a {
	font-size: 13px !important;
	letter-spacing: normal;
	padding: 0;
}

.google-afc-image .open-pro-modal,
.google-afc-text .open-pro-modal {
	font-size: 13px;
	padding-top: 16px;
}
/* </system> */

/* 邪魔なキーワード下線を消す */
a.keyword {
    border: 0 !important;
    text-decoration: none !important;
    pointer-events: none !important;
    cursor: default;
    color: #5A5A5A;
}

/*-----記事本文の設定-----*/
body {
    font-size: 14px; /*フォントサイズ*/ 
    line-height: 1.6; /*行間*/
    margin-bottom: 2.0em; /*段落の余白*/
    letter-spacing: 0; /*文字間*/
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
@media screen and (min-width: 768px) {
	body {
		font-size: 15px;
	}
}

/* カラースキーム変数 */
:root {
  --primary-color: #00BFFF; /* 主要な背景色やアクセント色 水色 */
  --secondary-color: #5687c3; /* 見出しやボーダーの色 グレー系青色 */
  --code-color: #f92672; /* コードの文字色 ピンク系赤色*/
  --content-bg-color: #e6e6fa; /* hidden box領域の背景色 薄紫 */
  --toc-border-color: #2f4f4f; /* 目次のボーダー色 */
  --toc-title-bg-color: #00BFFF; /* 目次のタイトル背景色 */
}

/* 画面幅拡大 1011px to 1197px */
#blog-title-inner,
#content-inner,
#footer-inner,
.breadcrumb {
    max-width: 800px; /* for Smartphone and Tablet */
}

@media screen and (min-width: 960px) {
    #blog-title-inner,
    #content-inner,
    #footer-inner,
    .breadcrumb {
        max-width: 1197px; /* for PC */
    }
}

h2 {
  font-weight: bold;
  padding: 0.3em;
  margin-bottom: 0.3em;
  position: relative;
}
h2::after {
  content: '';
  background: repeating-linear-gradient(45deg, var(--primary-color) 0, var(--primary-color) 1px, #fff 0, #fff 50%);
  background-size: 6px 6px;
  mask: linear-gradient(to right, black, transparent);
  -webkit-mask: linear-gradient(to right, black, transparent);
  width: 100%;
  height: 7px;
  position: absolute;
  bottom: -5px;
  left: 0;
}

h3 {
  position: relative;
  margin-left: 0.5em; /* 左に0.5emのインデント */
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(to right, var(--primary-color), var(--primary-color) 5px, transparent 3px, transparent 8px);
  mask: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask: linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}

h4 {
  position: relative;
  margin-left: -0.5em;       /* ← インデントを好みで調整 */
  padding-left: 2em;        /* ← 好みで調整 */
}

h4::before {
  content: '';
  position: absolute;
  left: 1em;              /* ← 1文字分右にずらす */
  top: 50%;
  transform: translateY(-50%);
  width: 0.7em;
  height: 0.7em;
  background-color: var(--primary-color);
}
h5 {
  margin-left: 1.5em; /* 左に1.5emのインデント */
}

/* はみ出し抑制を行う（コードブロック・囲み要素） */
@media screen and (max-width: 600px) { /* スマートフォン画面の場合 */
		/*.entry-content code, */
		.entry-content div : not(.mermaid) {
		    /* max-width: 100%;  親要素の幅に収める */
		    box-sizing: border-box;  /* 余白を含めて計算 */
		    overflow-x: auto; /* 必要に応じて横スクロールを許可 */
		    display: block;  /*ブロック要素として扱う */
		}

		/* 画像が画面に収まるように縮小（横スクロールを避ける） */
		.entry-content img {
		    max-width: 100%; /* 親要素の幅に収める */
		    height: auto; /* アスペクト比を保持して縮小 */
		    display: block; /* 画像をブロックとして扱う */
		}

    .entry-content th,
    .entry-content td {
        font-size: 10px; /* スマートフォン用にフォントサイズを調整 */
    }
}

/* ナビゲーションバー中央配置 */
/*
@media screen and (min-width: 1024px) {
    .main-navigation {
        text-align: center;
    }
}
*/

/* ナビゲーションバーレイアウト変更 */
:root {
  --menu-offset: 500px; /* item1 と item2 の間隔（調整可能） */
}

.menu-toggle, .main-navigation a {
    font-family: Georgia, serif;
}

@media screen and (min-width: 1024px) {
  .main-navigation-inner ul {
    position: relative;
    left: -18px;
  }

  .main-navigation ul li:first-child {
    margin-right: var(--menu-offset); /* item1 と item2 の間隔 */
  }

  .main-navigation ul {
    letter-spacing: normal;
  }

  .main-navigation ul ul,
  .main-navigation ul ul ul {
    position: absolute;
    visibility: hidden;
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  .main-navigation ul ul {
    left: inherit;
  }

  .main-navigation ul ul ul {
    left: 100%;
  }

  .main-navigation ul ul a {
    display: block;
    white-space: nowrap;
    overflow: visible;
  }

  .main-navigation ul li:hover > ul {
    visibility: visible;
  }
}

/* プロフ内の「このブログについて」を非表示 */
div.profile-about {
  display: none;
}

/* ブログタイトルのリンク色を指定 */
*#blog-title #title a {
  color: var(--secondary-color);
}

/* ブログタイトルおよびエリア全体を非表示 */
#blog-title, #blog-title-content {
  display: none;
  margin: 0; /* 余白をリセット */
  padding: 0; /* パディングをリセット */
}

/* 読者になるボタンを非表示 */
.blog-controlls, .blog-controlls-subscribe {
  display: none;
}

/* div#content.hfeed の不要な高さや余白を削除 */
#content.hfeed {
  margin: 0 !important; /* 余白をリセット */
  padding: 5px !important; /* 必要に応じてパディングを調整 */
}

/* 記事内の行の高さと余白を正常化 */
.article-content p, .article-content div {
  line-height: 1.6 !important; /* 行間を設定 */
  margin-bottom: 1em; /* 適度な段落間の余白 */
}

/* パンくずリストを含むtop-boxを非表示 */
#top-box {
    display: none;
}
#top-box, #content { /* Top-box 空白削除 */
    padding-top: 12px;
}

/* code英数半角赤色 */

code,.entry-content code {
  font-family: arial;
  background-color: transparent; /* 背景色を透明に */
}

/* 記事内の主目次を非表示にする（サイドバーは影響なし） */
.entry-content > .table-of-contents {
    display: none;
}

/* 特定の記事では最初から表示（body に show-toc クラスを追加する） */
body.show-toc .entry-content > .table-of-contents {
    display: block !important;
}

/* サイドバー目次を使うとスマホ画面がはみ出す対策 */
/* スマホでは display: flex; を無効化 → 記事とサイドバーが縦並びになる
サイドバーの横幅を1max-width を100%に調整 → はみ出しを防止
position: sticky; をスマホでは無効化を解除して relative に変更 → スクロール時の不具合を防止 */

@media screen and (max-width: 768px) {
    #content-inner {
        display: block !important;
    }

    #box2-inner {
        max-width: 100%;
        overflow-x: hidden;
    }

    .hatena-module:last-of-type {
        position: relative !important;
        top: auto !important;
    }
.entry-content table {display: table-cell; }
}

/* 主目次リストデザイン,記事本文やコメント内のリンク色 */
.entry-content a, .comment-content a {
    color: var(--primary-color) ; /* デフォルトの色を維持 */
    text-decoration: none; /* アンダーラインを削除 */
    transition: text-decoration 0.3s ease; /* スムーズなアニメーション */
}

/* ホバー時のアンダーライン表示 */
.entry-content a:hover, .comment-content a:hover {
    text-decoration: underline;
}

/* リストの箇条書き記号を非表示 */
/* リスト全体の箇条書き記号を非表示 */
ul.table-of-contents {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* ネストされたリストにも適用 */
ul.table-of-contents ul {
    list-style-type: none;
    padding: 0;
    margin-left: 20px; /* ネスト1レベル目のインデント */
}

/* さらにネストされたリスト（h4など） */
ul.table-of-contents ul ul {
    margin-left: 20px; /* ネスト2レベル目のインデント */
}


/* Hiddenボタン装飾*/
.hidden_box label {
    display: inline-block; 
    font-size: 120%; 
    font-weight: normal;
    color: var(--secondary-color);
    background-color: var(--content-bg-color); 
    border: 1px solid var(--secondary-color); 
    box-shadow: 3px 3px 6px -2px #555;
    border-radius: 5px;
    padding: 10px; 
	margin: 0 auto;
	line-height: 1.2; 
    cursor: pointer;
}

/*ボタンホバー時*/
.hidden_box label:hover {
	background: var(--content-bg-color); 
}

.hidden_box label:after {
	content: "を表示";	/* 閉じている状態のときにラベルの後ろに続く文字 */
}

/*チェックは見えなくする*/
.hidden_box input {
	display: none;
}

/*中身を非表示にしておく*/
.hidden_box .hidden_show {
	height: 0;
	overflow: hidden;
	opacity: 0;
	padding: 0;
	text-align: left;
	transition: 0.5s;
}

.hidden_box input:checked + label:after {
	content: "を非表示";	/* 開いている状態のときにラベルの後ろに続く文字 */
}

/*クリックで中身表示*/
.hidden_box input:checked ~ .hidden_show {
	height: auto;
	opacity: 1;
	padding: 10px 0;
}

.scroll {
    overflow-x: auto; /* 横スクロールを有効にする */
    white-space: nowrap; /* 表のセルが折り返されないようにする（必要に応じて） */
}

/* Amazon商品サイトのブログカードデザイン */
.amazon-widget-container {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: flex-start;
}

.amazon-widget {
  position: relative;
  display: flex;
  width: 66%;
  height: 150px;
  border: 1px dashed #cfd8dc;
  padding: 1rem;
  box-sizing: border-box;
}

.amazon-widget-info {
  flex: 1;
  font-size: 0.95rem;
  color: #263238;
  margin-right: 8rem; /* 画像との間隔を広げる */
  line-height: 1.5;
}

.amazon-widget-img {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  max-width: 120px;
  height: auto;
}

.amazon-widget-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.amazon-widget-link {
  position: absolute;
  left: 1rem;
  bottom: 0.5rem;
  font-size: 0.85rem;
  color: #1976d2;
}

.amazon-widget-link a {
  text-decoration: none;
  color: #ff8c00;
  font-weight: bold;
}

.amazon-widget-link a:hover {
  text-decoration: underline;
}

/* スマホサイズ（600px 以下）に適用されないように変更 */
@media screen and (min-width: 601px) {
  .amazon-widget {
    width: 66%; /* デスクトップやタブレット向けに幅66%を適用 */
  }

  .amazon-widget-info {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* スマホ向け調整 */
@media screen and (max-width: 600px) {
  .amazon-widget {
    width: 100%; /* スマホでは幅100%にする */
  }

  .amazon-widget-info {
    font-size: 0.8rem;
    line-height: 1.2rem;
    max-height: 3.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3; /* 3行で省略 */
  }
}

/* 固定トップページにしたサイトマップを */
/* 記事一覧 ( /archive ) から消す */
.archive-entry[data-uuid="6802418398335110583"] {
    display: none !important;
}
/* 最新記事から消す */
.urllist-item.recent-entries-item:has(a[href="https://rainbowgoblins.hatenablog.com/entry/2025/03/18/225144_1"]) {
    display: none !important;
}

/* 表 */
/* 表の文字色を明示的に指定 */
.entry-content table td,
.entry-content table th {
  color: #333333;
}

.entry-content table {
    max-width: 100%; /* 親要素の幅に収める */
    box-sizing: border-box; /* 余白を含めて計算 */
    overflow-x: auto; /* 必要に応じて横スクロールを許可 */
    display: table; /* 表の表示を維持 */
    width: auto; /* 大きさを自動に */
    margin: 0 auto 2em auto; /* 上下左右を中央に。下に2emの余白を追加 */
}

.entry-content table caption { /* タイトル */
    font-size: 15px; /* 文字の大きさ */
    padding: 0.5px; /* 文字周りの余白 */
    text-align: center; /* タイトルも中央揃え */
}

.entry-content table th,
.entry-content table td { /* 見出しセルと普通のセル */
    border: 1px solid #000000; /* 線の太さ・種類・色コード */
    padding: 0.5em; /* 文字周りの余白 */
    width: auto; /* 大きさを自動に */
    /*white-space:nowrap; 文字を折り返さない */
}

.entry-content table th { /* 見出しセル */
    background: var(--content-bg-color); /* 背景色 */
    text-align: center; /* 中央揃え */
}

.entry-content table td:has(img), /* img要素を含むセル */
.entry-content table td.image-cell, /* 特定のクラス名を持つセル */
.entry-content table td.tr-caption /* 画像をキャプション付きで表示するセル */
{
    border: none; /* 罫線をなくす */
}

/* 空行の<p>,<div>タグを非表示にする
p:empty, p:empty::before, div:empty, div:empty::before {
    display: none;
} */

/* サイドバー カテゴリを非表示にする */
.hatena-module-category {
    display: none;
}

/* PCで既存のフッタを非表示にする */
#footer-inner { display: none; }

/* フッタコピーライト (PC用カスタマイズフッタのスタイル) */
#footer {
    font-family: Georgia, serif;
    padding-top: 20px;
    padding-bottom: 0;
    text-align: center; /* フッター全体のテキストを中央に */
}

#footer > p {
    margin-left: -25%; /* 各段落を左に25%移動 (必要に応じて調整) */
}

/* 幅0×高さ0の定義用 SVG だけをレイアウトから外す */
svg[width="0"][height="0"] {
  position: absolute !important;  /* フローから除外 */
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;    /* 念のため中身を隠す */
  pointer-events: none !important;/* クリック無効化（お好みで） */
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* スマートフォンでフッタを非表示にする */
@media screen and (max-width: 600px) {
    #footer { display: none !important; }
}


/* details summaryタイトル */
details summary {
  cursor: pointer;
  display: inline-flex; /* アイコンとテキストをまとめる */
  align-items: center;
  gap: 0.5em;
  padding: 0.3em 1em;
  background: var(--content-bg-color);
  border: solid 1px;
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

details summary::before {
  content: "\1F449"; /* コードでアイコンを指定 */
}

details[open] > summary::before {
  content: "\1F447"; /* 開いたときのアイコン変更 */
}

details summary::after {
  content: "\FF08クリックすると開く\FF09"; /* U+FF08 (全角開き括弧) - U+FF09 (全角閉じ括弧) */
  font-size: 0.9em;
  /*color: #666;
  margin-left: 0.5em;*/
}

details[open] summary::after {
  content: ""; /* 開いた状態では表示しない */
}

/*
--------------------------------------------------------------------------
 ダークモード関連 CSS（完全統合・機能別整理・html.dark-mode対応済）
--------------------------------------------------------------------------
*/

/*--------------------------------------------------
 1. 基本配色（ライトモード & prefers-color-scheme）
--------------------------------------------------*/

body,
#content.hfeed {
    background-color: #fff;
    color: #555555;
}

@media (prefers-color-scheme: dark) {
    body,
    #content.hfeed {
        background-color: #22262A;
        color: #c6ccd2;
    }
}

/*--------------------------------------------------
 2. 手動切替ダークモード（.dark-mode クラス）
--------------------------------------------------*/

html.dark-mode body,
body.dark-mode,
html.dark-mode body #content,
body.dark-mode #content,
html.dark-mode body #content.hfeed,
body.dark-mode #content.hfeed {
    background-color: #22262A !important;
    color: #f2f2f2 !important;
}

html.dark-mode body,
body.dark-mode {
    background-color: #22262A;
    color: #c6ccd2;
}

html.dark-mode body h1,
body.dark-mode h1,
html.dark-mode body h2,
body.dark-mode h2,
html.dark-mode body h3,
body.dark-mode h3,
html.dark-mode body h4,
body.dark-mode h4,
html.dark-mode body h5,
body.dark-mode h5,
html.dark-mode body h6,
body.dark-mode h6,
html.dark-mode body .sidebar-module h3,
body.dark-mode .sidebar-module h3,
html.dark-mode body .hatena-module-title,
body.dark-mode .hatena-module-title,
html.dark-mode body .hatena-module-category-with-count a,
body.dark-mode .hatena-module-category-with-count a,
html.dark-mode body #custom-category-widget a,
body.dark-mode #custom-category-widget a {
    color: #c6ccd2;
}

/* ダークモード */
html.dark-mode body code,
body.dark-mode code {
    color: #dba5c0; /* ダークモードでの色を設定 */
}

/*--------------------------------------------------
 3. カテゴリモジュール・ドロップダウン
--------------------------------------------------*/

html.dark-mode body .hatena-module-category-with-count .category-count,
body.dark-mode .hatena-module-category-with-count .category-count,
html.dark-mode body .hatena-module-category-with-count .sort-option,
body.dark-mode .hatena-module-category-with-count .sort-option,
html.dark-mode body .hatena-module-category-with-count .sort-option select,
body.dark-mode .hatena-module-category-with-count .sort-option select,
html.dark-mode body .hatena-module-category-with-count .sort-option select option,
body.dark-mode .hatena-module-category-with-count .sort-option select option {
    background-color: #22262A;
    color: #c6ccd2;
    border-color: #555;
}

html.dark-mode body .category-limit-dropdown,
body.dark-mode .category-limit-dropdown,
html.dark-mode body .sort-order-dropdown,
body.dark-mode .sort-order-dropdown,
html.dark-mode body .category-limit-dropdown option,
body.dark-mode .category-limit-dropdown option,
html.dark-mode body .sort-order-dropdown option,
body.dark-mode .sort-order-dropdown option {
    background-color: #22262A !important;
    color: #c6ccd2 !important;
    border-color: #555 !important;
}

/*--------------------------------------------------
 4. 入力フォーム（検索・テキスト）
--------------------------------------------------*/

html.dark-mode body input[type="text"],
body.dark-mode input[type="text"],
html.dark-mode body input[type="search"],
body.dark-mode input[type="search"],
html.dark-mode body textarea,
body.dark-mode textarea {
    color: #c6ccd2;
    background-color: #22262A;
    border-color: #555;
}

/* 検索バー */
html.dark-mode body .search-form .search-module-input,
body.dark-mode .search-form .search-module-input,
html.dark-mode body .search-result .search-result-input,
body.dark-mode .search-result .search-result-input {
    border: 1px solid #ffffff;
    background-color: #2d2d2d;
    color: #ffffff;
    box-shadow: none;
}

/* 検索ボタン */
html.dark-mode body .search-form .search-module-button,
body.dark-mode .search-form .search-module-button,
html.dark-mode body .search-result-form .search-result-button,
body.dark-mode .search-result-form .search-result-button {
    background-color: transparent;
    background-image: url(https://cdn.blog.st-hatena.com/images/theme/search.png);
    opacity: 1;
    filter: invert(1);
}

/*--------------------------------------------------
 5. リンク・ホバー・装飾要素
--------------------------------------------------*/

html.dark-mode body a,
body.dark-mode a {
    color: #c6ccd2;
}

html.dark-mode body .hatena-module-category .hatena-urllist li a:hover,
body.dark-mode .hatena-module-category .hatena-urllist li a:hover,
html.dark-mode body #custom-category-widget a:hover,
body.dark-mode #custom-category-widget a:hover,
html.dark-mode body a:hover,
body.dark-mode a:hover {
    color: #eee;
    background-color: #3b3b3b;
}

html.dark-mode .entry-content a,
body.dark-mode .entry-content a,
html.dark-mode .comment-content a,
body.dark-mode .comment-content a {
    color: var(--secondary-color) ; /* ダークモードでのリンク色  */
    /* text-decoration は、もしダークモードでもアンダーラインを消したいなら none を維持。
       表示したいなら default に戻すか、underline を指定。
       text-decoration: none; */
}
/*--------------------------------------------------
 6. レイアウト装飾・罫線
--------------------------------------------------*/

html.dark-mode body .main-navigation,
body.dark-mode .main-navigation {
    border-bottom: 1px solid #22262A;
}

html.dark-mode body #content-inner,
body.dark-mode #content-inner,
html.dark-mode body #box2-inner,
body.dark-mode #box2-inner {
    border-left: 1px solid #22262A;
    border-right: 1px solid #22262A;
}

html.dark-mode body .l-border,
body.dark-mode .l-border {
    background-color: #2d2d2d !important;
    border-color: #fff !important;
}

html.dark-mode body .show-area,
body.dark-mode .show-area,
html.dark-mode body .hidden_box label,
body.dark-mode .hidden_box label {
    background-color: #646464 !important;
}

html.dark-mode body .toc-highlight,
body.dark-mode .toc-highlight {
    color: var(--code-color) !important;
}


/* ダークモード：背景・文字色・ボーダー */
html.dark-mode div[style*="background: #f5f5f5"],
body.dark-mode div[style*="background: #f5f5f5"] {
  background-color: #2a2a2a !important;
  color: #ddd !important;
  border: 1px solid #555 !important;
}

/* ダークモード：表背景色 */
html.dark-mode .entry-content table,
html.dark-mode .entry-content table td,
body.dark-mode .entry-content table,
body.dark-mode .entry-content table td {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}

/*--------------------------------------------------
 7. 画像・iframe
--------------------------------------------------*/

html.dark-mode body img,
body.dark-mode img,
html.dark-mode body iframe,
body.dark-mode iframe {
    filter: grayscale(25%) invert(0%);
}

/*--------------------------------------------------
 8. トグルスイッチ（三日月アイコン）
--------------------------------------------------*/

.main-navigation {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 10px;
}

.dark-mode-toggle {
    z-index: 10;
    margin-left: auto;
}

.dark-mode-toggle input[type="checkbox"] {
    display: none;
}

.dark-mode-toggle label i.fa-moon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    font-size: 1.5em;
    line-height: 1;
    text-align: center;
    color: #ffd700;
    overflow: hidden;
}

html.dark-mode body .dark-mode-toggle label i.fa-moon,
body.dark-mode .dark-mode-toggle label i.fa-moon {
    color: #4a90e2;
}

/*--------------------------------------------------
 9. チラつき対策（初期表示の色指定）
--------------------------------------------------*/

html.dark-mode body {
    background-color: #22262A;
    color: #c6ccd2;
}

/* ライトモード：常に優先させる */
body:not(.dark-mode),
body:not(.dark-mode) #content.hfeed {
    background-color: #fff !important;
    color: #555555 !important;
}

/* ダークモード：`.dark-mode` クラスがあるときのみ適用 */
body.dark-mode,
body.dark-mode #content,
body.dark-mode #content.hfeed {
    background-color: #22262A !important;
    color: #c6ccd2 !important;
}

/*--------------------------------------------------
 10. Amazon 商品ページ
--------------------------------------------------*/
/* ダークモード用の追加CSS */
html.dark-mode .amazon-widget-container,
body.dark-mode .amazon-widget-container {
  background-color: #2a2a2a !important;
  border: none;
}

html.dark-mode .amazon-widget,
body.dark-mode .amazon-widget {
  background-color: #fff !important;
}

html.dark-mode .amazon-widget-info,
body.dark-mode .amazon-widget-info {
  color: #3d4245 !important;
}

html.dark-mode .amazon-widget-link,
html.dark-mode .amazon-widget-link a,
body.dark-mode .amazon-widget-link,
body.dark-mode .amazon-widget-link a {
  color: #ff8c00 !important;
}

/*--------------------------------------------------
 11. chatGPT svg ロゴ
--------------------------------------------------*/
/* ダークモード時の色 */
html.dark-mode svg path {
    fill: #ffffff; /* 白色 */
}

/*--------------------------------------------------
 12. トップページカード型
--------------------------------------------------*/
/* 非常に詳細度を高くする試み */
/* ダークモード時に記事カードにボーダーと背景色を適用（スマホを除く） */
html.dark-mode body.page-archive #content-inner .archive-entries .archive-entry,
body.dark-mode.page-archive #content-inner .archive-entries .archive-entry {
    /* 画面幅が480pxより大きい場合にのみ適用 */
    @media (min-width: 481px) { /* ← このメディアクエリを追加 */
        border: 1px solid !important; /* 既存のボーダー設定 */
        background-color: #2b3035 !important; /* 背景色設定 */
    }
}

/* prefers-color-scheme にも対応させる場合 */
@media (prefers-color-scheme: dark) and (min-width: 481px) { /* ← こちらにも min-width を追加 */
    .page-archive .archive-entries .archive-entry {
        border: 1px solid !important; /* 既存のボーダー設定 */
        background-color: #2b3035 !important; /* 背景色設定 */
    }
}

/*--------------------------------------------------
 13. 引用 blockquote
--------------------------------------------------*/
/* 共通の引用スタイル（ベース） */
.entry-content blockquote {
  background: transparent;
  border: none;
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  margin: 1em 0;
  color: #555;
  font-style: italic;
}
/* 装飾アイコン非表示 */
.entry-content blockquote::before,
.entry-content blockquote::after {
  content: none !important;
  display: none !important;
}
.requote-button {
  display: none !important;
}

/* 手動切替ダークモード（.dark-mode クラス） */
html.dark-mode .entry-content blockquote,
body.dark-mode .entry-content blockquote {
  border-left: 4px solid #88c0d0 !important;
  color: #c6ccd2 !important;
}

/* OS設定によるダークモード（prefers-color-scheme） */
@media (prefers-color-scheme: dark) {
  .entry-content blockquote {
    border-left: 4px solid #88c0d0 !important;
    color: #c6ccd2 !important;
  }
}


/* prism.js設定 */
pre[class*="language-"],
code[class*="language-"] {
  font-size: 15px !important; /* ここでサイズを調整 */
}

/* =============================== */
/* コードブロックの基本設定       */
/* =============================== */
.entry-content pre.code {
		font-size: 15px;
    background: #2d2d2d; /* コードブロック全体の背景色 */
    color: #ccc;        /* コードの文字色 */
    margin: 1.5em 0;     /* 上下の余白 */
    padding: 1em;    /* 上下の内側余白と左右の微調整 */
    white-space: pre;    /* 改行と空白をそのまま表示 */
    overflow-x: auto;    /* 必要に応じて横スクロールバーを表示 */
    word-wrap: normal;   /* 単語の途中で改行しない */
    position: relative;  /* 言語名とコピーボタンのabsolute配置の基準 */
    padding-top: 10px !important; /* 言語名表示のための上部余白を確保 */
}

/* =============================== */
/* Mermaid用*/
/* =============================== */

.entry-content pre.code.mermaid {
  background: none;
  border: none;
  padding: 0;
}
.entry-content pre.code.mermaid[data-lang="mermaid"]:before {
    content: none;
}

html.dark-mode body svg path,
body.dark-mode svg path,
html.dark-mode body svg line,
body.dark-mode svg line,
html.dark-mode body svg polyline,
body.dark-mode svg polyline {
  stroke: #cccccc !important;
  stroke-width: 1.5 !important;
  opacity: 1 !important;
}

/* ダークモード用：mermaid の各種テキストに白を適用 */
/* body.dark-mode svg text,
html.dark-mode body svg text.pieTitleText,*/
body.dark-mode svg text.pieTitleText,
html.dark-mode body svg text.messageText,
body.dark-mode svg text.messageText,
html.dark-mode body svg text.label,
body.dark-mode svg text.label,
html.dark-mode body svg text.titleText,
body.dark-mode svg text.titleText,
html.dark-mode body svg text.sectionTitle,
body.dark-mode svg text.sectionTitle {
  fill: #c6ccd2 !important;
}

/* ---------------------------------------------------- */
/* 記事一覧のレイアウト変更 (グリッドレイアウトで画像左、情報右) */
/* PC表示用 (画面幅768px以上で適用) */
/* ---------------------------------------------------- */

@media screen and (min-width: 768px) {
  /* トップページの記事間隔を狭くする */
  .entry,
  .page-archive .archive-entry {
    margin-bottom: 12px;
    padding-bottom: 0px;
  }

  /* 各記事エントリのコンテナをGridにする */
  /* F12で確認された実際のコンテナクラス: section.archive-entry */
  .archive-entry {
    display: grid !important;
    /* 2列定義: 最初の列は画像用(固定幅), 2番目の列はテキスト用(残りの幅) */
    grid-template-columns: 300px 1fr !important;
    /* ☆変更点☆ 5行定義: タイトル, 説明, 投稿日, カテゴリ, スターマークの順 */
    grid-template-rows: auto auto auto auto auto !important;
    /* 列と行の間にスペースを追加 */
    gap: 0px 20px;

    margin-bottom: 30px;
    padding: 0px 10px 0px 0px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;

    /* 変更点: グリッドアイテムを上部に揃え、不要な下部のスペースをなくす */
    align-items: start;
    /* 変更点: グリッドコンテナ自体の最小高さをコンテンツに合わせる（もしあれば） */
    min-height: 0;
  }

  /* archive-entry-header, entry-thumb-link, archive-entry-body のラッパー要素を */
  /* Gridのレイアウトから除外し、その子要素を直接Gridアイテムにする */
  /* これにより、子要素（タイトル、画像、説明など）を直接グリッド内で配置できます */
  .archive-entry-header,
  .entry-thumb-link,
  .archive-entry-body {
    display: contents !important;
    margin: 0;
    padding: 0;
  }

  /* 記事のサムネイルを配置 */
  /* 実際のサムネイル要素: div.entry-thumb */
  .archive-entry .entry-thumb {
    grid-column: 1 !important;
    grid-row: 1 / span 6 !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
    /* 元のテーマの余白などをリセット */
    margin: 0;
    padding: 0;
    /* サムネイルがbackground-imageで適用されている場合の設定 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }
  /* もし画像タグimgがあれば */
  .archive-entry .entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* タイトルを配置 */
  /* 実際のタイトル要素: h1.entry-title */
  .archive-entry .entry-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 20px;
    line-height: 1.4;
  }
  /* タイトルリンクの色（必要であれば） */
  /* .archive-entry .entry-title .entry-title-link {
    color: #333;
/* text-decoration: none;
/* }*/
  .archive-entry .entry-title .entry-title-link:hover {
    color: var(--primary-color);
    /* text-decoration: underline; */
  }

  /* 説明（entry-description）を配置 */
  /* 実際の説明要素: p.entry-description */
  .archive-entry .entry-description {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 投稿日を配置 */
  /* 実際の投稿日要素: div.date.archive-date */
  .archive-entry .date.archive-date {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
    color: #999;
  }

  /* カテゴリを配置 */
  /* 実際のカテゴリ要素: div.archive-entry-tags */
  .archive-entry .archive-entry-tags {
    grid-column: 2 !important;
    grid-row: 4 !important;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
  }
  /* カテゴリリンクのスタイル（必要であれば） */
  .archive-entry .archive-entry-tags a {
    color: var(--primary-color);
    text-decoration: none;
  }
  .archive-entry .archive-entry-tags a:hover {
    text-decoration: underline;
  }

  /* スターマークを配置 */
  /* 実際の要素: span.social-buttons */
  .archive-entry .social-buttons {
    grid-column: 2 !important;
    grid-row: 5 !important;
    margin-top: 0;
    margin-bottom: 10px;
    /* 必要に応じてパディングやアライメントを調整 */
  }
}

/* ---------------------------------------------------- */
/* スマートフォン表示 (画面幅767px以下) - 最終修正版 */
/* HTML構造を考慮し、タイトル, 日付, カテゴリの順に表示 */
/* ---------------------------------------------------- */
@media screen and (max-width: 767px) {
  /* 各記事エントリのコンテナをGridにする */
  .archive-entry {
    display: grid !important;
    /* 2列定義: 最初の列は画像用(固定幅), 2番目の列はテキスト用(残りの幅) */
    grid-template-columns: 100px 1fr !important;
    /* 表示したい要素（タイトル、日付、カテゴリ）に合わせて行を再定義 */
    /* HTMLの順序: 日付, タイトル, カテゴリ, (説明, スターマーク) */
    /* 表示順序: タイトル, 日付, カテゴリ にするため、グリッド行を調整 */
    grid-template-rows: auto auto auto auto !important;
    /* 列と行の間にスペースを追加 */
    gap: 0px 10px !important;

    /* カード全体のスタイル調整 */
    padding: 0px 10px 0px 0px !important;
    margin-bottom: 15px !important;
    border: 1px solid #eee;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    align-items: start;
    min-height: 0;
  }

  /* archive-entry-header, entry-thumb-link, archive-entry-body のラッパー要素 */
  /* これらはグリッドコンテナの直接の子ではないため、display: contents を適用し、
     その子要素を直接グリッドアイテムとして扱わせる */
  .archive-entry-header,
  .entry-thumb-link,
  .archive-entry-body {
    display: contents !important;
    margin: 0;
    padding: 0;
  }

  /* 記事のサムネイルを配置 */
  /* サムネイルが右側のコンテンツ全体をカバーするように grid-row を指定 */
  .archive-entry .entry-thumb {
    grid-column: 1 !important;
    grid-row: 1 / span 4 !important;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
  }
  .archive-entry .entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* タイトルを配置 - HTML上の順序に関わらず1行目に配置 */
  .archive-entry .entry-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-top: 5px;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.3;
  }
  .archive-entry .entry-title .entry-title-link {
    color: #333;
    text-decoration: none;
  }
  .archive-entry .entry-title .entry-title-link:hover {
    color: #333;
    text-decoration: underline;
  }

  /* 投稿日を配置 - タイトルに続く2行目に配置 */
  .archive-entry .date.archive-date {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin-top: 3px;
    margin-bottom: 0;
    font-size: 10px;
    color: #999;
  }

  /* カテゴリを配置 - 日付に続く3行目に配置 */
  .archive-entry .categories {
    grid-column: 2 !important;
    grid-row: 3 !important;
    margin-top: 3px;
    margin-bottom: 0;
    font-size: 10px;
  }
  .archive-entry .categories a {
    color: #333;
    text-decoration: none;
  }
  .archive-entry .categories a:hover {
    text-decoration: underline;
  }

  /* 説明（entry-description）を非表示にする */
  .archive-entry .entry-description {
    display: none !important;
  }

  /* スターマーク（social-buttons）を非表示にする */
  .archive-entry .social-buttons {
    display: none !important;
  }

  /* HTML内に存在するが、表示を制御しない他のカテゴリ要素があれば非表示に */
  .archive-entry .archive-entry-tags-wrapper,
  .archive-entry .archive-entry-tags {
    display: none !important;
  }
}

.entry-thumb img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
