/* <system section="theme" selected="6653586347155924442"> */
@charset "utf-8";
/*
  Theme: Brooklyn
  Author: Shiroma Takumi
  
  Responsive: yes
  Licensed under the MIT license.
*/
/*  import normalize */
/*! normalize.css v3.0.1 | 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%;
  -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,
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: 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"],
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;
}
/*  import mixin */
.clearfix {
  display: block;
  *zoom: 1;
}
.clearfix:after {
  display: block;
  visibility: hidden;
  font-size: 0;
  height: 0;
  clear: both;
  content: ".";
}
.inline-block {
  display: inline-block;
  *display: inline;
  *zoom: 1;
}
.ellipsis {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
/*  import variable */
/* Common */
html,
body {
  font-family: 'Open Sans','Helvetica Neue', 'Helvetica', 'Arial', 'Hiragino Kaku Gothic Pro', 'Meiryo', 'MS PGothic', sans-serif;
  color: #111;
  background-color: #ffffff;
}
a {
  color: #395b74;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
a:visited {
  color: #395b74;
}
a:hover {
  color: #aaa;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a,
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover,
h1 a:visited,
h2 a:visited,
h3 a:visited,
h4 a:visited,
h5 a:visited,
h6 a:visited {
  color: #111;
  text-decoration: none;
}
a.keyword {
  text-decoration: none;
  border-bottom: 1px dotted #dddddd;
  color: #454545;
}
/* Buttons */
.btn {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  padding: 4px 10px 4px;
  margin-bottom: 0;
  line-height: 18px;
  color: #454545;
  background-color: #ffffff;
  text-align: center;
  vertical-align: middle;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-radius: 2px;
  background-clip: padding-box;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}
.btn:hover {
  background-color: #f5f5f5;
  text-decoration: none !important;
}
.btn-small {
  padding: 2px 10px !important;
  font-size: 11px !important;
}
.btn-large {
  padding: 13px 19px;
  font-size: 17px;
  line-height: normal;
  font-weight: bold;
}
/* ヘッダ（グローバルヘッダ）
  グローバルヘッダの中はiframeですが、
  #globalheader-container に背景色や文字色を指定することでirameの中にも色が反映されます。
*/
#globalheader-container {
  background-color: #fff;
  color: #111;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 2px solid #111;
  opacity: 0.9;
}
/* container */
#container {
  width: 100%;
  margin-bottom: 30px;
  padding-top: 37px;
}
#container #content {
  width: 1100px;
  margin: 20px auto;
  display: block;
  *zoom: 1;
}
#container #content:after {
  display: block;
  visibility: hidden;
  font-size: 0;
  height: 0;
  clear: both;
  content: ".";
}
.globalheader-off #container {
  padding-top: 0;
}
/* 2カラムレイアウト */
#main {
  width: 760px;
  padding-right: 30px;
  border-right: 1px solid #f0f0f0;
  float: left;
}
#box2 {
  width: 280px;
  float: right;
}

/* header */
#blog-title {
  width: 100%;
  padding: 40px 0;
  border-bottom: 2px solid #111;
}
#blog-title-inner {
  width: 1100px;
  margin-left: auto;
  margin-right: auto;

}

#title {
  margin: 0;
}
#title a {
  font-size: 150%;
  font-weight: bold;
  color: #111;
}
#blog-description {
  max-width: 500px;
  font-weight: normal;
  font-size: 80%;
  margin: 5px 0 0 0;
}
/* ヘッダ画像を設定したとき */
.header-image-enable #title {
  padding-top: 50px;
}
.header-image-enable #title,
.header-image-enable #blog-description {
  padding-left: 20px;
}
.header-image-enable #blog-title {
  padding: 0;
}
.header-image-enable #blog-title-inner {
  padding: 40px auto;
}

/* パンくず（カテゴリーページで表示されます） */
#top-box {
  margin: 10px auto 20px;
  padding: 4px 0;
  font-size: 90%;
  border-bottom: 1px solid #dddddd;
}
#top-box .breadcrumb {
  width: 1100px;
  margin: 0 auto;
}
/* entry */
.entry {
  position: relative;
  margin-bottom: 100px;
}
.entry-header {
  padding: 0 0 10px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  position: relative;
}
.entry-title {
  margin: 0;
  padding-left: 20px;
  line-height: 1.3;
  font-size: 160%;
}
/* 日付 */
.date {
  font-weight: bold;
  margin-bottom: 16px;
}
.date a {
  color: #f0f0f0;
  background-color: #111;
  padding: 2px 6px;
  text-decoration: none;
  font-size: 90%;
}
/* カテゴリ */
.categories {
  margin: 16px 0;
  font-size: 80%;
}
.categories a {
  display: inline-block;
  padding: 2px 4px;
  margin-bottom: 4px;
  color: #111;
  background-color: #f0f0f0;
  text-decoration: none;
}
.categories.no-categories {
  margin: 0;
}
/* 「編集する」ボタン */
.entry-header-menu {
  position: absolute;
  top: 0px;
  left: 120px;
}
.entry-header-menu a {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  padding: 4px 10px 4px;
  margin-bottom: 0;
  line-height: 18px;
  color: #454545;
  background-color: #ffffff;
  text-align: center;
  vertical-align: middle;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-radius: 2px;
  background-clip: padding-box;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}
