/* <system section="theme" selected="13574176438102045327"> */
@charset "UTF-8";
/*
  Theme: Color Book
  Author: haruto
  Responsive: yes
 */
html {
    line-height: 1.15;
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers (opinionated).
 */
body {
    margin: 0;
}

/**
 * Add the correct display in IE 9-.
 */
article,
aside,
footer,
header,
nav,
section {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 * 1. Add the correct display in IE.
 */
figcaption,
figure,
main {
    /* 1 */
    display: block;
}

/**
 * Add the correct margin in IE 8.
 */
figure {
    margin: 1em 40px;
}

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
    -webkit-box-sizing: content-box;
            box-sizing: content-box;
    /* 1 */
    height: 0;
    /* 1 */
    overflow: visible;
    /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * 1. Remove the gray background on active links in IE 10.
 * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
 */
a {
    background-color: transparent;
    /* 1 */
    -webkit-text-decoration-skip: objects;
    /* 2 */
}

/**
 * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
    border-bottom: none;
    /* 1 */
    text-decoration: underline;
    /* 2 */
    -webkit-text-decoration: underline dotted;
            text-decoration: underline dotted;
    /* 2 */
}

/**
 * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
 */
b,
strong {
    font-weight: inherit;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
    font-family: monospace, monospace;
    /* 1 */
    font-size: 1em;
    /* 2 */
}

/**
 * Add the correct font style in Android 4.3-.
 */
dfn {
    font-style: italic;
}

/**
 * Add the correct background and color in IE 9-.
 */
mark {
    background-color: #ff0;
    color: #000;
}

/**
 * Add the correct font size in all browsers.
 */
small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
audio,
video {
    display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */
audio:not([controls]) {
    display: none;
    height: 0;
}

/**
 * Remove the border on images inside links in IE 10-.
 */
img {
    border-style: none;
}

/**
 * Hide the overflow in IE.
 */
svg:not(:root) {
    overflow: hidden;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers (opinionated).
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    font-family: sans-serif;
    /* 1 */
    font-size: 100%;
    /* 1 */
    line-height: 1.15;
    /* 1 */
    margin: 0;
    /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
    /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
    /* 1 */
    text-transform: none;
}

/**
 * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
 *    controls in Android 4.
 * 2. Correct the inability to style clickable types in iOS and Safari.
 */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    /* 2 */
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    /* 1 */
    color: inherit;
    /* 2 */
    display: table;
    /* 1 */
    max-width: 100%;
    /* 1 */
    padding: 0;
    /* 3 */
    white-space: normal;
    /* 1 */
}

/**
 * 1. Add the correct display in IE 9-.
 * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
    display: inline-block;
    /* 1 */
    vertical-align: baseline;
    /* 2 */
}

/**
 * Remove the default vertical scrollbar in IE.
 */
textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10-.
 * 2. Remove the padding in IE 10-.
 */
[type="checkbox"],
[type="radio"] {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    /* 1 */
    padding: 0;
    /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
    -webkit-appearance: textfield;
    /* 1 */
    outline-offset: -2px;
    /* 2 */
}

/**
 * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
    -webkit-appearance: button;
    /* 1 */
    font: inherit;
    /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in IE 9-.
 * 1. Add the correct display in Edge, IE, and Firefox.
 */
details,
menu {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
    display: list-item;
}

/* Scripting
   ========================================================================== */
/**
 * Add the correct display in IE 9-.
 */
canvas {
    display: inline-block;
}

/**
 * Add the correct display in IE.
 */
template {
    display: none;
}

/* Hidden
   ========================================================================== */
/**
 * Add the correct display in IE 10-.
 */
[hidden] {
    display: none;
}

html,
body {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Hiragino Kaku Gothic Pro', 'Meiryo', 'MS PGothic';
    color: #454545;
    line-height: 1.6;
}

a {
    color: #1487bd;
}

a:hover {
    color: #0f668f;
}

a.keyword {
    text-decoration: none;
    border-bottom: 1px dotted #ddd;
    color: #454545;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    line-height: 1.3;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: #333;
    text-decoration: none;
}

h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover {
    color: #0f668f;
}

/* ヘッダ（グローバルヘッダ）
  グローバルヘッダの中はiframeですが、
  #globalheader-container に背景色や文字色を指定することでiframeの中にも色が反映されます。
*/
#globalheader-container {
    background-color: #454545;
    color: #fff;
}

/* container */
#container {
    padding-left: 10px;
    padding-right: 10px;
}

@media (min-width: 768px) {
    #container,
    #footer {
        width: 720px;
        margin: auto;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 992px) {
    #container,
    #footer {
        width: 992px;
    }
}

/* 2カラムレイアウト */
#content-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

@media (min-width: 768px) {
    #content-inner {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
    }
}

@media (min-width: 768px) {
    #wrapper {
        width: 480px;
    }
}

@media (min-width: 992px) {
    #wrapper {
        width: 640px;
    }
}

@media (min-width: 768px) {
    #box2 {
        width: 200px;
    }
}

@media (min-width: 992px) {
    #box2 {
        width: 300px;
    }
}


/* ヘッダ */
#blog-title {
    text-align: center;
}

#title {
    margin: 0;
    font-size: 1.5rem;
}

@media (min-width: 992px) {
    #title {
        font-size: 1.7rem;
    }
}

#title a {
    color: #454545;
}

#blog-description {
    font-weight: normal;
    font-size: .8rem;
    margin: 1em 0 0;
}

/* ヘッダ画像を設定したとき */
.header-image-enable #blog-title {
    margin: 0;
}



.header-image-enable #blog-title-content {
    padding-top:60px;
}

/* タイトル下HTML */
#top-editarea {
    margin-bottom: 30px;
}

/* パンくず（カテゴリー、記事ページで表示されます） */
.breadcrumb {
    font-size: .9rem;
    margin-top:20px;
}

/* entry */
.entry {
    position: relative;
    margin-bottom: 40px;
}

