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


/* ====================================
   1. 吹き出し（会話形式）のデザイン - 完全修正版（再修正）
   ==================================== */
.balloon-box {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start; /* アイコンと吹き出しの上端を揃える */
}

/* --- 左側（依頼人） --- */
.balloon-left {
    flex-direction: row; /* 左にアイコン、右に吹き出し */
}
.balloon-left .icon {
    margin-right: 15px; /* アイコンと吹き出しの間の余白を調整 */
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0; /* ★アイコンがコンテンツに合わせて縮まないように固定 */
}
.balloon-left .chat {
    background: #f0f0f0; /* 薄いグレー */
    padding: 15px;
    border-radius: 15px;
    position: relative;
    max-width: 70%; /* 吹き出しの最大幅 */
    color: #333; /* 文字色 */
}
/* しっぽ（左） */
.balloon-left .chat::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 25px; /* 90pxアイコンに合わせてしっぽの位置を調整 */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #f0f0f0; /* 吹き出しの背景色と同じに */
}

/* --- 右側（弁護士AI） --- */
.balloon-right {
    flex-direction: row-reverse; /* 右にアイコン、左に吹き出し */
}
.balloon-right .icon {
    margin-left: 15px; /* アイコンと吹き出しの間の余白を調整 */
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0; /* ★アイコンがコンテンツに合わせて縮まないように固定 */
}
.balloon-right .chat {
    background: #d1e8ff; /* 薄い青 */
    padding: 15px;
    border-radius: 15px;
    position: relative;
    max-width: 70%; /* 吹き出しの最大幅 */
    color: #333; /* 文字色 */
}
/* しっぽ（右） */
.balloon-right .chat::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 25px; /* 90pxアイコンに合わせてしっぽの位置を調整 */
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #d1e8ff; /* 吹き出しの背景色と同じに */
}

/* --- アイコン画像共通設定 - サイズを90pxに拡大 --- */
.icon img {
    width: 90px; /* アイコンの幅を90pxに拡大 */
    height: 90px; /* アイコンの高さを90pxに拡大 */
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* ★要素の縦横比を1:1に強制（スマホ対応で重要） */
    border: 2px solid #ddd; /* アイコンの枠線 */
    background: #fff;
}

/* ====================================
   2. 作品データ（記事末尾）のデザイン
   ==================================== */
.work-data-box {
    border: 2px solid #333;    /* 黒い太枠 */
    background: #fff;          /* 白背景 */
    padding: 20px;             /* 余白 */
    margin: 40px 0 20px 0;     /* 上下の隙間 */
    border-radius: 4px;
}
.work-data-title {
    font-weight: bold;
    background: #333;          /* 黒背景 */
    color: #fff;               /* 白文字 */
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 15px;
    font-size: 0.9em;
}

/* ====================================
   3. 免責事項（自動挿入用）のデザイン
   ==================================== */
.law-disclaimer {
    background-color: #f9f9f9; /* 背景色 */
    border: 1px solid #ddd;    /* 枠線 */
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
    font-size: 0.85em;         /* 文字サイズ */
    color: #666;               /* 文字色 */
}
.law-disclaimer h4 {
    margin-top: 0;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    font-size: 1.1em;
    font-weight: bold;
}
.law-disclaimer ul {
    padding-left: 20px;
    margin-bottom: 0;
}
.law-disclaimer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* サイドバーの「最新記事」と「注目記事」を整える */
.hatena-module-recent-entries .urllist-item,
.hatena-module-entries-access-ranking .urllist-item {
    display: flex;              /* 横並びにする */
    align-items: flex-start;    /* 上揃え */
    margin-bottom: 15px;        /* 記事ごとの間隔 */
    clear: both;
}

/* サムネイル画像の調整 */
.hatena-module-recent-entries .urllist-image,
.hatena-module-entries-access-ranking .urllist-image {
    width: 90px;                /* 幅を90pxに固定 */
    height: 65px;               /* 高さを65pxに固定 */
    object-fit: cover;          /* 画像を枠に合わせてトリミング */
    margin-right: 12px;         /* 画像とタイトルの隙間 */
    margin-top: 2px;            /* 微調整 */
    border-radius: 4px;         /* 角を少し丸く */
    flex-shrink: 0;             /* 画像が潰れないようにする */
}