.entry-header-menu a:hover {
  background-color: #f5f5f5;
  text-decoration: none !important;
}
/* entry-content の中の書式 */
.entry-content {
  font-size: 100%;
  line-height: 1.7;
  padding-bottom: 10px;
  border-bottom: 1px solid #dddddd;
}
.entry-content p {
  margin: 0 0 1em 0;
}
.entry-content img {
  max-width: 100%;
  box-shadow: 0 0;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.entry-content img:hover {
  box-shadow: 0 4px 8px 2px rgba(0, 0, 0, 0.2);
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1.3em 0 0.8em 0;
  line-height: 1.5;
}
.entry-content h1 {
  font-size: 160%;
}
.entry-content h2 {
  position: relative;
  padding: 6px 0 6px 10px;
  font-size: 150%;
  background-color: #111;
  color: #fff;
}
.entry-content h2:before{
  content: " ";
  position: absolute;
  top: 100%;
  left: 38px;
  width: 0;
  height: 0;
  border-width: 12px;
  border-style: solid;
  border-color: transparent;
  border-top-color: #111;
}
.entry-content h2 a.keyword {
  text-decoration: none;
  border-bottom: 1px dotted #dddddd;
  color: #fff;
}
.entry-content h3 {
  position: relative;
  font-size: 145%;
  padding: 6px 10px;
  color: #111;
  background-color: #eee;
  border-left: 12px solid #111;
}
.entry-content h3:before{
  content: " ";
  position: absolute;
  top: 100%;
  left: 28px;
  width: 0;
  height: 0;
  border-width: 12px;
  border-style: solid;
  border-color: transparent;
  border-top-color: #eee;
}
.entry-content h4 {
  font-size: 135%;
  padding-left: 10px;
  border-left: 6px solid #111;
  border-bottom: 2px solid #111;
}
.entry-content h5 {
  font-size: 120%;
  padding-left: 6px;
  border-left: 4px solid #111;
}
.entry-content h6 {
  font-size: 100%;
}
.entry-content table {
  border-collapse: collapse;
  border-spacing: 0;
  margin-bottom: 1em;
}
.entry-content table img {
  max-width: none;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid #ddd;
  padding: 5px 10px;
}
.entry-content table th {
  background: #f5f5f5;
}
.entry-content blockquote {
  border: 1px solid #dddddd;
  margin: 0 0 10px;
  padding: 20px;
}
.entry-content blockquote p {
  margin-top: 0;
  margin-bottom: 0;
}
.entry-content pre {
  border: 1px solid #dddddd;
  margin: 0 0 10px;
  padding: 20px;
  white-space: pre;
}
.entry-content pre > code {
  margin: 0;
  padding: 0;
  white-space: pre;
  border: 0;
  background: transparent;
  font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}
.entry-content code {
  font-size: 90%;
  margin: 0 2px;
  padding: 0 5px;
  border: 1px solid #eaeaea;
  background-color: #f8f8f8;
  border-radius: 3px;
  font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}
.entry-content .hatena-asin-detail li {
  line-height: 1.4;
}
/* entry-footer */
.entry-footer {
  margin-top: 10px;
}
.entry-footer-section {
  font-size: 80%;
  color: #999999;
}
.entry-footer-section a {
  color: #999999;
}
.social-buttons,
.entry-footer-html {
  margin: 10px 0;
}
/* 続きを読む */
.entry-see-more {
  padding: 4px 8px;
  background-color: #111;
  border: 2px solid #111;
  text-decoration: none;
  color: #fff;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
.entry-see-more:visited {
  padding: 4px 8px;
  border: 2px solid #111;
  text-decoration: none;
  color: #fff;
}
.entry-see-more:hover {
  padding: 4px 8px;
  background-color: #fff;
  border: 2px solid #111;
  text-decoration: none;
  color: #111;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
/* 目次 */
.table-of-contents {
  border: 1px dotted #f0f0f0;
  background-color: #f0f0f0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding: 10px 14px 10px 40px;
  border: 1px dashed #111;
}
.table-of-contents ul {
  padding-left: 26px;
}

/* コメント */
.comment-box ul {
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
  font-size: 95%;
  line-height: 1.7;
}
.comment-box li {
  padding: 10px 0 10px 60px;
  border-bottom: 1px solid #dddddd;
  position: relative;
}
.comment-box li:first-child {
  border-top: 1px solid #dddddd;
}
.comment-box .read-more-comments {
  padding-left: 0;
}
.comment-box .hatena-id-icon {
  position: absolute;
  top: 10px;
  left: 0;
  width: 50px !important;
  height: 50px !important;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-radius: 3px;
  background-clip: padding-box;
}
.comment-user-name {
  margin: 0 0 10px 0;
  font-weight: bold;
}
.comment-content {
  font-size: 90%;
  margin: 0 0 10px 0;
  word-wrap: break-word;
}
.comment-content p {
  margin: 0 0 10px 0;
}
.comment-metadata {
  font-size: 80%;
  color: #999999;
  margin: 0;
}
.comment-metadata a {
  color: #999999;
}
.leave-comment-title {
  display: inline-block;
  *display: inline;
  *zoom: 1;
  padding: 4px 10px 4px;
  margin-bottom: 0;
  line-height: 18px;
  color: #454545;
  background-color: #ffffff;
  text-align: center;
  vertical-align: middle;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-radius: 2px;
  background-clip: padding-box;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid rgba(0, 0, 0, 0.2);
  text-decoration: none !important;
}
.leave-comment-title:hover {
  background-color: #f5f5f5;
  text-decoration: none !important;
}
/* sidebar */
#box2 {
  font-size: 85%;
  line-height: 1.5;
}
.hatena-module {
  margin-bottom: 60px;
}
.hatena-module-title {
  position: relative;
  text-align: center;
  background-color: #fff;
  color: #111;
  font-weight: bold;
  margin-bottom: 15px;
  padding: 6px;
  border: 2px solid #111;
  font-size: 120%;
}
.hatena-module-title:before{
  content: " ";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -12px;
  width: 0;
  height: 0;
  border-width: 12px;
  border-style: solid;
  border-color: transparent;
  border-top-color: #111;
}
.hatena-module-title:after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -9px;
    width: 0;
    height: 0;
    border-width: 9px;
    border-style: solid;
    border-color: transparent;
    border-top-color: #fff;
    z-index:1;
}
.hatena-module-title a {
  color: #111;
  text-decoration: none;
}
.hatena-module-title a:hover {
  text-decoration: underline;
}
/* Profile module */
.hatena-module-profile .profile-icon {
  float: left;
  margin: 0 10px 10px 0;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-radius: 5px;
  background-clip: padding-box;
}
.hatena-module-profile .id {
  display: block;
  font-weight: bold;
  font-size: 110%;
  margin-bottom: 5px;
}
.hatena-module-profile .profile-description {
  font-size: 90%;
}
.hatena-module-profile .profile-description p {
  margin-top: 0;
}
/* urllist module
    リンク・最新記事・最近のコメント・月別アーカイブ・カテゴリモジュールは .hatena-urllist という共通の class が振られます
*/
.hatena-urllist {
  list-style: none;
  margin: 0 0 0 0;
  padding: 0 0 0 0;
}
.hatena-urllist li {
  padding: 8px 0;
  border-bottom: 1px solid #dddddd;
  line-height: 1.5;
}
.hatena-urllist li a {
  text-decoration: none;
}
/* Category */
.hatena-module-category .hatena-urllist {
  padding-top: 10px;
  display: table;
  width: 100%;
}
.hatena-module-category .hatena-urllist li {
  display: table-cell;
  padding: 6px 8px;
  margin-bottom: 8px;
  margin-right: 8px;
  border: 1px dashed #999;
  float: left;
}
/* Search module */
.hatena-module-search-box .search-form {
  border: 1px solid #dddddd;
  border-top-right-radius: 3px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-radius: 3px;
  background-clip: padding-box;
  width: 100%;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
}
.hatena-module-search-box .search-module-input {
  padding: 5px;
  color: #454545;
  background: none;
  border: none;
  outline: none;
  height: 20px;
  width: 90%;
}
.hatena-module-search-box .search-module-button {
  width: 20px;
  height: 20px;
  background: transparent url(https://cdn.blog.st-hatena.com/images/theme/search.png) no-repeat right center;
  border: none;
  outline: none;
  text-indent: -9999px;
  position: absolute;
  top: 5px;
  right: 5px;
  opacity: 0.5;
}
.hatena-module-search-box .search-module-button:hover {
  opacity: 0.85;
}
/* Pager */
.pager {
  margin: 1em 0;
  display: block;
  *zoom: 1;
}
.pager:after {
  display: block;
  visibility: hidden;
  font-size: 0;
  height: 0;
  clear: both;
  content: ".";
}
.pager .pager-prev {
  float: left;
  text-align: left;
  width: 45%;
}
.pager .pager-next {
  float: right;
  text-align: right;
  width: 45%;
}
/* Footer */
#footer {
  padding: 30px 0;
  text-align: center;
  background-color: #111;
  color: #fff;
  line-height: 1.5;
  font-size: 80%;
}
#footer p {
  margin: 0;
}
#footer a {
  color: #fff;
  text-decoration: none;
}
/* About ページ */
.page-about dt {
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #dfdfdf;
  margin-bottom: 5px;
}
.page-about dd {
  margin-left: 0;
  margin-bottom: 30px;
}
/* archive ページ */
.page-archive .archive-entries .archive-entry {
  margin-bottom: 3em;
}
.page-archive .archive-entries .entry-title {
  font-size: 130%;
  margin: 0 0 .5em;
}
.page-archive .archive-entries .categories {
  margin: 0 0 .5em;
}
.page-archive .archive-entries .entry-description {
  margin: 0 0 1em;
  line-height: 1.7em;
  font-size: 95%;
}
.page-archive .categories a {
  color: #fff;
  font-size: 70%;
  background: #aaa;
  padding: 3px 5px;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  *display: inline;
  *zoom: 1;
  margin-right: 2px;
}