.entry-header {
    padding-bottom: 40px;
    margin-bottom: 2em;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.date {
    margin-bottom: .5em;
    font-size: .9rem;
}

.date a {
    color: #999;
    text-decoration: none;
}

.date a:hover {
    text-decoration: underline;
}

.entry-title {
    margin: 0 0 .3em;
    font-size: 21px;
}


.categories {
    margin: 3px 0;
    font-size: 13px;
}

.categories a {
    margin-right: .5em;
    color:#fff;
    font-weight:bold;
    text-decoration:none;
    display:inline-block;
    background:#ccc;
    padding:5px;
    border-radius:6px;
}

/* 「編集する」ボタン */
.entry-header-menu {
    position: absolute;
    top: 0;
    right: 0;
}

/* 記事内の書式 */
.entry-inner{
    background:#fff;
    padding:25px;
    border-radius:5px;
}

.entry-content{
  background:#fff;
}

.entry-content img,
.entry-content video {
    max-width: 100%;
    height: auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 1em 0 0.8em 0;
}

.entry-content h1 {
    font-size: 1.5rem;
}

@media (min-width: 992px) {
    .entry-content h1 {
        font-size: 1.7rem;
    }
}

.entry-content h2 {
    font-size: 1.4rem;
}

@media (min-width: 992px) {
    .entry-content h2 {
        font-size: 1.5rem;
    }
}

.entry-content h3 {
    font-size: 1.2rem;
}

@media (min-width: 992px) {
    .entry-content h3 {
        font-size: 1.3rem;
    }
}

.entry-content h4 {
    font-size: 1.1rem;
}

.entry-content h5 {
    font-size: 1rem;
}

.entry-content h6 {
    font-size: .9rem;
}

.entry-content ul,
.entry-content ol,
.entry-content dd {
    margin: 0 0 1em 1.5em;
    padding: 0;
}

.entry-content ul li ul, .entry-content ul li ol,
.entry-content ol li ul,
.entry-content ol li ol,
.entry-content dd li ul,
.entry-content dd li ol {
    margin-bottom: 0;
}

.entry-content table {
    border-collapse: collapse;
    border-spacing: 0;
    border-bottom: 1em;
    margin-bottom: 1em;
    width: 100%;
    overflow: auto;
    display: block;
    font-size: .8rem;
}

@media (min-width: 992px) {
    .entry-content table {
        font-size: .9rem;
    }
}

.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 #ddd;
    margin: 0 0 10px;
    padding: 20px;
}

.entry-content blockquote p:first-child {
    margin-top: 0;
}

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

.entry-content pre,
.entry-content code {
    font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}

.entry-content pre {
    background: #f5f5f5;
    border: none;
    white-space: pre-wrap;
    text-overflow: ellipsis;
    font-size: 100%;
    line-height: 1.3;
    font-size: .8rem;
    padding: 10px;
}

.entry-content pre > code {
    margin: 0;
    padding: 0;
    white-space: pre;
    border: none;
    background-color: transparent;
    font-family: 'Monaco', 'Consolas', 'Courier New', Courier, monospace, sans-serif;
}

.entry-content code {
    font-size: 90%;
    margin: 0 2px;
    padding: 0px 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
}

.entry-content hr {
    width: 50%;
    border: 0;
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em auto;
}

.entry-content .table-of-contents {
    padding: 1em 1em 1em 2em;
    margin: 1em 0;
    border: 1px solid #ddd;
}

/* 記事下 */
.entry-footer .social-buttons {
    margin-bottom: 1em;
}

.entry-footer-section {
    color: #999;
    font-size: .9rem;
}

.entry-footer-section a {
    color: #999;
}

/* コメント */
.comment-box {
    margin: 1em 0;
}

.comment-box .comment {
    list-style: none;
    margin: 0 0 15px 0;
    padding: 0;
    line-height: 1.7;
    font-size: .85rem;
}

@media (min-width: 768px) {
    .comment-box .comment {
        font-size: .9rem;
    }
}