/* タイトルの調整 */
.hatena-module-recent-entries .urllist-title-link,
.hatena-module-entries-access-ranking .urllist-title-link {
    font-size: 14px;            /* 文字サイズ */
    line-height: 1.4;           /* 行間 */
    display: block;
    word-break: break-all;      /* 長い単語でレイアウト崩れを防ぐ */
}

/* ====================================
   ★追加・修正デザイン（ずんだもんスタイル） - 第4版
   ==================================== */

/* Universal Box Sizing for better responsive behavior */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}

/* 1. 全体背景色 */
body {
    background-color: #fff5e0; /* ★背景色を少し濃い黄色に調整 */
}

/* 2. メインコンテンツエリアの背景 - ※現状のテーマ設定を尊重 */
/* 記事本文が書かれている領域の背景色を明示的に白にする場合
   （既存テーマCSSとの兼ね合いがあるので、必要に応じて調整） */
/* #container .entry-content {
    background-color: #ffffff;
} */


/* 3. サイドバー */
/* 各サイドバーモジュールの共通スタイル */
.hatena-module {
    background-color: #fffbe6; /* ごく薄い黄色 */
    padding: 15px; /* 内側の余白 */
    margin-bottom: 20px; /* モジュール間の間隔 */
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* ほんの少し影 */
    border: none; /* もしデフォルトの枠線があれば消す */
    /* ★スマホでの見切れ対策 */
    max-width: 100%;
    box-sizing: border-box;
}

/* 各モジュールのタイトル（サイドバー見出し） */
.hatena-module-title {
    background-color: #ffde59; /* メインカラーの黄色 */
    color: #ffffff; /* 白文字 */
    padding: 8px 15px;
    margin: -15px -15px 15px -15px; /* 親要素のpaddingを打ち消し、下余白 */
    font-size: 1.1em;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center; /* 中央寄せ */
}

/* 管理者情報モジュール内のアイコン（プロファイル画像） */
.hatena-module-profile .profile-icon img {
    border: 3px solid #ffde59; /* 管理者アイコンの枠線も黄色に */
}
/* プロフィール説明の文字色 */
.hatena-module-profile .profile-description {
    color: #333333;
}


/* 4. フッター */
.footer { /* Hatena Blogのフッターのセレクタは一般的に.footer */
    background-color: #ffde59; /* メインカラーの黄色 */
    color: #333333; /* 黒文字 */
    padding: 30px 20px; /* 上下の余白 */
    text-align: center;
    font-size: 0.9em;
}
.footer a {
    color: #333333; /* フッター内のリンクも黒に */
}

/* 5. 記事内見出し */
/* H2見出し */
.entry-content h2 {
    background-color: #ffde59; /* メインカラーの黄色 */
    color: #333333; /* 黒文字 */
    padding: 10px 20px;
    margin: 30px 0 20px 0; /* 上下余白 */
    border-radius: 5px; /* 角丸 */
    font-size: 1.6em;
    font-weight: bold;
    text-align: center; /* 中央寄せ */
}

/* H3見出し */
.entry-content h3 {
    border-left: 8px solid #ffde59; /* 左側に黄色のライン */
    padding-left: 15px;
    margin: 25px 0 15px 0;
    font-size: 1.3em;
    font-weight: bold;
    color: #333333; /* 濃いグレー */
}

/* 6. リンクの色 */
a {
    color: #ffb300; /* アクセントカラーに近いオレンジがかった黄色 */
}
a:hover {
    color: #e69500; /* ホバー時の色を少し濃く */
}

/* 7. アイコンの枠線 (吹き出しアイコン) */
/* 既存の.icon imgのborderを上書き */
.balloon-box .icon img {
    border: 2px solid #ffde59; /* アイコンの枠線をメインカラーに変更 */
}

/* 吹き出しのしっぽの色も背景色に合わせる（既存設定を維持しつつ） */
/* ※この部分は、既存の.chat::afterのborder-right/leftの色を上書きします */
.balloon-left .chat::after {
    border-right-color: #f0f0f0; /* 左側吹き出しの背景色と同じに */
}
.balloon-right .chat::after {
    border-left-color: #d1e8ff; /* 右側吹き出しの背景色と同じに */
}