/*  import media queries */
/* Media Queries - Retina Display */
@media (-webkit-min-device-pixel-ratio: 2) {
  .hatena-module-search-box .search-module-button {
    background: transparent url(https://cdn.blog.st-hatena.com/images/theme/search@2x.png) no-repeat right center;
    background-size: 20px 20px;
  }
}
/* Media Queries - Tablet */
@media (min-width: 920px) and (max-width: 1150px) {
  #container #content {
    width: 1020px;
  }
  #main {
    width: 680px;
  }
  #blog-title-inner {
    width: 1020px;
    margin-left: auto;
    margin-right: auto;
  }
  /* パンくず */
  #top-box .breadcrumb {
    width: 1020px;
    margin: 0 auto;
  }
}
/* Media Queries - Small Tablet & Smartphone */
@media (max-width: 919px) {
  #globalheader-container {
    position: absolute;
    top: 0;
    opacity: 1;
  }
  #container #content {
    width: 93.75%;
    word-wrap: break-word;
    overflow: hidden;
  }
  #title {
    font-size: 140%;
  }
  #blog-description {
    font-weight: normal;
    font-size: 70%;
    margin: 3px 0 0 0;
  }
  #blog-title-inner {
    width: 93.75%;
    margin-left: auto;
    margin-right: auto;
  }
  .header-image-enable #blog-title-inner {
    width: 100%;
  }
  .header-image-enable #blog-title-content {
    width: 93.75%;
    margin-left: auto;
    margin-right: auto;
  }
  #main {
    width: 100%;
    padding-right: 0;
    float: none;
    border-right: none;
  }
  #box2 {
    width: 100%;
    float: none;
  }
  #box2-inner {
    width: 100%;
  }
  .hatena-module {
    width: 100%;
    float: none;
  }
  .entry-header-menu {
    top: -30px;
    left: 0px;
  }
  /* パンくず（カテゴリーページで表示されます） */
  #top-box .breadcrumb {
    width: 93.75%;
  }
}
/* Media Queries - Smartphone */
@media (max-width: 480px) {
  #title {
    font-size: 120%;
  }
  #blog-title {
    padding: 20px 0;
  }
  .entry-content img:hover {
  box-shadow: 0 0;
  }
}