.comment-box .entry-comment {
    padding: 10px 0 10px 60px;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.comment-box .entry-comment:first-child {
    border-top: 1px solid #ddd;
}

.comment-box .read-more-comments {
    padding: 10px 0;
}

.comment-box .hatena-id-icon {
    position: absolute;
    top: 10px;
    left: 0;
    width: 50px !important;
    height: 50px !important;
    border-radius: 3px;
}

.comment-user-name {
    margin: 0 0 .4em 0;
    font-weight: bold;
}

.comment-content {
    margin: 0 0 .4em 0;
    word-wrap: break-word;
    color: #454545;
    font-size: .85rem;
}

.comment-content p {
    margin: 0 0 .6em 0;
}

.comment-metadata {
    color: #999;
    margin: 0;
    font-size: .8rem;
}

.comment-metadata a {
    color: #999;
}

.leave-comment-title {
    padding: .6em 1em;
    font-size: .85rem;
    border: 1px solid #ddd;
}

/* Pager */
.pager {
    margin: 2em 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

/* サイドバーモジュール */
.hatena-module {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    margin-bottom: 3em;
    font-size: .85rem;
}

@media (min-width: 768px) {
    .hatena-module {
        font-size: .9rem;
    }
}

.hatena-module-title {
    margin-bottom: .6em;
    padding-bottom: .2em;
    font-size: 1rem;
    font-weight: bold;
}

.hatena-module-title a {
    color: #454545;
    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;
}

.hatena-module-profile .id {
    display: block;
    font-weight: bold;
    margin-bottom: .5em;
}

.hatena-module-profile .profile-description p {
    margin-top: 0;
}

/* urllist module */
.hatena-urllist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hatena-urllist li {
    padding: .5em 0;
}

.hatena-urllist li:last-child {
    padding-bottom: 0;
}

.hatena-urllist li a {
    text-decoration: none;
    color:#333;
}

.hatena-urllist li a:hover {
    text-decoration: underline;
}

.hatena-urllist .urllist-category-link {
    font-size: .7rem;
    padding: .1em .3em;
}

.hatena-urllist .urllist-date-link a {
    color: #999;
}

.hatena-urllist .urllist-entry-body {
    margin-top: .3em;
}

/* Search module */
.hatena-module-search-box .search-form {
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.hatena-module-search-box .search-module-input {
    -webkit-box-flex: 1;
        -ms-flex: 1 0;
            flex: 1 0;
    padding: 5px;
    color: #454545;
    background: none;
    border: none;
    outline: none;
    height: 20px;
}

.hatena-module-search-box .search-module-button {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Esearch%3C/title%3E%3Cpath d='M16.7,15l-3.4-3.3h-.1a5.4,5.4,0,0,0,.9-3.1,5.6,5.6,0,1,0-5.6,5.6,5.4,5.4,0,0,0,3.1-.9.1.1,0,0,0,.1.1L15,16.7a1.1,1.1,0,0,0,.8.3,1.6,1.6,0,0,0,.9-.3,1.4,1.4,0,0,0,0-1.7M8.5,12.3A3.8,3.8,0,0,1,4.8,8.5,3.8,3.8,0,0,1,8.5,4.7a3.9,3.9,0,0,1,3.8,3.8,3.8,3.8,0,0,1-3.8,3.8'/%3E%3Crect class='a' width='20' height='20'/%3E%3C/svg%3E") no-repeat center;
    background-size: 20px 20px;
    border: none;
    outline: none;
    color: transparent;
    overflow: hidden;
    opacity: .5;
    cursor: pointer;
}

.hatena-module-search-box .search-module-button:hover {
    opacity: .85;
}

/* About ページ */
.page-about .entry-content dt {
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    margin-bottom: .5em;
}

.page-about .entry-content dd {
    margin-left: 0;
    margin-bottom: 2em;
}

/* Archive */
.archive-header-category {
    text-align: center;
}

.page-archive .archive-entry {
    margin-left: auto;
    margin-right: auto;
    margin-bottom:15px;
    line-height: 1.3;
    background:#fff;
    display:flex;
    position:relative;
    height:120px;
    border-radius:5px;
    border:1px solid #ddd;
}

.page-archive .entry-title {
    margin: .3em auto;
}

.page-archive .entry-thumb {
    width: 130px;
    height: 120px;
    background-size: cover;
    border-radius:5px 0 0 5px;
}

.page-archive .entry-description {
    margin: 0;
    font-size: .85rem;
}


.page-archive .social-buttons {
    display: block;
    margin-top: .3em;
}

@media (min-width: 768px) {
    .page-archive .archive-entry{
        height:150px;
        margin-bottom:30px;
    }
    
    .page-archive .entry-thumb {
        width: 225px;
        height: 150px;
    }
    
    .page-archive .entry-description {
        font-size: .9rem;
    }
}


/* footer */
#footer {
    margin-top: 2em;
    padding-bottom: 2rem;
    text-align: center;
    font-size: .8rem;
    color: #999;
    background:#fff;
    width:100%;
    padding-top:15px;
}

#footer a {
    color: #999;
}

#footer p {
    margin: .5em auto;
}


/*----------------------ここから追記---------------------------------*/

/*ヘッダー画像がない時は上下に余白*/
#blog-title-inner{
  padding:30px 0;
}
/*ヘッダー画像がある時は上下に余白なし*/
.header-image-only #blog-title #blog-title-inner{
    padding:0;
  }
.header-image-enable #blog-title #blog-title-inner{
    padding:0;
}

/*ヘッダーとコンテンツの間に余白*/
#content{
  margin-top:30px;
}


/*日付とタイトルを画像の右側へ*/
.archive-entry-header{
    order:1;
    padding:10px;
}


/*サイドバーの背景を白く*/
.hatena-module{
    background:#fff;
    padding:25px;
    border-radius: 5px;
    border:1px solid #ddd;
}

/*トップページの記事本文非表示*/
.archive-entry-body{
    display:none;
}

.categories{
    position:absolute;
    bottom:5px;
    right:10px;
}


/*--------タブレット画面-----------*/
@media(max-width:991px){
  .header-image-only #blog-title #blog-title-inner{
    height:144px;
    background-size:cover;
  }
  
  .header-image-enable #blog-title #blog-title-inner{
    height:144px;
    background-size:cover;
  }
  
  .header-image-enable #blog-title-content{
    padding-top:50px;
  }
  
  #container{
    padding-right:0;
    padding-left:0;
  }
  
  #content{
    padding-right:10px;
    padding-left:10px;
  }
  
  .page-archive .entry-title{
    font-size: 17px;
  }
    
  .categories a:not(:first-child){
    display:none;
  }
  
  .breadcrumb{
    padding:0 10px;
  }

}


@media (max-width:767px) {
  #blog-description{
    margin-top:0;
  }
  
}

@media (max-width:640px) {
  .header-image-only #blog-title #blog-title-inner{
    height:120px;
  }
}

@media (max-width:500px) {
  .header-image-only #blog-title #blog-title-inner{
    height:100px;
  }
}


/*----------スマホ画面-------------*/
@media (max-width:479px) {
  
  .header-image-enable #blog-title #blog-title-inner{
    height:100px;
  }
  
  .header-image-enable #blog-title-content{
    padding-top:25px;
  }
  
  #title{
    font-size:18px;
  }
  
  #blog-description{
    font-size:12px;
  }
  
  #content{
    margin-top:25px;
  }
  
  .archive-entry-header{
    padding:8px 5px 8px 0;
  }
  
  .entry-inner{
    padding:10px;
  }
  
  .page-archive .entry-title{
    font-size: 15px;
  }
  
  .categories{
    bottom:0px;
    right:5px;
  }
  .categories a{
    font-size:12px;
    padding:4px;
  }
}

@media (max-width:450px) {
  .header-image-only #blog-title #blog-title-inner{
    height:90px;
  }
}

@media (max-width:400px) {
  .header-image-only #blog-title #blog-title-inner{
    height:80px;
  }
}

@media(max-width:359px){
  .header-image-only #blog-title #blog-title-inner{
    height:70px;
  }
  .page-archive .entry-title{
    font-size:13px;
  }
  .categories a{
    font-size:11px;
  }
  .date{
    font-size:12px;
  }
  
}



/*----------------------グローバルナビ------------------------------*/
/* はてなブログにデフォルトで付いてる余白消す */
#colorbook-gnav ul{
   padding-left:0;
}

#colorbook-gnav{
  background:#fff;/*グローバルナビの背景色*/
  border-top:1px solid #eee;
  border-bottom:1px solid #eee;
}