/* 8. 作品データボックスのデザイン調整 */
/* 作品データボックスの枠線を黄色に統一 */
.work-data-box {
    border: 2px solid #ffde59;
}
/* 作品データボックスのタイトル背景も黄色に統一 */
.work-data-title {
    background: #ffde59;
    color: #333; /* 白だと見えにくいので黒に */
}

/* ====================================
   ★書籍アフィリエイトカードのデザイン (更新版)
   ==================================== */
.book-affiliate-card {
    background-color: #fffbe6; /* カードの背景色 */
    border-radius: 10px;
    padding: 20px;
    margin: 30px auto; /* 上下余白と中央寄せ */
    max-width: 500px; /* カードの最大幅 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex; /* Flexboxでレイアウト */
    flex-direction: column; /* デフォルトは縦並び（スマホ向け） */
    align-items: center; /* 中央揃え */
}

.book-affiliate-card .book-image {
    margin-bottom: 15px;
    text-align: center;
}

.book-affiliate-card .book-image img {
    max-width: 150px; /* 書籍画像の最大幅 */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.book-affiliate-card .book-details {
    text-align: center;
}

.book-affiliate-card .book-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.book-affiliate-card .book-store-links {
    display: flex;
    flex-wrap: wrap; /* ボタンが複数ある場合に折り返す */
    justify-content: center;
    gap: 10px; /* ボタン間の隙間 */
}

.book-affiliate-card .store-button {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* ボタン内のテキストが改行しないように */
    flex-grow: 1; /* ボタンが横幅いっぱいに広がるように */
    max-width: 180px; /* 個々のボタンの最大幅 */
}

/* 各ストアのブランドカラー */
.book-affiliate-card .store-button.amazon {
    background-color: #ff9900; /* Amazonのブランドカラー */
    color: #ffffff;
}
.book-affiliate-card .store-button.amazon:hover {
    background-color: #e68a00;
}

.book-affiliate-card .store-button.rakuten {
    background-color: #bf0000; /* 楽天のブランドカラー */
    color: #ffffff;
}
.book-affiliate-card .store-button.rakuten:hover {
    background-color: #a60000;
}

.book-affiliate-card .store-button.ebookjapan {
    background-color: #ffd800; /* ebookjapanのブランドカラー */
    color: #333333; /* 黄色背景なので文字は黒 */
}
.book-affiliate-card .store-button.ebookjapan:hover {
    background-color: #e6c200;
}

.book-affiliate-card .store-button.dmm {
    background-color: #0087eb; /* DMMのブランドカラー */
    color: #ffffff;
}
.book-affiliate-card .store-button.dmm:hover {
    background-color: #006eb3;
}

.book-affiliate-card .store-button.cmoa {
    background-color: #cc0033; /* コミックシーモアのブランドカラー */
    color: #ffffff;
}
.book-affiliate-card .store-button.cmoa:hover {
    background-color: #b3002d;
}

/* PC表示（幅が広い場合）で横並びにする */
@media screen and (min-width: 769px) {
    .book-affiliate-card {
        flex-direction: row; /* PCでは横並び */
        align-items: flex-start; /* 上揃え */
        max-width: 700px; /* PCでのカード最大幅 */
    }
    .book-affiliate-card .book-image {
        margin-right: 20px;
        margin-bottom: 0; /* 縦方向のマージンをリセット */
    }
    .book-affiliate-card .book-details {
        text-align: left; /* 詳細を左寄せ */
        flex-grow: 1; /* 残りのスペースを埋める */
    }
    .book-affiliate-card .book-store-links {
        justify-content: flex-start; /* ボタンを左寄せ */
        gap: 8px; /* PCでのボタン間の隙間を少し減らす */
    }
    .book-affiliate-card .store-button {
        flex-grow: 0; /* PCでは横幅いっぱいに広げない */
        max-width: none; /* 最大幅の制限を解除 */
    }
}

/* ====================================
   ★YouTubeサイドバーバナーのデザイン
   ==================================== */
.youtube-sidebar-banner {
    margin: 0 auto 20px auto; /* モジュール内の余白 */
    text-align: center;
    border-radius: 8px; /* 角丸 */
    overflow: hidden; /* はみ出し防止 */
    background-color: #fffbe6; /* モジュール背景色と合わせる */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 影 */
    padding: 10px;
}
.youtube-sidebar-banner a {
    display: block;
    text-decoration: none;
    color: #333333;
}
.youtube-sidebar-banner img {
    max-width: 100%; /* 親要素に合わせて縮小 */
    height: auto;
    border-radius: 5px;
    margin-bottom: 5px;
}
.youtube-sidebar-banner p {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
    padding: 5px 0;
    color: #333333; /* 文字色 */
}
.youtube-sidebar-banner a:hover p {
    color: #ffb300; /* ホバー時にリンクカラーに */
}

/* ====================================
   ★記事内YouTube動画埋め込みのデザイン (サイズ調整版)
   ==================================== */
.related-youtube-video {
    margin: 40px auto; /* 上下余白と中央寄せ */
    max-width: 400px; /* ★動画の最大幅を500pxから400pxに縮小 */
    text-align: center;
    background-color: #fffbe6; /* モジュール背景色と合わせる */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.related-youtube-video .related-youtube-cta {
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
}

.youtube-embed-container {
    position: relative;
    width: 100%;
    /* ショート動画の縦横比（ここでは 9:16 を想定） */
    padding-top: calc(100% / 9 * 16); /* 縦長動画の比率を維持 */
    overflow: hidden;
    border-radius: 5px;
}

.youtube-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====================================
   ★VODアフィリエイトバナーのデザイン
   ==================================== */
.vod-affiliate-banner {
    margin: 30px auto; /* 上下余白と中央寄せ */
    max-width: 500px; /* 全体の最大幅 */
    text-align: center;
    background-color: #fffbe6; /* カードの背景色と合わせる */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.vod-affiliate-banner .affiliate-disclaimer {
    font-size: 0.8em; /* 小さめの文字 */
    color: #666666; /* 目立ちすぎないグレー */
    margin-bottom: 15px; /* 下に余白 */
    text-align: center;
    border: 1px solid #ddd; /* 囲み線 */
    padding: 5px 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.vod-affiliate-banner a {
    display: block;
    text-decoration: none;
    color: #333333;
}
.vod-affiliate-banner img {
    max-width: 100%; /* 親要素に合わせて縮小 */
    height: auto;
    border-radius: 5px;
    margin-bottom: 5px;
}
.vod-affiliate-banner p {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
    padding: 5px 0;
    color: #333333; /* 文字色 */
}
.vod-affiliate-banner a:hover p {
    color: #ffb300; /* ホバー時にリンクカラーに */
}

/* ====================================
   ★Twitterサイドバーバナーのデザイン
   ==================================== */
.twitter-sidebar-banner {
    margin: 0 auto 20px auto;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fffbe6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 10px;
}
.twitter-sidebar-banner a {
    display: block;
    text-decoration: none;
    color: #333333;
}
.twitter-sidebar-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 5px;
}
.twitter-sidebar-banner p {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0;
    padding: 5px 0;
    color: #333333;
}
.twitter-sidebar-banner a:hover p {
    color: #ffb300;
}

/* ==================================================
   今回追加：管理者背景修正 ＆ YouTube・広告横並び（Ver.2）
   ================================================== */

/* ① 管理者情報（プロフィール）の背景色を黄色に統一 */
.hatena-module-profile {
    background-color: #fffbe6 !important;
}

/* ② YouTubeとアフィリエイトの横並び設定 (PC表示) */
.yt-affiliate-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* 高さを揃える */
    gap: 20px;
    margin: 40px 0;
    width: 100%;
}