/* global-menu用CSS */
#global-menu {
  width: 100%;
  background-color: #111;
  margin-bottom: 30px;
  border-bottom: 2px solid #111;
}
.global-menu-list {
  display: table;
  list-style-type: none;
  width: 1100px;
  margin: 0 auto;
  -webkit-padding-start: 0;
  padding: 0;
}
.global-menu-list li {
  display: table-cell;
  text-align: center;
  width: 20%;
}
.global-menu-list li a {
  display: block;
  padding: 8px 0;
  line-height: 22px;
  text-decoration: none;
  font-size: 100%;
  background-color: #111;
  color: #fff;
  vertical-align: middle;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
.global-menu-list li a:hover {
  color: #111;
  background-color: #ddd;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
/* メニュー上部固定 */
#global-menu.fixed {
  position: fixed;
  top: 0;
  z-index: 100;
  -webkit-transition: top 0.3s;
          transition: top 0.3s;
}
/* toggle メニューのCSS　*/
#mobile-head {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  height: 36px;
  background-color: #111;
  z-index: 300;
}
#nav-toggle {
  position: fixed;
  right: 12px;
  top: 8px;
  width: 30px;
  height: 32px;
  cursor: pointer;
}
#nav-toggle div {
  position: relative;
}
#nav-toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #999;
  left: 0;
  -webkit-transition: 0.3s ease-in-out;
          transition: 0.3s ease-in-out;
}
#nav-toggle span:nth-child(1){
  top: 0;
}
#nav-toggle span:nth-child(2){
  top: 8px;
}
#nav-toggle span:nth-child(3){
  top: 16px;
}


@media (min-width: 920px) and (max-width: 1150px) {
  .global-menu-list {
    width: 1020px;
  }
}
@media (max-width: 919px){
  .global-menu-list {
    width: 93.75%;
  }
  .global-menu-list li a{
    font-size: 90%;
  }
}
/* グローバルナビをToggle に変更 */
@media (max-width: 680px){
  #blog-title {
    padding: 60px 0 34px 0;
  }
  #global-menu {
    position: fixed;
    z-index: 100;
    top: -500px;
    -webkit-transition: top 0.3s ease-in-out;
            transition: top 0.3s ease-in-out;
            opacity: 0.9;
  }
  #global-menu .global-menu-list,
  #global-menu .global-menu-list li{
    display: block;
    width: 100%;
  }
  #global-menu .global-menu-list li a {
    font-size: 100%;
    padding: 10px 0;
  }
  #global-menu.fixed {
    top: -500px;
    -webkit-transition: top 0.3s ease-in-out;
            transition: top 0.3s ease-in-out;
  }
  #mobile-head {
    display: block;
  }
  /* open */
  #global-menu.open {
    top: 36px;
    -webkit-transition: top 0.3s ease-in-out;
            transition: top 0.3s ease-in-out;
  }
  /* Toggle Button */
  #global-menu.open span:nth-child(1){
    top: 11px;
    -webkit-transform: rotate(315deg);
            transform: rotate(315deg);
  }
  #global-menu.open span:nth-child(2){
    width: 0;
    left: 50%;
  }
  #global-menu.open span:nth-child(3){
    top: 11px;
    -webkit-transform: rotate(-315deg);
            transform: rotate(-315deg);
  }
}