#menu-btn{
  color:#454545;/*スマホ画面の、「メニュー」ボタンの文字色*/
  display:none;
}

#colorbook-gnav-list{
  display:flex;
  flex-wrap: wrap;/*文字を改行してナビを1行にするにはこれ消す*/
  margin:0 auto;
  max-width:1200px;
  justify-content: center; /*ナビ中央寄せ*/
}

#colorbook-gnav-list li{
  list-style: none;
}

#colorbook-gnav a{
  color:#454545;/*グローバルナビの文字色*/
  text-decoration: none;
  display:block;
  padding:15px 18px;
  font-size:14px;/*文字の大きさ*/
  font-weight:bold;
}

#colorbook-gnav a:hover{
  background:#eee;/*マウスを乗せた時の色*/
}


/* --------グローバルナビ　タブレット・スマホ画面--------- */
@media(max-width:960px){
  
  #menu-btn{
    display:block;
    padding-left:10%;
    padding-top:10px;
    padding-bottom:10px;
    text-align:left;
  }

  #colorbook-gnav-list{
    display:none;
  }

  #colorbook-gnav a{
    text-align:left;
  }

}


/*----------目次----------*/
.entry-content .table-of-contents{
  padding:30px;
}

.entry-content .table-of-contents::before{
  content:"目次";
  display:block;
  text-align:center;
  margin-bottom:15px;
}

/* </system> */

/* ==================================================
   1. システム・テーマ基本設定
   ================================================== */

/* 全体のスクロール動作を滑らかにする（トップへ戻るボタン用） */
html {
    scroll-behavior: smooth;
    /* ★追加：上部固定メニューの高さ分＋α、ジャンプ位置を下げる */
    scroll-padding-top: 60px !important; 
}


/* ==================================================
   2. 記事内の見出しデザイン (H2, H3, H4)
   ================================================== */

/* --- H2（大見出し）プランB改：スマホ複数行対応版 --- */
.entry-content h2,
.hatena-module-title {
    background: #e60012 !important; 
    color: #ffffff !important;
    border-radius: 5px;
    
    /* 装飾リセット */
    box-shadow: none !important;
    border: none !important;

    /* ▼ レイアウト・サイズ（flexに戻して中央揃えを復活） */
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    
    height: auto !important;
    min-height: auto !important;
    padding: 0.45em 15px !important; 
    
    margin: 0 0 1.0em 0 !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
}

/* テーマ標準の邪魔なアイコン（隠し要素）を削除 */
.entry-content h2::before,
.entry-content h2::after,
.hatena-module-title::before,
.hatena-module-title::after {
    content: none !important;
    display: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- H3（中見出し） --- */
.entry-content h3 {
    padding: 0.4em 0.6em;
    color: #494949;
    background: #fff0f0;              /* ★背景色：ごく薄い赤色に変更 */
    border-left: solid 5px #e60012;   /* ★左線：ニンテンドーレッド */
    border-bottom: solid 2px #e60012; /* ★下線：ニンテンドーレッド */
}

/* --- H4（小見出し） --- */
.entry-content h4 {
    border-bottom: none !important; /* 下線を削除 */
    padding-bottom: 0 !important;   /* 下線用の余白を削除 */
    font-weight: bold !important;   /* 太字にする */
    color: #333333;                 /* 文字色 */
    margin: 1.5em 0 0.8em 0;        /* 上下の余白 */
}



/* ==================================================
   3. サイドバーの調整（カード化・タイトル調整）
   ================================================== */

/* サイドバーの各モジュールを「カード風」にする */
.hatena-module {
    background-color: #fefefe;  /* 背景色 */
    padding: 10px 15px;         /* 枠内の余白（上下10px, 左右15px） */
    border-radius: 10px;        /* 角丸 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* うっすら影 */
    margin-bottom: 25px;        /* 下のカードとの間隔 */
}

/* サイドバーのタイトル（見出し）だけをスリムに上書き調整
   ※H2の設定よりも優先されます */
.hatena-module-title {
    min-height: 32px !important;    /* 高さを縮小 */
    padding: 0 10px !important;     /* 余白を縮小 */
    font-size: 15px !important;     /* 文字サイズを調整 */
    margin-bottom: 10px !important; /* 本文との隙間を調整 */
}

/* ==================================================
   4. 固定アイコン（ホーム＆トップへ戻る）
   ================================================== */

/* 右下のボタンエリア */
#float-btn-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse; /* 横並び（反転） */
    align-items: flex-end;
    gap: 15px;
}

/* ボタンのデザイン共通設定 */
.float-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #e60012; /* ★ニンテンドーレッドに変更 */
    color: white;              /* アイコンの色 */
    border-radius: 50%;        /* まん丸 */
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity 0.3s;
}

/* マウスを乗せた時 */
.float-btn:hover {
    opacity: 0.8;
    color: white;
}

/* スマホ表示時の位置調整 */
@media (max-width: 767px) {
    #float-btn-area {
        bottom: 15px;
        right: 15px;
    }
    .float-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ==================================================
   5. その他の調整
   ================================================== */

/* 記事一覧ページでサムネイル画像が見切れないようにする */
.page-archive .entry-thumb{
    background-size: contain;
}

/* ==================================================
   6. キャラクター吹き出し会話システム
   ================================================== */

/* --- 基本レイアウト（共通） --- */
.balloon-box {
    display: flex;
    flex-wrap: wrap;       /* スマホで折り返し */
    align-items: flex-start;
    margin-bottom: 20px;   /* 会話ごとの間隔 */
    width: 100%;
}