/* --- YouTube動画エリア（大きくする） --- */
.yt-affiliate-wrapper .related-youtube-video {
    width: 58%;         /* ★幅を約6割に拡大 */
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 上下中央配置 */
}

/* ==================================================
   ③ アフィリエイトカードのデザイン調整（PR上部・タイトル自動縮小）
   ================================================== */

/* カード本体 */
.yt-affiliate-wrapper .book-affiliate-card {
    width: 40%;
    margin: 0;
    max-width: none;
    display: flex;
    flex-direction: column; /* 縦積み */
    align-items: center;
    padding: 15px; /* 上下の余白を少し詰める */
    position: relative;
    
    /* ★コンテナクエリ設定（タイトルの自動伸縮に必要） */
    container-type: inline-size;
}

/* --- PR表記（最上段・1行固定） --- */
.yt-affiliate-wrapper .affiliate-disclaimer {
    order: -1; /* Flexbox内で強制的に一番上に */
    width: 100%;
    text-align: center;
    font-size: 10px; /* ★スマホでも1行に収まるサイズ */
    color: #888;
    margin: 0 0 10px 0; /* 下に少し余白 */
    white-space: nowrap; /* ★強制的に改行させない */
    overflow: hidden; /* 万が一はみ出たら隠す */
    border: none;
    background: none;
    padding: 0;
}