/* シェアボタン */
/* 共通設定 */
.share-button {
  margin: 20px 0 10px 0;
  width: 300px;
}
.share-inner a {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 55px;
  padding: 4px 0;
  line-height: 18px;
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  text-align: center;
  color: #111;
  text-decoration: none;
  vertical-align: bottom;
  border: 1px solid #ddd;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.share-inner a:hover {
  opacity: 0.6;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
.share-button i,
.share-button .lg {
  font-size: 24px;
}
.share-inner .hatena-bookmark-button .lg {
  font-size: 38px;
}
.share-inner .hatena-bookmark-button {
  padding-top: 1px;
  padding-bottom: 7px;
}
.share-inner .twitter-button {
  padding-top: 5px;
  padding-bottom: 3px;
}
.share-inner .facebook-button .lg  {
  font-size: 34px;
}
.share-inner .facebook-button .fa-facebook-square.lg {
  font-size: 31px;
  margin-top: -1px;
}
.share-inner .twitter-button .lg {
  font-size: 28px;
}
.share-button .small-text {
  font-size: 12px;
}
.share-button .fa-spin {
  font-size: 8px;
  color: #999;
}

/* color */
.share-inner .hatena-bookmark-button.color {
  color: #00A4DE;
  border: 1px solid #00A4DE;
}
.share-inner .facebook-button.color {
  color: #405BA7;
  border: 1px solid #405BA7;
}
.share-inner .twitter-button.color {
  color: #55ACEE;
  border: 1px solid #55ACEE;
}
.share-inner .googleplus-button.color {
  color: #C53727;
  border: 1px solid #C53727;
}
.share-inner .pocket-button.color {
  color: #EE4256;
  border: 1px solid #EE4256;
}

/* 読者登録ボタン */
.reader-button {
  margin: 16px 0;
}
.reader-button a{
  display: inline-block;
  width: 200px;
  height: 36px;
  border: 2px solid #111;
  text-decoration: none;
  background-color: #111;
  color: #fff;
  font-size: 100%;
  text-align: center;
  line-height: 36px;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
.reader-button a:hover {
  background-color: #fff;
  font-size: 110%;
  font-weight: bold;
  color: #111;
  -webkit-transition: all 0.4s;
          transition: all 0.4s;
}
/* カラーボタン */
.reader-button.color a {
  border-color: #b01c1c;
  background-color: #b01c1c;
  color: #fff;
}
.reader-button.color a:hover {
  background-color: #fff;
  color: #b01c1c;
}
/* グローバルナビのサブカテゴリー */
.global-menu-list.sub-list li {
    position: relative;
}
.global-menu-list.sub-list li:hover .sub-item {
    top: 100%;
    visibility: visible;
    -webkit-transition: .5s;
    transition: .5s;
    opacity: .9;
}
.global-menu-list.sub-list .sub-item {
    position: absolute;
    height: 0;
    margin-top: 0px;
    padding: 0;
    top: 60%;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0s;
    transition: 0s;
    z-index: 200;
}
.global-menu-list.sub-list .sub-item li {
    display: block;
    width: 100%;
}
@media (max-width: 680px){
    .global-menu-list.sub-list .sub-item {
        display: none;
    }
}
/* </system> */

/* <system section="background" selected="f5f5f5"> */
body{background:#f5f5f5;}
/* </system> */

/* =========================================================
   Photoshopの情報集 - クリーンデザイン
   カラーはすべて下の変数で管理。テーマを変える場合は
   :root 内をB案/C案の値に差し替えるだけでOK。
   ========================================================= */
:root {
  /* ▼ A. クリーンブルー（既定） */
  --c-bg:        #f5f8fa;
  --c-accent:    #2b90d9;
  --c-accent-dk: #1d6fb0;
  --c-accent-bg: #f2f8fd;  /* 見出し・hover背景 */
  --c-pill-bg:   #eaf4fb;  /* カテゴリラベル背景 */

  /* ▼ B. ミント（差し替え用）
  --c-bg:        #f4faf8;
  --c-accent:    #2bb5a0;
  --c-accent-dk: #1d8f7e;
  --c-accent-bg: #eefaf7;
  --c-pill-bg:   #e2f5f0;
  */

  /* ▼ C. ネイビーグレー（差し替え用）
  --c-bg:        #f7f8fa;
  --c-accent:    #3d5a80;
  --c-accent-dk: #2b4360;
  --c-accent-bg: #f1f4f8;
  --c-pill-bg:   #e8edf4;
  */

  /* 共通（v4/v6: 目に優しいオフホワイト背景＋読みやすいダークグレー文字） */
  --c-card:      #ffffff;
  --c-bg:        #f8f9fa;  /* オフホワイト（各テーマ共通で上書き） */
  --c-text:      #3a3f45;  /* ダークグレー */
  --c-text-sub:  #8b9096;
  --c-border:    #eae8e3;
  --shadow: 0 1px 3px rgba(50, 55, 60, .07);
  --radius: 8px;
}

/* ---------- 全体 ---------- */
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "Segoe UI", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent-dk); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- レイアウト幅の拡大（参考: siiimple.com のワイド＆余白広めの設計）
   テーマBrooklynの構造: #container は幅100%のまま、
   #container #content（margin: auto）側の幅を広げてセンタリングを維持する ---------- */
@media (min-width: 1200px) {
  #container { width: 100%; }                    /* コンテナは全幅のまま */
  #container #content {
    width: 1160px;
    margin-left: auto;                            /* センタリング */
    margin-right: auto;
  }
  #main { width: 800px; }                         /* 本文カラム 760→800px */
  #box2 { width: 300px; }
  #blog-title-inner { width: 1160px; }            /* タイトル・パンくず・メニューも同幅に */
  #top-box .breadcrumb { width: 1160px; }
  #global-menu .global-menu-list { width: 1160px; }
}

/* ---------- ブログタイトル部 ---------- */
#blog-title {
  background: var(--c-card);
  border-bottom: 1px solid var(--c-border);
  padding: 28px 0 20px;
  text-align: center;
}
#title { font-size: 30px; }
#title a { color: var(--c-text); font-weight: 700; letter-spacing: .02em; }
#title a:hover { color: var(--c-accent); text-decoration: none; }
#blog-description { color: var(--c-text-sub); font-size: 14px; font-weight: normal; }

/* ---------- グローバルメニュー ---------- */
#global-menu {
  background: var(--c-card);
  border-bottom: 2px solid var(--c-accent);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.global-menu-list {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  overflow-x: auto;                 /* スマホは横スクロール */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.global-menu-list::-webkit-scrollbar { display: none; }
/* テーマ(Brooklyn)の .global-menu-list li a（黒背景・table-cell）より
   詳細度を上げて確実に上書きする */
#global-menu .global-menu-list li { display: block; width: auto; flex-shrink: 0; text-align: center; }
#global-menu .global-menu-list li a {
  display: block;
  padding: 15px 26px;
  background: transparent;
  color: var(--c-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
#global-menu .global-menu-list li a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  background: var(--c-accent-bg);
  text-decoration: none;
}
/* テーマはスマホでメニューを画面外(top:-500px)に隠すため、
   通常表示＋横スクロールに戻す */
@media (max-width: 680px) {
  #global-menu, #global-menu.fixed {
    position: sticky;
    top: 0;
    opacity: 1;
  }
  #global-menu .global-menu-list { display: flex; }
  #global-menu .global-menu-list li { display: block; width: auto; }
  #global-menu .global-menu-list li a { padding: 12px 16px; }
}

/* ---------- コンテンツ幅・余白 ---------- */
#content { padding-top: 24px; }

/* ---------- 記事カード ---------- */
.entry {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
  margin-bottom: 36px;
}
.entry-header { border-bottom: 1px solid var(--c-border); padding-bottom: 18px; margin-bottom: 26px; }
.date a, .entry-date a {
  color: var(--c-text-sub);
  font-size: 13.5px;
  background: transparent;   /* テーマの黒背景チップを解除 */
  padding: 0;
}
.entry-title { line-height: 1.5; margin: 8px 0 12px; font-size: 26px; padding-left: 0; }
.entry-title a { color: var(--c-text); font-weight: 700; }
.entry-title a:hover { color: var(--c-accent); text-decoration: none; }

