/* <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> */

/* ヒーローの枠（本文幅内に収める） */
.hero-wrap{
  max-width: 1000px;      /* 好きな本文幅に調整 */
  margin: 0 auto 24px;
}

/* 幅100%で縮む・はみ出さない */
.hero-wrap picture,
.hero-img{
  display: block;
  width: 100%;
  height: auto;           /* 画像自体の比率をそのまま使う */
}

/* どの端末でも横スクロール保険 */
@media (max-width: 640px){
  html, body { overflow-x: hidden; }
  .hero-wrap, .hero-bg { padding: 0 16px; box-sizing: border-box; }
}


#top-editarea li a {
  text-decoration: none;     /* 下線なしのまま */
  color: inherit;            /* 本文と同じ色（あとで調整可） */
  font-weight: 500;          /* 普通より少し太め（600まで上げてもOK） */
  font-size: 1.05em;         /* 今よりほんの少し大きく */
  letter-spacing: 0.05em;    /* 文字間もほんのり広げると読みやすい */
}

/* トップの自由記入エリアを中央寄せ */
#top-editarea {
  text-align: center;
}

/* リスト本体を中央に配置する箱にして、丸ポチと文字は左揃え */
#top-editarea ul {
  display: inline-block;   /* 箱を中央に */
  margin: 1em auto 0;
  padding-left: 1.2em;     /* 丸ポチ用の余白を確保 */
  text-align: left;        /* 丸ポチと文字を左揃え */
  list-style-position: outside; /* デフォでOK。insideにすると詰まる */
}

/* リストアイテムの余白と行間 */
#top-editarea li {
  margin: 0.5em 0;
  line-height: 1.6;
}

/* リンクの見た目（任意） */
#top-editarea li a {
  text-decoration: none;  /* 下線を消したいとき */
  color: inherit;         /* 本文と同じ色に */
}



/* 記事の日付を消す */
.date {
display: none;
}

/* 記事下の投稿日・投稿ユーザー名・IDを非表示にする */
span.author.vcard {
display:none;
}
span.entry-footer-time {
display: none;
}

/* サイドバーを本文の下に移動して中央寄せ */
#box2, /* サイドバーの親要素（テーマによって違う場合あり） */
#sidebar {
  float: none !important;       /* 横並びを解除 */
  width: 100% !important;       /* 横幅いっぱい */
  max-width: 900px;             /* 本文と合わせる */
  margin: 2em auto 0 auto;      /* 上に余白を入れて中央 */
  text-align: center;           /* 中の項目を中央寄せ */
}

/* ▼ Works＝新着記事一覧：画像サムネだけ残す（強め版） */
#box2-inner .hatena-module-recent-entries .hatena-module-body > ul li {
  list-style: none;
}

/* 1) a の中の文字を根こそぎ不可視化（テキストノード対策） */
#box2-inner .hatena-module-recent-entries .hatena-module-body > ul li a {
  display: inline-block !important; /* 横幅いっぱいリンクを解除して画像サイズに */
  width: auto !important;
  font-size: 0 !important;          /* ← a 内の文字ノードを消す */
  line-height: 0 !important;
  color: transparent !important;     /* 万が一の文字色 */
}

/* 2) 画像は普通に表示 */
#box2-inner .hatena-module-recent-entries .hatena-module-body > ul li a img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 3) a 以外の兄弟（タイトル等）があれば隠す */
#box2-inner .hatena-module-recent-entries .hatena-module-body > ul li a ~ * {
  display: none !important;
}

/* 4) もし li 直下が div > a > img 構造なら、div 内の a 以外を消す */
#box2-inner .hatena-module-recent-entries .hatena-module-body > ul li > div > *:not(a) {
  display: none !important;
}

/* 5) グリッド並びにするなら（任意） */
#box2-inner .hatena-module-recent-entries .hatena-module-body > ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  justify-items: center;
}

/* 全体の文字色を#333に統一 */
body {
  color: #333333 !important;
}

/* ===== スマホ版 新着記事一覧を2列に ===== */
@media (max-width: 767px) {
  #box2-inner .hatena-module-recent-entries .hatena-module-body > ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列にする */
    gap: 12px; /* 画像の間にすき間 */
    justify-items: center; /* 各セルの中身を中央に */
  }

  /* サムネ画像を画面幅に応じて縮める */
  #box2-inner .hatena-module-recent-entries .hatena-module-body > ul li a img {
    width: 100%;
    height: auto;
    max-width: 160px; /* 画像サイズの上限（必要なら調整） */
  }
}




/* 次の行からは必要に応じて消したりなんだりすること！！SP調整用だけども不具合出るかも */

/* === SPだけの最小調整（640px以下）=== */
@media (max-width: 640px) {

  /* 赤枠の塊を中央に置いて、左右に少し余白 */
  #top-editarea {
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 説明文は行長を揃えて詰まり感をなくす */
  #top-editarea p {
    margin: 0 auto .6em;
    max-width: 36ch;   /* 30–40chで好み調整 */
    text-indent: 0 !important;
  }

  /* リストは箱ごと中央、中身は左揃え */
  #top-editarea ul {
    display: inline-block;
    margin: .8em auto 0;
    padding-left: 1.4em;      /* 丸ポチぶんの余白 */
    text-align: left;
    list-style-position: outside;
  }

  #top-editarea li {
    margin: .45em 0;
    line-height: 1.6;
  }
}