/* --- 書籍画像 --- */
.yt-affiliate-wrapper .book-image {
    margin-bottom: 10px;
}
.yt-affiliate-wrapper .book-image img {
    max-height: 160px; /* 画像が縦に長くなりすぎないよう制限 */
    width: auto;
    object-fit: contain;
}

/* --- 書籍タイトル（自動サイズ調整・中央寄せ） --- */
.yt-affiliate-wrapper .book-title {
    text-align: center; /* 中央寄せ */
    font-weight: bold;
    color: #333333;
    margin: 5px 0 15px 0;
    line-height: 1.3;
    width: 100%;
    
    /* ★文字サイズの魔法（cqi単位） */
    /* カード幅の8%のサイズにするが、最小12px、最大18pxの範囲に収める */
    font-size: clamp(12px, 8cqi, 18px); 
}

/* --- ボタン周り（変更なし） --- */
.yt-affiliate-wrapper .book-details {
    width: 100%;
}
.yt-affiliate-wrapper .book-store-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px; /* 隙間を少し詰める */
}
.yt-affiliate-wrapper .store-button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding: 10px; /* ボタンを押しやすく */
    font-size: 14px;
}
.store-button.bookwalker {
    background-color: #333333;
    color: #ffffff;
}
.store-button.bookwalker:hover {
    background-color: #555555;
}

/* --- スマホ表示（768px以下） --- */
@media screen and (max-width: 768px) {
    .yt-affiliate-wrapper {
        flex-direction: column;
    }
    .yt-affiliate-wrapper .related-youtube-video,
    .yt-affiliate-wrapper .book-affiliate-card {
        width: 100%;
        margin-bottom: 30px;
    }
    /* スマホではカード幅が広がるので、タイトル文字も少し大きく許可する */
    .yt-affiliate-wrapper .book-title {
        font-size: clamp(14px, 5cqi, 20px);
    }
}

/* ==================================================
   ★全デバイス対応：カード型レイアウト（YouTubeライク）
   ================================================== */

/* 1. 記事リスト（archive-entry）をカード化 */
.page-index .archive-entry {
    display: flex !important;
    flex-direction: column !important; /* 常に「上：画像、下：文字」 */
    width: 100% !important;
    padding-bottom: 30px !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #f0f0f0 !important; /* 区切り線 */
    box-sizing: border-box;
}

/* 2. 画像リンク枠を最大幅に広げる */
.page-index .entry-thumb-link {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
}

/* 3. 画像本体を16:9に固定＆リッチなデザインに */
.page-index .entry-thumb {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important; /* YouTubeサムネと同じ比率 */
    object-fit: cover !important;
    border-radius: 12px !important; /* 角丸を強く */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 影をつけて浮かせる */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 動きをつける */
}

/* PCのみ：画像にマウスを乗せるとふわっと浮く演出 */
@media screen and (min-width: 769px) {
    .page-index .entry-thumb:hover {
        transform: translateY(-5px); /* 少し上に移動 */
        box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* 影を濃く */
        opacity: 0.95;
    }
}

/* 4. テキストエリア（タイトル・概要）の配置リセット */
.page-index .archive-entry-header,
.page-index .archive-entry-body {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 5px !important;
}

/* 5. 記事タイトルを大きく強調（広告に負けないように） */
.page-index .entry-title {
    font-size: 22px !important; /* PCで見ても十分な大きさ */
    font-weight: bold !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
}

/* スマホでは文字サイズを少し調整 */
@media screen and (max-width: 768px) {
    .page-index .entry-title {
        font-size: 18px !important;
    }
}

/* 6. カテゴリラベルや日付の位置調整 */
.page-index .categories,
.page-index .date {
    margin-bottom: 8px !important;
}

/* 7. 不要なデフォルトスタイル（floatなど）の強制解除 */
.page-index .archive-entry::after {
    display: none !important;
}