/* カテゴリラベル */
.entry-categories a, .categories a {
  display: inline-block;
  background: var(--c-pill-bg);
  color: var(--c-accent-dk);
  font-size: 12px;
  padding: 2px 12px;
  border-radius: 20px;
  margin-right: 6px;
  transition: background .2s;
}
.entry-categories a:hover, .categories a:hover {
  background: var(--c-accent); color: #fff; text-decoration: none;
}

/* ---------- 本文 ---------- */
.entry-content { font-size: 16px; border-bottom: none; }
/* テーマの吹き出し三角形を消す */
.entry-content h2::before,
.entry-content h3::before,
.hatena-module-title::before,
.hatena-module-title::after { content: none; }
.entry-content h2 {
  background: none;
  color: var(--c-text);
  border-bottom: 3px solid var(--c-accent);
  padding: 8px 4px;
  margin: 2.4em 0 1em;
  font-size: 1.45em;
}
.entry-content h3 {
  background: var(--c-accent-bg);
  border-left: 5px solid var(--c-accent);
  border-radius: 0 4px 4px 0;
  padding: 12px 18px;
  margin: 2.4em 0 1em;
  font-size: 1.3em;
}
.entry-content h4 {
  border-bottom: 2px solid var(--c-accent);
  padding-bottom: 6px;
  margin: 2em 0 .8em;
  font-size: 1.1em;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.entry-content blockquote {
  background: #f8fafc;
  border: none;
  border-left: 4px solid #c6d6e2;
  border-radius: 0 4px 4px 0;
  padding: 12px 18px;
  color: #5a6a78;
}
/* ---------- コード（v5: ダークモード風・カラフルシンタックス・角丸） ---------- */
/* インラインコード */
.entry-content code {
  background: #eef1f4;
  color: #c7254e;
  border: none;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: .88em;
  font-family: "SF Mono", "Cascadia Code", Consolas, Monaco, "Courier New", monospace;
}
/* コードブロック（<pre><code>） */
.entry-content pre,
.entry-content pre.code {
  background: #16191f;          /* ほぼ黒 */
  color: #e6edf3;
  border: none;
  border-radius: 12px;          /* 角丸 */
  padding: 20px 22px;
  margin: 1.6em 0;
  overflow-x: auto;
  line-height: 1.65;
  font-size: 14px;
  -webkit-overflow-scrolling: touch;
}
.entry-content pre > code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border-radius: 0;
}
/* はてなのシンタックスハイライト（syn-*）配色: GitHub Dark風 */
.entry-content pre .synComment    { color: #8b949e; font-style: italic; }  /* コメント */
.entry-content pre .synStatement  { color: #ff7b72; }                      /* if/for/return等 */
.entry-content pre .synIdentifier { color: #79c0ff; }                      /* 変数・関数名 */
.entry-content pre .synPreProc    { color: #d2a8ff; }                      /* #include, import等 */
.entry-content pre .synConstant   { color: #a5d6ff; }                      /* 文字列・数値 */
.entry-content pre .synSpecial    { color: #ffa657; }                      /* エスケープ等 */
.entry-content pre .synType       { color: #ff9e64; }                      /* int/float等の型 */
.entry-content pre .synError      { color: #f85149; }

/* ---------- 数式（v5: [tex:] 記法 / MathJax・KaTeX） ---------- */
/* ディスプレイ数式: 上下に余白を取り、長い式は横スクロール */
.entry-content .MathJax_Display,
.entry-content mjx-container[jax][display="true"],
.entry-content .katex-display {
  margin: 1.8em 0 !important;
  padding: .3em 0;
  overflow-x: auto;
  overflow-y: hidden;
}
/* インライン数式: 前後の文字と密着しないよう微小な余白 */
.entry-content .MathJax,
.entry-content mjx-container[jax]:not([display="true"]),
.entry-content .katex {
  margin: 0 .15em;
}
/* 数式画像（旧レンダリング）にも余白と枠なしを保証 */
.entry-content img.hatena-tex {
  display: inline-block;
  margin: 0 .2em;
  border: none;
  box-shadow: none;
  vertical-align: middle;
}
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th {
  background: var(--c-accent-bg); color: var(--c-text);
  border: 1px solid var(--c-border); padding: 8px 12px;
}
.entry-content td { border: 1px solid var(--c-border); padding: 8px 12px; }

/* ---------- 広告まわり ---------- */
.ad-label {
  text-align: center;
  font-size: 11px;
  color: var(--c-text-sub);
  letter-spacing: .1em;
  margin: 0 0 6px;
}
.insentence-adsense, #my-footer {
  margin: 28px auto;
  text-align: center;
}
#my-footer {
  border-top: 1px dashed var(--c-border);
  padding-top: 20px;
}

/* ---------- サイドバー ---------- */
.hatena-module {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.hatena-module-title {
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
  text-align: left;              /* テーマの中央寄せ・枠線・吹き出しを解除 */
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--c-accent);
  padding: 0 0 8px;
  margin-bottom: 12px;
}
.hatena-module-title a { color: var(--c-text); }
.hatena-urllist li {
  border-bottom: 1px dotted var(--c-border);
  padding: 8px 0;
  line-height: 1.5;
}
.hatena-urllist li:last-child { border-bottom: none; }
.hatena-urllist a { color: var(--c-text); font-size: 14px; }
.hatena-urllist a:hover { color: var(--c-accent); }
/* カテゴリモジュール: テーマの破線ボックスをピル型に */
.hatena-module-category .hatena-urllist li {
  border: 1px solid var(--c-border);
  border-radius: 16px;
  padding: 5px 14px;
  margin: 0 6px 8px 0;
}

/* 検索ボックス */
.hatena-module-search-box .search-form {
  border: 1px solid var(--c-border);
  border-radius: 20px;
  overflow: hidden;
}
.hatena-module-search-box .search-module-input {
  padding: 8px 14px; border: none; width: 80%;
}
.hatena-module-search-box .search-module-button {
  background: var(--c-accent); color: #fff; border: none;
  cursor: pointer; padding: 8px 0; width: 18%;
}
.hatena-module-search-box .search-module-button:hover { background: var(--c-accent-dk); }

/* ---------- ページャー ---------- */
.pager { margin: 30px 0; text-align: center; }
.pager a {
  display: inline-block;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  padding: 10px 26px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.pager a:hover {
  background: var(--c-accent); border-color: var(--c-accent);
  color: #fff; text-decoration: none;
}

/* ---------- フッタ ---------- */
#footer {
  background: #eef3f7;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-sub);
  text-align: center;
  padding: 24px 0;
  margin-top: 40px;
}
#footer a { color: var(--c-text-sub); }

/* ---------- 旧カスタマイズの引き継ぎ ---------- */
#google-header { text-align: center; }
#amazon-sidebar { text-align: center; }

/* =========================================================
   v2: 読みやすさ強化
   参考: Zenn（記事レイアウト・目次・メッセージボックス）,
         note（タイポグラフィ・余白）,
         PhotoshopVIP（画像主体のカードUI・サムネイル）
   ========================================================= */

/* ---------- 本文タイポグラフィ（v5: 16px / 行間1.8） ---------- */
.entry-content {
  line-height: 1.8;
  letter-spacing: .02em;
}
.entry-content p { margin: 1.3em 0; }

/* ---------- 目次（記事内で [:contents] を書くと出る） ---------- */
.entry-content .table-of-contents {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 26px 18px 46px;
  margin: 2em 0;
  font-size: 15px;
  position: relative;
}
.entry-content .table-of-contents::before {
  content: "目次";
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 10px -20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-accent);
}
.table-of-contents li { margin: 5px 0; }
.table-of-contents a { color: var(--c-text); }
.table-of-contents a:hover { color: var(--c-accent); }

/* ---------- 図版・写真（写真/図解を主役に） ---------- */
.entry-content img {
  display: block;
  margin: 1.8em auto;
  border: 1px solid var(--c-border);   /* 白背景のスクショが溶けないように */
}
.entry-content figure.figure-image { margin: 2em auto; text-align: center; }
.entry-content figure.figure-image img { margin: 0 auto; }
.entry-content figcaption,
.entry-content .mces-figure-caption {
  font-size: 13.5px;
  color: var(--c-text-sub);
  text-align: center;
  margin-top: 8px;
  line-height: 1.6;
}

/* Before/After等の2枚横並び比較:
   HTML編集で <div class="img-compare"><img><img></div> と書く */
.entry-content .img-compare { display: flex; gap: 12px; margin: 1.8em 0; }
.entry-content .img-compare img { flex: 1; min-width: 0; margin: 0; }

/* ---------- メッセージボックス（Zenn風）
   HTML編集で <p class="msg">…</p> / <p class="msg msg-warn">…</p> ---------- */
.entry-content .msg {
  background: var(--c-accent-bg);
  border-radius: 8px;
  padding: 14px 18px 14px 48px;
  margin: 1.6em 0;
  font-size: .95em;
  position: relative;
}
.entry-content .msg::before { content: "💡"; position: absolute; left: 16px; top: 13px; }
.entry-content .msg-warn { background: #fdf3e6; }
.entry-content .msg-warn::before { content: "⚠️"; }

/* ---------- コードブロックの言語ラベル ---------- */
.entry-content pre.code {
  position: relative;
  padding-top: 38px;
}
.entry-content pre.code[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0; left: 0;
  background: #2c333d;
  color: #9db2c7;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 4px 16px;
  border-radius: 12px 0 8px 0;
  text-transform: uppercase;
}

/* ---------- 手順リスト（チュートリアル用）
   HTML編集で <ol class="steps"><li>…</li></ol> と書く ---------- */
.entry-content ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.6em 0 1.6em 18px; }
.entry-content ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6em 34px;
  border-left: 2px solid var(--c-border);
}
.entry-content ol.steps > li:last-child { border-left-color: transparent; padding-bottom: .2em; }
.entry-content ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -16px; top: -2px;
  width: 30px; height: 30px;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.entry-content ol.steps > li > img { margin-top: .8em; }

/* ---------- 埋め込みカード（ブログカード・SNS） ---------- */
.entry-content iframe.embed-card, .entry-content .hatena-embed { margin: 1.4em auto; }

/* =========================================================
   v4: 記事一覧のカードグリッド（トップ・カテゴリ・アーカイブ共通）
   写真が主役のミニマルなカード型。PC:3列 / タブレット:2列 / スマホ:1列
   ※トップページに適用するには 設定 > 詳細設定 >
     「トップページの表示形式」を一覧形式にする（はてなブログPro機能）
   ========================================================= */
.archive-entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;       /* Bento: 空きマスを詰めてパズル状に */
  gap: 24px;
}
.archive-entry,
.page-archive .archive-entries .archive-entry {
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(50, 55, 60, .06), 0 4px 12px rgba(50, 55, 60, .04);
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.2, .6, .3, 1), box-shadow .3s ease;
}
.archive-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(50, 55, 60, .10), 0 16px 32px rgba(50, 55, 60, .12);
}
/* ---- Bento UI: 大小のリズム ----
   PC(3列): 1番目=縦2×横2の特大 / 5番目=横2のワイド
   タブレット(2列): 1番目のみ全幅のフィーチャー扱い */
@media (min-width: 1200px) {
  .archive-entry:first-child { grid-column: span 2; grid-row: span 2; }
  .archive-entry:first-child .entry-thumb { aspect-ratio: 16 / 11; }
  .archive-entry:first-child .entry-title { font-size: 23px; line-height: 1.45; }
  .archive-entry:first-child .entry-description {
    -webkit-line-clamp: 4;
    font-size: 14.5px;
  }
  .archive-entry:nth-child(5) { grid-column: span 2; }
  .archive-entry:nth-child(5) .entry-thumb { aspect-ratio: 16 / 6.5; }
  .archive-entry:nth-child(5) .entry-title { font-size: 19px; }
}
@media (max-width: 1199px) and (min-width: 681px) {
  .archive-entry:first-child { grid-column: span 2; }
  .archive-entry:first-child .entry-thumb { aspect-ratio: 16 / 8; }
  .archive-entry:first-child .entry-title { font-size: 21px; }
}
/* header/bodyの入れ子を解除し、サムネ→日付→タイトル→カテゴリ→説明の順に */
.archive-entry .archive-entry-header,
.archive-entry .archive-entry-body { display: contents; }
.archive-entry .entry-thumb-link { order: -1; display: block; overflow: hidden; }
.archive-entry .date { order: 1; margin: 14px 18px 0; font-weight: normal; }
.archive-entry .entry-title { order: 2; margin: 6px 18px 8px; padding: 0; }
.archive-entry .categories { order: 3; margin: 0 18px 6px; }
.archive-entry .entry-description { order: 4; margin: 0 18px 18px; }
/* サムネイル: カード幅いっぱい・16:10・hoverでほんの少しズーム
   （比率は background-size / object-fit: cover で絶対に崩さない） */
.archive-entry .entry-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background-size: cover;        /* はてなの div.entry-thumb（背景画像）用 */
  background-position: center;
  object-fit: cover;             /* img.entry-thumb の場合用 */
  border-radius: 0;
  transition: transform .5s cubic-bezier(.2, .6, .3, 1);
  will-change: transform;
}
.archive-entry:hover .entry-thumb { transform: scale(1.04); }
.archive-entry .date a { font-size: 12.5px; color: var(--c-text-sub); background: transparent; padding: 0; }
.archive-entry .entry-title,
.page-archive .archive-entries .entry-title {
  font-size: 17px;
  line-height: 1.55;
}
.archive-entry .entry-title a { color: var(--c-text); }
.archive-entry .entry-title a:hover { color: var(--c-accent); }
.archive-entry .categories a {
  font-size: 11.5px;
  background: var(--c-pill-bg);
  color: var(--c-accent-dk);
  border-radius: 14px;
  padding: 2px 10px;
}
.archive-entry .entry-description,
.page-archive .archive-entries .entry-description {
  color: var(--c-text-sub);
  font-size: 13.5px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;      /* 説明文は3行で省略しカード高さを揃える */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1199px) and (min-width: 681px) {
  .archive-entries { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 680px) {
  .archive-entries { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
   v6: Before/After比較スライダー（共通スタイル）
   記事側には src/6_スライダー記事貼り付け用.html のHTMLだけ貼ればOK
   （動作用JSはフッタHTMLに設置済み）
   ========================================================= */
.ba-slider {
  position: relative;
  max-width: 720px;
  margin: 1.8em auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(50, 55, 60, .14);
  user-select: none;
  -webkit-user-select: none;
  line-height: 0;
}
.ba-slider img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: none;
}
.ba-after-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.ba-after-wrap img {
  max-width: none;
  height: 100%;
  width: auto;
}
.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, .35);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-handle::after {
  content: "◀ ▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  color: #3a3f45;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}
.ba-slider:hover .ba-handle::after {
  transform: translate(-50%, -50%) scale(1.08);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
  touch-action: none;
}
.ba-label {
  position: absolute;
  top: 12px;
  padding: 3px 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: 14px;
  line-height: 1.6;
  pointer-events: none;
}
.ba-label-before { right: 12px; }
.ba-label-after  { left: 12px; }

/* =========================================================
   v7: おすすめ記事モジュール＋物販ウィジェットの整形
   ========================================================= */
/* おすすめ記事（サイドバーのHTMLモジュール用: src/8_おすすめ記事モジュール.html） */
.reco-list { list-style: none; margin: 0; padding: 0; }
.reco-list li { margin-bottom: 12px; padding: 0; border-bottom: none; }
.reco-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}
.reco-list img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--c-border);
  transition: opacity .2s;
}
.reco-list span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reco-list a:hover span { color: var(--c-accent); }
.reco-list a:hover img { opacity: .85; }