/* アイコン画像の設定（修正版） */
.balloon-icon {
    width: 70px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.balloon-icon img {
    object-fit: cover;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #eee;
    box-sizing: border-box;
}

/* 吹き出し本体の設定 */
.balloon-text {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    max-width: 100%;
}

/* 吹き出しのしっぽ（基本：左向き） */
.balloon-text::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* --- キャラクター別カラー設定（左側用） --- */

/* バンカー荒木（濃い茶色） */
.balloon-ban .balloon-icon { border-color: #7b4a2e; }
.balloon-ban .balloon-text {
    background-color: #fcf6f0;
    border: 2px solid #7b4a2e;
}
.balloon-ban .balloon-text::before {
    border-right: 10px solid #7b4a2e;
}

/* ポップ結衣（ピンク） */
.balloon-akari .balloon-icon { border-color: #ff99cc; }
.balloon-akari .balloon-text {
    background-color: #fff5fa;
    border: 2px solid #ff99cc;
}
.balloon-akari .balloon-text::before {
    border-right: 10px solid #ff99cc;
}

/* ロジック中田（水色） */
.balloon-kakeru .balloon-icon { border-color: #7db4e6; }
.balloon-kakeru .balloon-text {
    background-color: #f4f9ff;
    border: 2px solid #7db4e6;
}
.balloon-kakeru .balloon-text::before {
    border-right: 10px solid #7db4e6;
}

/* スマホ表示時のサイズ・余白の最適化（完全版） */
@media (max-width: 767px) {
    /* 1. 吹き出し全体を少し外側に広げて横幅を稼ぐ（外側の無駄な余白を削る） */
    .balloon-box {
        margin-left: -5px !important;
        margin-right: -5px !important;
        width: calc(100% + 10px) !important;
    }

    /* 2. アイコンエリアの幅を広げて名前を1行にする */
    .balloon-icon {
        width: 68px !important; /* 6文字がギリギリ収まる幅 */
        height: auto !important;
        margin-right: 8px !important; /* 左キャラ：画像と吹き出しの隙間を詰める */
        margin-left: 0 !important;
    }

    /* ★中田（右側キャラ）の右側にできる謎の空白を消す */
    .chat-area .balloon-box:nth-child(even) .balloon-icon {
        margin-right: 0 !important;
        margin-left: 8px !important; /* 右キャラ：画像と吹き出しの隙間を詰める */
    }

    /* 画像サイズは60pxの真ん丸のまま固定 */
    .balloon-icon img {
        width: 60px !important;
        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;
    }

    /* 3. 名前を1行に強制し、少しだけ文字間を詰める */
    .icon-name {
        white-space: nowrap !important; /* 強制1行 */
        font-size: 10.5px !important;
        letter-spacing: -0.5px !important;
    }

    /* 4. 吹き出し内の余白を減らして文字の入る量を増やす */
    .balloon-text {
        font-size: 14px !important;
        padding: 10px !important; /* 12pxから10pxに減らし、テキストエリアを拡大 */
    }
}



/* ==================================================
   7. 吹き出しの左右交互配置（自動化システム）
   ================================================== */

/* 2人目（偶数番目）を右側に配置 */
.chat-area .balloon-box:nth-child(even) {
    flex-direction: row-reverse; /* 並び順を反転 */
}

/* 右側配置時のアイコン位置調整 */
.chat-area .balloon-box:nth-child(even) .balloon-icon {
    margin-right: 0;
    margin-left: 15px;
}

/* 右側配置時の「しっぽ」の位置調整 */
.chat-area .balloon-box:nth-child(even) .balloon-text::before {
    left: auto;
    right: -10px;
    border-right: none;
    border-left: 10px solid transparent;
}

/* --- 右側配置時のしっぽの色指定 --- */

/* バンカー荒木（右） */
.chat-area .balloon-box:nth-child(even).balloon-ban .balloon-text::before {
    border-left: 10px solid #7b4a2e;
}
/* アカリ（右） */
.chat-area .balloon-box:nth-child(even).balloon-akari .balloon-text::before {
    border-left: 10px solid #ff99cc;
}
/* カケル（右） */
.chat-area .balloon-box:nth-child(even).balloon-kakeru .balloon-text::before {
    border-left: 10px solid #7db4e6;
}

/* ==================================================
   8. Amazon商品紹介カードのデザイン調整
   ================================================== */

.hatena-asin-detail {
    border: 1px solid #ddd !important; /* 薄い枠線 */
    border-radius: 10px !important;    /* 角丸 */
    padding: 15px !important;          /* 内側の余白 */
    margin-bottom: 30px !important;    /* 下の余白 */
    background-color: #fff !important; /* 背景色 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* ふんわりした影 */
    display: flex; /* フレックスボックス化（スマホ崩れ防止） */
    flex-direction: row;
    align-items: center;
}

/* 商品画像の調整 */
.hatena-asin-detail-image {
    margin-right: 20px !important;
    flex-shrink: 0; /* 画像が潰れないようにする */
}
.hatena-asin-detail-image img {
    border-radius: 5px; /* 画像の角を少し丸く */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* 画像に影をつける */
    max-width: 100px; /* 画像サイズ制限（スマホ対策） */
    height: auto;
}

/* 商品タイトル・情報の調整 */
.hatena-asin-detail-info {
    font-size: 14px;
    line-height: 1.6;
}
.hatena-asin-detail-title {
    font-weight: bold;
    font-size: 16px !important;
    margin-bottom: 5px;
    color: #0066cc; /* リンク色 */
}

/* スマホ表示時の調整 */
@media (max-width: 767px) {
    .hatena-asin-detail {
        flex-direction: column; /* 縦並びにする */
        text-align: center;
    }
    .hatena-asin-detail-image {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
}

/* ==================================================
   9. ブログの幅・カラム幅の調整
   ================================================== */

/* PC画面（幅1000px以上）でのレイアウト幅を指定 */
@media screen and (min-width: 1000px) {
    /* 記事エリアの幅 */
    #main {
        width: 740px;
    }
    /* サイドバーの幅 */
    #box2 {
        width: 240px;
    }
    /* ブログ全体の幅 */
    #container #content {
        width: 1000px;
    }
}



/* ==================================================
   10. 吹き出しアイコン下の名前表示
   ================================================== */

/* 名前（spanタグ）のデザイン */
.icon-name {
    display: block;          /* 独立したブロックにする */
    font-size: 11px;         /* 小さめの文字サイズ */
    color: #999;             /* 少し薄い灰色 */
    text-align: center;      /* 中央揃え */
    margin-top: 5px;         /* アイコン画像との隙間 */
    line-height: 1.2;        /* 行間を狭く */
}

/* アイコンエリア全体の調整（名前が入った分、縦長になるのを防ぐ） */
.balloon-icon {
    display: flex;           /* フレックスボックス化 */
    flex-direction: column;  /* 縦並びにする */
    align-items: center;     /* 中央揃え */
    height: auto !important;
    border: none !important; /* 名前を含めた全体を囲む枠線は不要なので消す */
    background: transparent;
    overflow: visible !important; /* 名前が見えるようにする */
}

/* 画像だけに枠線をつけるように変更 */
.balloon-icon img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee; 
    box-sizing: border-box; /* 枠線をサイズに含める */
}

/* 各キャラの枠線色も画像側に移動 */
.balloon-ban .balloon-icon img { border-color: #7b4a2e; }
.balloon-akari .balloon-icon img { border-color: #ff99cc; }
.balloon-kakeru .balloon-icon img { border-color: #7db4e6; }


/* ==================================================
   11. サイドバー用プロフィールカード（個別タイプ）
   ================================================== */
/* カード全体のデザイン（既存のサイドバー装飾をリセットして再定義） */
.hatena-module-html .sidebar-profile-card {
    /* 既存の枠線を打ち消すための設定 */
    margin: -10px -15px; 
    padding: 20px 15px;
    border-radius: 10px;
    background: #fff;
    text-align: center; /* 全体を中央揃え */
}
/* 丸いアイコン画像のエリア */
.profile-icon-area {
    width: 100px;  /* アイコンの大きさ */
    height: 100px;
    margin: 0 auto 10px; /* 中央配置と下の余白 */
    position: relative;
}
/* 画像を丸く切り抜く設定 */
.profile-icon-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミング */
    border-radius: 50%; /* 完全に丸くする */
    border: 3px solid #eee; /* アイコン周りの枠線（基本色） */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* うっすら影 */
}
/* 名前のデザイン */
.profile-name {
    font-weight: bold;
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #333;
}
/* 紹介文のデザイン */
.profile-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: inline-block; /* 中央揃えを維持しつつ左寄せっぽく見せる */
    text-align: left;
}
/* --- キャラクター別カラー設定（枠線と名前に色を付ける） --- */
/* バンカー荒木（濃い茶色） */
.profile-ban .profile-icon-area img { border-color: #7b4a2e; }
.profile-ban .profile-name { color: #7b4a2e; }
/* アカリ（ピンク） */
.profile-akari .profile-icon-area img { border-color: #ff99cc; }
.profile-akari .profile-name { color: #ff99cc; }
/* カケル（水色） */
.profile-kakeru .profile-icon-area img { border-color: #7db4e6; }
.profile-kakeru .profile-name { color: #7db4e6; }

/* --- スマホ表示時：プロフィールカードをコンパクトに --- */
@media (max-width: 767px) {
    .hatena-module-html .sidebar-profile-card {
        padding: 15px 10px;
    }
    .profile-icon-area {
        width: 80px;
        height: 80px;
        margin: 0 auto 8px;
    }
    .profile-icon-area img {
        border-width: 2px;
    }
    .profile-name {
        font-size: 15px;
        margin: 0 0 6px 0;
    }
    .profile-desc {
        font-size: 14px;
        line-height: 1.6;
    }
}


/* ==================================================
   12. 記事末尾のID（ユーザー名）を非表示にする
   ================================================== */
span.author.vcard {
    display: none !important;
}



/* ==================================================
   13. 記事本文の行間・余白の調整（強力版）
   ================================================== */
/* 最後の閉じカッコの外側にあることを確認してください */

.entry-content p {
    /* 行間（行の高さ） */
    line-height: 1.8 !important;

    /* 段落周りの余白（上 右 下 左） */
    /* 下の余白を 0 にしても変わらないか確認してください */
    margin: 0 0 0.8em 0 !important;
}



/* ==================================================
   14. 駿河屋商品リンクカード（はてなブログ完全対応版）
   ================================================== */

/* カード全体の枠組み（divタグに戻しました） */
.surugaya-card {
    position: relative;             /* ★重要：リンクを広げるための基準点 */
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px 15px 10px 15px;     /* 内側の余白（上15px 右15px 下15px 左15px） */
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    color: #333;
    transition: all 0.2s ease;      /* ホバー時の動き */
}

/* カード全体にマウスを乗せた時の動き */
.surugaya-card:hover {
    background-color: #fdfdfd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* 左側：画像を表示するエリア */
.surugaya-image {
    flex-shrink: 0;
    margin-right: 20px;
    width: 40%;
    max-width: 250px;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    
    height: 200px;
    overflow: hidden;
}

/* 画像本体の設定 */
.surugaya-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

/* 右側：情報エリア */
.surugaya-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 220px;
}

/* 商品名 */
.surugaya-title {
    font-weight: bold;
    font-size: 18px;
    color: #0066cc;
    margin-bottom: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: text-decoration 0.2s;
}

/* カード全体ホバー時にタイトルに下線を引く */
.surugaya-card:hover .surugaya-title {
    text-decoration: underline;
}

/* 発売元・メーカー名 */
.surugaya-maker {
    font-size: 14px;
    color: #666;
    margin: 30px 0;
}

/* 駿河屋ボタン（これが実際のリンクになります） */
a.surugaya-btn {
    width: 100%;
    background-color: #f6f7f9;
    color: #0f2d78 !important;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #dcdcdc;
    transition: all 0.2s;
    display: block;
    text-decoration: none;
    
    /* ★重要：z-indexを調整 */
    position: static; 
}

/* ★魔法のコード：ボタンのリンク判定をカード全体に広げる */
a.surugaya-btn::after {
    content: "";
    position: absolute; /* 親(card)を基準に絶対配置 */
    top: 0;
    left: 0;
    width: 100%;        /* 幅100% */
    height: 100%;       /* 高さ100% */
    z-index: 1;         /* 最前面に持ってくる */
    cursor: pointer;
}

/* カード全体ホバー時にボタンの色を変える */
.surugaya-card:hover a.surugaya-btn {
    background-color: #b7dbff;
    border-color: #3c85e6;
}



/* ==================================================
   15. パンくずリストの非表示
   ================================================== */
.breadcrumb {
    display: none !important;
}



/* ==================================================
   16. 広告枠の強制センタリング（Active View対策）
   ================================================== */
.ad-center-wrapper {
    margin: 2.5em 0;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直方向のど真ん中に配置 */
    align-items: center;
    overflow: hidden;
}
.ad-center-wrapper ins {
    width: 100% !important; /* フレックスボックスによる幅縮小を防ぐ */
}


/* ==================================================
   17. 個別作品テーブル（表）の左列の改行を防ぐ
   ================================================== */
.entry-content table tbody th {
    white-space: nowrap !important; /* 文字の強制改行を禁止して1行にする */
    width: auto !important;         /* HTML直書きの「width: 25%」を解除し、文字数に合わせた幅に最適化 */
    padding-left: 10px !important;  /* スマホ用に余白を少し調整 */
    padding-right: 10px !important;
}




/* ==================================================
   18. 時代背景（コラム）枠のデザイン
   ================================================== */

/* 枠全体の設定 */
.history-box {
    background: #ffffff !important; /* ★ここを #ffffff から #fff5f5 に変更（ほんのり薄い赤背景） */
    border: 2px solid #e60012 !important; 
    border-radius: 8px !important;
    padding: 1.5em 1.5em 1.2em 1.5em !important;
    margin: 2em 0 !important;
    box-shadow: 4px 4px 0 rgba(230, 0, 18, 0.15) !important; 
}

/* タイトル部分の設定 */
.history-box .history-title {
    color: #e60012 !important; /* 文字色を赤に */
    font-size: 1.1em !important;
    font-weight: bold !important;
    border-bottom: 2px dashed #e60012 !important; /* 赤の破線 */
    padding-bottom: 0.5em !important;
    margin-bottom: 1em !important;
    display: block !important;
}

/* 枠内のテキスト */
.history-box p {
    color: #333333 !important;
    margin-bottom: 0.8em !important;
    line-height: 1.8 !important;
}
.history-box p:last-child {
    margin-bottom: 0 !important;
}



/* ==================================================
   19. スマホ専用トップメニューバー（コンパクト版）
   ================================================== */
/* PC表示時は非表示 */
#mobile-bottom-menu {
    display: none;
}
/* スマホ表示時（767px以下） */
@media (max-width: 767px) {
    /* PC用の丸いボタンをリセット */
    #float-btn-area {
        display: none !important;
    }
    
    /* 余白設定の変更：下ではなく「上」にメニュー分の余白を空ける */
    body {
        padding-bottom: env(safe-area-inset-bottom, 0) !important; 
        padding-top: 50px !important; 
    }
    /* メニュー本体：上端固定に設定 */
    #mobile-bottom-menu {
        display: flex;
        position: fixed !important;
        top: 0 !important;
        bottom: auto !important;
        left: 0;
        width: 100%;
        height: 50px;
        background-color: #ffffff; 
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        z-index: 9999; 
        justify-content: space-around;
        align-items: center;
        padding-top: env(safe-area-inset-top, 0);
    }
    /* 各ボタンのデザイン */
    .menu-item {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 25%; 
        color: #555555; 
        text-decoration: none;
        transition: color 0.2s;
        padding-top: 5px !important;
    }
    /* アイコンサイズ */
    .menu-item i {
        font-size: 18px !important; 
    }
    /* 文字サイズと隙間 */
    .menu-item span {
        font-size: 9px !important;
        margin-top: 2px !important;
        font-weight: bold;
    }
    /* タップ時のニンテンドーレッド */
    .menu-item:active,
    .menu-item:focus {
        color: #e60012;
    }
}



/* ==================================================
   20. 関連記事・注目記事のサムネイル最適化（スマホ用）
   ================================================== */

@media (max-width: 767px) {
    /* 「関連記事」と「注目記事」の画像エリアと画像本体を150pxに強制上書き */
    .hatena-module-related-entries .urllist-image,
    .hatena-module-entries-access-ranking .urllist-image,
    .hatena-module-related-entries .urllist-image img,
    .hatena-module-entries-access-ranking .urllist-image img {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
    }
}



/* ==================================================
   21. 記事タイトル下のカテゴリタグを非表示
   ================================================== */
.entry-header .entry-categories {
    display: none !important;
}




/* ==================================================
   22. 記事タイトル下の余白を詰める
   ================================================== */
/* 記事タイトル自体の下の余白を消す */
.entry-title {
    margin-bottom: 5px !important; 
}

/* ヘッダー全体（タイトルからグレーの線まで）の余白を狭くする */
.entry-header {
    padding-bottom: 15px !important; 
}



/* ==================================================
   23. PC用フローティングボタンの位置調整（ワイドモニター対策）
   ================================================== */

/* 通常のPCサイズ（タブレット〜標準モニター） */
@media (min-width: 768px) {
    #float-btn-area {
        right: 20px !important; /* 基本は画面右端から20pxの位置 */
    }
}

/* ワイドモニター（画面幅が1150px以上）の時だけ適用 */
@media (min-width: 1150px) {
    #float-btn-area {
        /* 画面の「中央」から右へ600pxの位置に固定（サイドバーのすぐ隣） */
        right: calc(50vw - 600px) !important;
    }
}



/* ==================================================
   24. 記事末尾の投稿日付（〇日前）を非表示
   ================================================== */
.entry-footer-time,
.entry-footer .date {
    display: none !important;
}



/* ==================================================
   25. カテゴリーページの大きなタイトルを非表示＆余白調整
   ================================================== */
.page-archive .archive-heading {
    display: none !important;
}

/* カテゴリーページ等で上に引き上げて隙間を詰める */
.page-archive .archive-entries {
    margin-top: -45px !important;
    padding-top: 0 !important;
}

/* ★追加：ホーム画面（トップページ）の時だけは引き上げを解除する */
.page-index .archive-entries {
    margin-top: 0 !important; /* ※もしホーム画面でサイドバーと高さがズレる場合は、10pxや20pxなどに調整してください */
}



/* ==================================================
   26. 記事本文のテキストサイズ調整（スマホ専用）
   ================================================== */
@media (max-width: 767px) {
    /* 段落(p)と箇条書き(li)の文字サイズをスマホ時のみ上書き */
    .entry-content p,
    .entry-content li {
        font-size: 16px !important; /* ★ここでサイズを調整（14px〜15pxがおすすめです） */
    }
}



/* ==================================================
   27. 目次オーバーレイパネル（スマホ専用）
   ================================================== */
#toc-overlay-panel {
    display: none;
}
@media (max-width: 767px) {
    #toc-overlay-panel {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        pointer-events: none;
    }
    .toc-overlay-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    .toc-overlay-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 80vh;
        background: white;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        pointer-events: none;
    }
    #toc-overlay-panel.toc-overlay-visible {
        pointer-events: auto;
    }
    #toc-overlay-panel.toc-overlay-visible .toc-overlay-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    #toc-overlay-panel.toc-overlay-visible .toc-overlay-content {
        transform: translateY(0);
        pointer-events: auto;
    }
    /* ▼ヘッダー（タイトル＋閉じるボタン） */
    .toc-overlay-header {
        padding: 14px 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-shrink: 0;
        background: #e60012;
        color: white;
        border-radius: 12px 12px 0 0;
    }
    .toc-overlay-title {
        font-size: 16px;
        font-weight: bold;
    }
    .toc-overlay-close {
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 1;
    }
    /* ▼目次リスト：スクロール領域 */
    .toc-overlay-list {
        overflow-y: auto;
        padding: 12px 18px 24px 18px;
        flex-grow: 1;
        -webkit-overflow-scrolling: touch;
    }
    /* リセット（はてな[:contents]は外側ulなしのli直置き構造） */
    .toc-overlay-list,
    .toc-overlay-list ul,
    .toc-overlay-list ol {
        list-style: none !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }
    .toc-overlay-list li {
        margin: 0;
        list-style: none !important;
    }
    /* ▼リンク基本スタイル（共通） */
    .toc-overlay-list a {
        color: #333;
        text-decoration: none;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        line-height: 1.4;
        padding: 12px 8px;
    }
    .toc-overlay-list a:active {
        background: #fff0f0;
        color: #e60012;
    }
    /* ▼第1階層（h2相当・li直下）：左端表示＋赤字強調（下線なし） */
    .toc-overlay-list > li > a {
        font-weight: bold;
        color: #e60012;
        padding: 14px 8px;
        border-bottom: none;
        font-size: 15px;
        margin-top: 8px;
    }
    .toc-overlay-list > li:first-child > a {
        margin-top: 0;
    }
    /* ▼第2階層（h3相当・li > ul > li）：左インデントで階層感 */
    .toc-overlay-list > li > ul > li > a {
        padding-left: 24px;
        font-size: 14px;
        color: #333;
    }
    /* ▼第3階層（h4相当・もっと深い場合）：さらにインデント */
    .toc-overlay-list > li > ul > li > ul > li > a {
        padding-left: 44px;
        font-size: 13px;
        color: #555;
    }
}