/* === さらに小幅（iPhone SE等）での左ズレ補正 === */
@media (max-width: 390px) {
  #top-editarea { padding-left: 20px; padding-right: 20px; }

  /* 丸ポチの“外側インデント”でズレるのを回避：自前の●に置き換え */
  #top-editarea ul { list-style: none; padding-left: 0; }
  #top-editarea li {
    position: relative;
    padding-left: 1.1em;      /* ●の幅 */
  }
  #top-editarea li::before {
    content: "•";
    position: absolute;
    left: 0; top: 0;
    line-height: 1.6;
  }
}

/* === SP幅の横はみ出しを止める（iPhone含む）=== */
@media (max-width: 768px) {

  /* 犯人 #box2 をまず矯正 */
  #box2 {
    width: 100% !important;
    max-width: 100% !important;   /* 100vw にしてもOK */
    box-sizing: border-box;       /* ← これが肝。paddingを内側計算に */
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }

  /* 中の箱も“内側計算＋幅100%”に寄せる（微オーバー対策） */
  #content, #content-inner, #main, #wrapper,
  #box2-inner, .hatena-module, .hatena-module-body,
  .entry, .entry-content {
    box-sizing: border-box;
    max-width: 100% !important;
  }

  /* 画像のはみ出し保険 */
  .entry-content img,
  #box2-inner img { max-width: 100% !important; height: auto; }

  /* Works のULは幅を持たせず中央に */
  #box2-inner .hatena-module-recent-entries .hatena-module-body > ul {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* 念のため、横スクロール自体も殺す */
  html, body { overflow-x: hidden; }
}



/* ===== 記事間の余白を詰める（このテーマ用） ===== */

/* 記事本体の外側余白を少なめに */
:is(.entry, .hentry) {
  margin-bottom: 1.0em !important;
}

/* 内側の箱が下に持っている余白をカットして、必要分だけパディングに */
.entry-inner {
  margin-bottom: 0 !important;     /* ← ここが効きます */
  padding-bottom: 1.0em !important;/* 線や次要素との間を少しだけ残す */
}

/* ヘッダー/フッターがさらに下に余白を足している場合の保険 */
.entry-header,
.entry-footer {
  margin-bottom: .6em !important;
}

/* スマホはもう少しだけ詰めたい場合（任意） */
@media (max-width: 640px) {
  :is(.entry, .hentry)      { margin-bottom: 1.0em !important; }
  .entry-inner             { padding-bottom: .8em !important; }
}

/* ===== 記事ブロック余白を最終調整 ===== */
.entry-inner {
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
}

/* === SP幅：サイドバー余白を詰める === */
@media (max-width: 767px) {
  aside#box2 {
    margin: 0 !important;
    padding: 0 16px !important;   /* 左右だけ16px残す */
    box-sizing: border-box;
  }
}

/* ===== フッター（サイドバー）内のモジュール間隔を詰める ===== */
#box2-inner .hatena-module {
  margin-bottom: 8px !important;  /* デフォ20px → 8px程度に */
}

/* 各モジュールのタイトル（Categoryとか）と中身も少し詰める */
#box2-inner .hatena-module-title {
  margin-bottom: 2px !important; /* デフォ20px → 5px */
}

/* ===== カテゴリー部分ののモジュール間隔を詰める ===== */
ul.hatena-urllist {
  line-height: 1.5;      /* 行間をやや詰める */
  margin: 0.6em 0;       /* 上下の余白を軽く調整 */
}

ul.hatena-urllist li {
  margin-bottom: 0.3em;  /* 項目同士の空きを少しだけ減らす */
}


/* ===== リンクモジュール内のモジュール間隔を詰める ===== */
/* ▼リンクモジュール（.hatena-module-links）の中だけ徹底的に詰める */
aside#box2 .hatena-module.hatena-module-links .hatena-module-body {
  margin: 0 !important;
  padding: 0 !important;
}

/* UL自体の下余白を消す（テーマで20px入ってることが多い） */
aside#box2 .hatena-module.hatena-module-links .hatena-module-body ul.hatena-urllist {
  margin: 0 !important;              /* ← ここを0に */
  padding: 0 !important;
}

/* 各LIの間隔は少しだけ（必要なら数値調整） */
aside#box2 .hatena-module.hatena-module-links .hatena-module-body ul.hatena-urllist > li {
  margin: 0 0 10px 0 !important;      /* 行間っぽい余白 */
}

/* 最後のLIの下だけは完全にゼロ（下の空きを潰す本命） */
aside#box2 .hatena-module.hatena-module-links .hatena-module-body ul.hatena-urllist > li:last-child {
  margin-bottom: 0 !important;
}

/* ===== TOPへ戻るボタンのCSS ===== */
html { scroll-behavior: smooth; }  /* なめらかスクロール */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.65);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  z-index: 9999;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}

.back-to-top svg { fill: currentColor; }

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover { filter: brightness(1.05); }
.back-to-top:focus-visible { outline: 2px solid #7bb3ff; outline-offset: 2px; }

/* SPは少し大きめ＆余白広め */
@media (max-width: 600px) {
  .back-to-top { right: 14px; bottom: 20px; width: 48px; height: 48px; }
}

/* モーション弱め派にも配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .back-to-top { transition: none; }
}