/* 一覧カード内のノイズを非表示（はてなスター・タグ行 "# Photoshop" など） */
.archive-entry .hatena-star-container,
.archive-entry img.hatena-star-add-button,
.archive-entry .entry-tags-wrapper,
.archive-entry .entry-tags,
.archive-entry .archive-entry-tags,
.archive-entry .entry-tag-list { display: none; }

/* フッタ下の楽天/物販ウィジェット: コンテンツ幅のカードに収める
   使い方: フッタ内の楽天ウィジェットのコードを
   <div id="sponsor-footer"><p class="ad-label">スポンサーリンク</p> …既存コード… </div>
   で囲む */
#sponsor-footer {
  max-width: 1160px;
  margin: 36px auto;
  padding: 20px 24px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
  overflow-x: auto;
}
@media (max-width: 680px) {
  #sponsor-footer { margin: 20px 0; border-radius: 0; border-left: none; border-right: none; }
}

/* ---------- スマホ対応 ---------- */
@media (max-width: 680px) {
  .entry { padding: 24px 18px; border-radius: 0; border-left: none; border-right: none; }
  .entry-content { font-size: 16px; }
  .entry-title { font-size: 21px; }
  .global-menu-list { justify-content: flex-start; }
  .global-menu-list a { padding: 12px 16px; }
  .entry-content .img-compare { flex-direction: column; gap: 8px; }
}