/* ==================================================
   28. 読み進め進捗バー＋Complete演出（スマホ専用・記事ページ）
   ================================================== */
#reading-progress-bar {
    display: none;
}
#reading-complete-badge {
    display: none;
}
@media (max-width: 767px) {
    /* ▼進捗バー本体 */
    #reading-progress-bar {
        display: block;
        position: fixed;
        left: 0;
        top: 50px;
        height: 2px;
        background: #ffb3b3;
        width: 0%;
        z-index: 10001;
        transition: width 0.1s ease-out;
        pointer-events: none;
    }
    /* ▼Completeバッジ：通常時は非表示 */
    #reading-complete-badge {
        display: block;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: linear-gradient(135deg, #fff5f5, #ffe0e0);
        padding: 32px 48px;
        border-radius: 20px;
        box-shadow: 0 12px 40px rgba(230, 0, 18, 0.35);
        z-index: 10002;
        pointer-events: none;
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
        text-align: center;
        border: 2px solid #ffb3b3;
    }
    #reading-complete-badge.show {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    /* "Complete!!" テキスト：太字赤 */
    .badge-text {
        font-size: 26px;
        font-weight: bold;
        color: #e60012;
        letter-spacing: 0.08em;
        margin-bottom: 14px;
        line-height: 1.2;
    }
    /* "お楽しみいただき / ありがとうございます" 2行 */
    .badge-sub {
        font-size: 14px;
        color: #c0707a;
        line-height: 1.7;
        letter-spacing: 0.03em;
    }
}



/* ==================================================
   29. 目次パネル：訪問済みマーカー
   ================================================== */
@media (max-width: 767px) {
    /* 訪問済みリンク（h3階層）：薄いグレー＋右にチェックマーク */
    .toc-overlay-list a.toc-visited {
        color: #aaa !important;
        position: relative;
    }
    .toc-overlay-list a.toc-visited::after {
        content: '✓';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #aaa;
        font-size: 14px;
        font-weight: bold;
    }
    /* 訪問済みリンク（h2階層）：赤を薄ピンクに */
    .toc-overlay-list > li > a.toc-visited {
        color: #f5a0a0 !important;
    }
}





/* ==================================================
   31. 記事本文の目次を非表示（目次パネル対応3記事のスマホ限定）
   ================================================== */
@media (max-width: 767px) {
    body.toc-panel-active .entry-content .table-of-contents {
        display: none !important;
    }
}



/* ==================================================
   32. メニューバー目次ボタン：明滅アニメーション
   ================================================== */
@media (max-width: 767px) {
    /* 目次ボタンの明滅（toc-blinkクラスが付与されている時のみ） */
    .menu-item.toc-blink {
        animation: tocBlink 1.5s ease-in-out infinite;
    }
    .menu-item.toc-blink i,
    .menu-item.toc-blink span {
        color: #e60012 !important;
    }
    @keyframes tocBlink {
        0%, 100% {
            opacity: 1;
        }
        50% {
            opacity: 0.35;
        }
    }
}



/* ==================================================
   33. 公式サイトボタン（手書きAmazon風カード用）
   ================================================== */
.official-link-button {
    display: block;
    width: 100%;
    background-color: #e9e9e9;
    color: #0066cc !important;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    margin-top: 12px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.official-link-button:hover {
    background-color: #dadada;
    text-decoration: underline;
    color: #0066cc !important;
}
.official-link-button:active {
    background-color: #cccccc;
}






