@charset "utf-8";

/* ==========================================================================
   Imports & Fonts
   ========================================================================== */
/* フォント */
@import url('https://fonts.googleapis.com/css?family=Cabin');
@import url('https://fonts.googleapis.com/css?family=Montserrat');
/* カテゴリ階層化CSS (元コードのlinkタグを修正) */
@import url("https://hatena.wackwack.net/v1.1/css/fulldisplay.min.css");

/*
  Theme: Naked
  Author: Yukihy
  Description: this theme can be customized flexibly
  Responsive: yes
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */
/* サイドバー黒線#acacac 日付など灰色#888 薄い灰色#ccc 背景など薄い灰色#f5f5f5 リンク青#0693cd */
body {
    color: #444;
    font-family: 'arial', 游ゴシック, YuGothic, 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo, 'ＭＳ Ｐゴシック', sans-serif;
    font-size: 16px;
    /* 元の背景画像を無効化し、白背景を適用 */
    background-image: none;
    background-color: #fff;
    background-attachment: fixed;
    background-size: cover;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    position: relative;
    z-index: 2;
}

#content a {
    text-decoration: none;
}

#content a:hover {
    opacity: .6;
}

/* フォント指定 */
p, h1, h2, h3, h4, h5, body, .entry-title.entry-content {
    font-family: Arial, Helvetica, "游ゴシック", YuGothic, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

p {
    font-size: 95%;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   Layout & Structure
   ========================================================================== */
#content {
    position: relative;
    /* background-color: #f5f5f5; */
}

/* コンテンツ幅を見やすく調整 (1360px -> 1100px) */
#blog-title-inner,
#content-inner {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
}

#blog-title-content {
    padding: 80px 0px 20px 15px;
    max-width: 1100px; /* ここも合わせる */
    width: 90%;
}

#content-inner {
    padding-top: 30px;
}

#content-inner::after {
    display: block;
    visibility: hidden;
    clear: both;
    height: 0;
    content: '';
}

#wrapper {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    margin-right: -340px;
    padding-right: 340px;
}

#box2 {
    float: right;
    width: 300px;
    padding-bottom: 40px;
    margin-top: 10px;
    font-size: 90%;
}

article {
    position: relative;
    margin: 10px 0 40px 0;
    padding: 32px 32px 40px 32px;
    background-color: #fff;
}

#footer-inner {
    padding-top: 20px;
    padding-bottom: 30px;
}

/* 数字フォントの変更部分 */
.entry-date a,
#box2 .urllist-date-link a,
#box2 .hatena-module-archive .hatena-module-body a,
.archive-entry-header .date a {
    font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   Header & Blog Title
   ========================================================================== */
#globalheader-container {
    color: #ccc;
}

#title {
    display: inline;
}

#title a {
    color: #000;
    font-family: 'Cabin', sans-serif;
    font-size: 30px;
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 5px;
}

#blog-description {
    font-family: 'Cabin', sans-serif;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 1px;
}

/* トップ画の装飾 */
.topimg {
    margin: 0 auto 0px;
    padding-bottom: 20px;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px; /* ここも合わせる */
    width: 100%;
    float: none;
    background-position: center;
    display: flex;
}

.topimg:hover {
    opacity: 0.85;
}

.page-entry .topimg {
    display: none;
}

.page-about .topimg {
    display: none;
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */
#n-menu .menu-inner {
    max-width: 1100px; /* コンテンツ幅に合わせる */
    width: 90%; 
    height: 40px;
    margin: 0 auto;
}

#n-menu .menu-btn {
    display: none;
}

#n-menu .menu-content {
    list-style-type: none;
    width: 100%;
    height: 100%;
    padding-left: 0;
    margin: 0;
}

#n-menu .menu-content > li {
    position: relative;
    float: left;
    height: 100%;
    text-align: center;
}

#n-menu .menu-content > li > a {
    display: block;
    height: 100%;
    padding: 0 15px;
    color: #000;
    font-size: 80%;
    font-weight: bold;
    text-decoration: none;
    line-height: 40px;
}

#n-menu .menu-content > li > a:hover {
    background-color: rgba(0, 0, 0, 0.09);
    border: 0px solid #acacac;
}

/* ２階層目 */
#n-menu .menu-content > li:hover .second-level {
    visibility: visible;
    top: 40px;
    opacity: 1;
    transition: .5s;
}

#n-menu .second-level {
    visibility: hidden;
    list-style-type: none;
    position: absolute;
    z-index: 9999;
    top: 60px;
    width: 200px;
    margin: 0;
    padding-left: 0;
    border: 0px solid #acacac;
    opacity: 0;
}

#n-menu .second-level > li {
    display: block;
    width: 100%;
    border-bottom: 0px solid #acacac;
    text-align: center;
}

#n-menu .second-level > li:last-child {
    border-bottom: none;
}

#n-menu .second-level > li > a {
    display: block;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #444;
    font-size: 70%;
    font-weight: bold;
    text-decoration: none;
}

#n-menu .second-level > li > a:hover {
    background-color: gray;
    color: #fff;
}

/* ==========================================================================
   Entry (Article) Styles
   ========================================================================== */
.entry-header {
    position: relative;
}

/* 日付 */
.entry-date a {
    color: #888;
    font-size: 12px;
}

.entry-date a::before {
    margin-right: 1px;
    font-family: 'blogicon';
    content: '\f043';
}

.entry-date .hyphen {
    display: none;
}

.entry-date .date-month::before,
.entry-date .date-day::before {
    content: '.';
}

/* 記事タイトル */
.entry-title {
    margin: 0;
    padding: 0.5em 0 0.5em 0;
    line-height: 1.2;
}

.entry-title a {
    color: #222;
    font-size: 26px;
    letter-spacing: 1px;
}

/* カテゴリ */
.entry-categories {
    margin-bottom: 10px;
}

.entry-categories a {
    margin: 0 4px 10px 0;
    color: #888;
    font-size: 12px;
}

.entry-categories a::before {
    margin-right: 3px;
    font-family: 'blogicon';
    content: '\f022';
}

/* 編集リンク */
.entry-header-menu {
    position: absolute;
    right: 0;
    top: 0;
}

.entry-header-menu a {
    display: inline-block;
    padding: 10px 20px;
    border: double #ccc;
    color: #222 !important;
    font-size: 12px;
    font-weight: bold;
}

/* 記事本文 */
.entry-content {
    color: #444;
    font-size: 16px;
}

.entry-content a {
    color: #0693cd;
}

.etnry-content p {
    margin: 1em 0;
    line-height: 1.7em;
}

/* 見出し */
.entry-content h1 {
    margin: 36px -32px 20px -32px;
    padding: 20px 5px 20px 20px;
    border-left: 5px solid #444;
    color: #444;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 2px;
}

.entry-content h2 {
    margin: 36px -32px 20px -32px;
    padding: 20px 5px 20px 20px;
    background-color: #444;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 2px;
}

.entry-content h3 {
    margin: 32px 0px 20px 0px;
    padding: 1.5em 0.5em 1.5em 0.5em;
    border-left: 0px solid #444;
    background-color: #fff;
    color: #444;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 3px;
    border-top: solid 2px #444;
    border-bottom: solid 2px #444;
}

.entry-content h4 {
    margin: 28px 0px 20px 0px;
    padding: 0 12px;
    border-bottom: 10px solid #f6f6f6;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 1px;
}

.entry-content h5 {
    position: relative;
    margin: 28px 0 20px 16px;
    color: #444;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

.entry-content h5::before {
    position: absolute;
    top: -webkit-calc(50% - 4px);
    top: calc(50% - 4px);
    left: -16px;
    border: 5px solid #444;
    content: '';
}

.entry-content h6 {
    margin: 28px 0 20px 0;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

/* 続きを読むボタン */
a.entry-see-more {
    display: inline-block;
    padding: 10px 20px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
}

/* 引用 */
.entry-content blockquote {
    position: relative;
    margin: 0;
    padding: 30px;
    background-color: #f6f6f6;
}

.entry-content blockquote::before {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    opacity: .2;
    font-family: serif;
    font-size: 500%;
    line-height: 1;
    content: '“';
}

.entry-content blockquote::after {
    position: absolute;
    right: 0;
    bottom: 0;
    opacity: .2;
    font-family: serif;
    font-size: 500%;
    line-height: 0;
    content: '”';
}

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

.entry-content blockquote cite {
    font-weight: bold;
    font-style: italic;
}

/* リスト */
.entry-content ul {
    margin: 16px 0;
    padding: 0 0 0 40px;
}

.entry-content ul ul {
    margin-top: 0;
    margin-bottom: 0;
}

.entry-content ol {
    margin: 16px 0;
    padding: 0 0 0 40px;
}

.entry-content ol ol {
    margin-top: 0;
    margin-bottom: 0;
}

/* 定義リスト */
.entry-content dt {
    margin-top: 1.7em;
    border-bottom: 5px solid #f6f6f6;
    font-weight: bold;
}

.entry-content dd {
    margin-bottom: 1.7em;
}

/* テーブル */
.entry-content table {
    border-spacing: 0;
    border-collapse: collapse;
    max-width: none;
    width: 100%;
    margin: 0 0 1.7em;
    border: 1px solid #ccc;
    font-size: 90%;
    line-height: 1.6;
}

.entry-content th,
.entry-content td {
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #ccc;
}

.entry-content th:first-child,
.entry-content td:first-child {
    border-left: none;
}

.entry-content th {
    display: table-cell;
    padding: 1em;
    background-color: #efefef;
    font-weight: bold;
}

.entry-content tbody {
    display: table-row-group;
    border-color: inherit;
    vertical-align: middle;
}

.entry-content td {
    padding: 1em;
    text-align: center;
}

.entry-content pre {
    padding: 24px;
    background-color: #222;
    color: #eee;
}

.entry-footer {
    font-size: 90%;
}

/* ==========================================================================
   Modules (Sidebar & Others)
   ========================================================================== */
/* コメント欄 */
.comment-box {
    padding-bottom: 40px;
}

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

.comment-box .entry-comment {
    margin-bottom: 10px;
}

.comment-box .comment-user-name {
    margin-bottom: 0;
}

.comment-box .comment-user-id {
    color: #333;
    font-weight: bold;
}

.comment-box .hatena-id-icon {
    width: 40px;
    height: 40px;
}

.comment-box .comment-content {
    padding: 10px 30px;
    background-color: #f6f6f6;
}

/* サイドバーモジュール */
.hatena-module-title a,
.hatena-module-body a {
    color: #444;
}

#box2 .hatena-module {
    margin-bottom: 20px;
    clear: both;
    overflow: hidden;
}

.hatena-module-title {
    margin-bottom: 10px;
    padding: 5px 15px;
    border-left: 5px solid #ccc;
    color: #444;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* プロフィール */
.profile-description a {
    color: #0693cd;
}

.profile-icon {
    margin: 0 16px 16px 0;
    border-radius: 4px;
    float: left;
    overflow: hidden;
}

/* 検索フォーム */
.search-form {
    position: relative;
    height: 40px;
    padding: 10px 0;
}

.search-module-input {
    width: 240px;
    width: -webkit-calc(100% - 60px);
    width: calc(100% - 60px);
    height: 100%;
    margin: 0 auto;
    padding: 0 40px 0 20px;
    border: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background-color: #fff;
    -webkit-transition: .5s;
    -moz-transition: .5s;
    -ms-transition: .5s;
    -o-transition: .5s;
    transition: .5s;
}

.search-module-input:focus {
    background-color: #555;
    color: #fff;
}

.search-module-button {
    position: absolute;
    top: 10px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    -webkit-border-radius: 0 3px 3px 0;
    -moz-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    background: transparent url(https://cdn.blog.st-hatena.com/images/theme/search.png?version=031141611b07a1920489b9bac6ce4b) no-repeat right center;
    background-position: center;
    text-indent: -9999px;
}

/* リンク */
.hatena-module-links .hatena-urllist {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.hatena-module-links li {
    display: block;
    border-top: 1px solid #acacac;
}

.hatena-module-links li:last-child {
    border-bottom: 1px solid #acacac;
}

.hatena-module-links a {
    display: block;
    padding: 8px 0;
    color: #0693cd !important;
}

/* 最新記事・関連記事・注目記事 */
.recent-entries,
.entries-access-ranking,
.related-entries {
    margin: 0 0 10px 0;
    padding: 0;
}

.urllist-item {
    list-style-type: none;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #fff;
}

.urllist-item a {
    color: #444;
    text-decoration: none;
}

.urllist-date-link a,
.urllist-categories a {
    color: #888;
    font-size: 10px;
}

.urllist-date-link a::before {
    font-family: 'blogicon';
    content: '\f043';
}

.urllist-categories a::before {
    font-family: 'blogicon';
    content: '\f022';
}

.urllist-title-link {
    font-size: 13px;
    font-weight: bold;
}

.urllist-entry-body {
    color: #888;
    font-size: 10px;
}

/* カテゴリ */
.hatena-module-category .hatena-urllist {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.hatena-module-category li {
    display: block;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #acacac;
    font-size: 12px;
}

.hatena-module-category a:hover {
    padding: 8px 5px 8px 15px;
}

.hatena-module-category .hatena-module-body ul.hatena-urllist li {
    width: auto;
    overflow: hidden;
    border-bottom: 0px;
}

/* 月間アーカイブ */
.hatena-module-archive .hatena-urllist {
    margin: 10px 0;
    font-size: 14px;
}

.archive-module-year {
    padding: 8px 0;
}

.archive-module-months {
    font-size: 13px;
}

.archive-module-month {
    padding-left: 30px;
}

/* 最新のコメント */
.recent-comments {
    list-style: none;
    margin: 10px 0;
    padding: 0;
}

.recent-comments li {
    padding: 10px 0;
    border-bottom: 1px solid #acacac;
}

.recent-comments a::before {
    font-family: 'blogicon';
    content: '\f01d';
}

/* 参加グループ */
.hatena-module-circles .hatena-urllist {
    margin: 10px 0;
    padding: 0;
}

.hatena-module-circles li {
    margin-bottom: 10px;
}

.hatena-module-circles a {
    font-weight: bold;
}

/* ==========================================================================
   Pager
   ========================================================================== */
.pager {
    overflow: hidden;
    margin-bottom: 40px;
}

.pager a {
    color: #0693cd;
}

.pager .pager-prev {
    float: left;
    width: 40%;
    text-align: left;
    margin-left: 9%;
    font-weight: bold;
}

.pager .pager-next {
    float: right;
    width: 40%;
    text-align: right;
    margin-right: 9%;
    font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer {
    color: #fff;
    text-align: center;
    background: #676F74;
    width: 100%;
    margin: 0;
    padding: 2em 40px 1em 40px;
    box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
    font-size: 80%;
}

#footer a {
    color: #ccc;
    font-weight: bold;
    text-decoration: none;
}

#footer a:hover {
    opacity: .6;
}

/* オリジナルフッター */
#n-footer {
    padding: 40px 0;
    background-color: #eee;
}

#n-footer-inner {
    overflow: hidden;
    width: 300px;
    margin: 0 auto;
}

#n-footer .content {
    width: 300px;
    margin-bottom: 10px;
}

#n-copyright {
    padding-top: 30px;
    padding-bottom: 60px;
}

#n-copyright h4,
#n-copyright a {
    color: #fff;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
}

/* フッター編集エリア */
#bottom-editarea {
    width: 100%;
    margin: 0 auto;
    background: #7f8c8d;
    padding: 0;
    color: #fff;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    display: inline-block;
    padding: 0 6px;
    font-size: 14.5px;
    box-sizing: border-box;
}

.copyright {
    font-size: 10px;
}

/* ==========================================================================
   Pages (About, Archive, Category)
   ========================================================================== */
.page-about .entry-content .profile-icon {
    width: 32px;
    height: 32px;
}

.page-archive .archive-heading {
    margin: 0 0 20px 0;
    font-size: 24px;
}

/* タイルデザイン（アーカイブページ） */
.page-archive .archive-entries {
    margin: 10px 0 40px 0;
    display: flex;
    flex-wrap: wrap;
}

.page-archive .archive-entries .archive-entry {
    margin-bottom: 3em;
}

.archive-entries .archive-entry {
    position: relative;
    padding: 0 5px 0 5px;
    width: 30%;
    margin-right: 2%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    z-index: 1;
    max-height: 400px;
    overflow: hidden;
}

.archive-entries .archive-entry:before {
    content: '';
    display: block;
    width: 100%;
    height: 2.5em;
    background: linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 1) 100%);
    position: absolute;
    bottom: 0;
}

.page-archive .archive-entry:after {
    display: block;
    visibility: hidden;
    font-size: 0;
    height: 0;
    clear: both;
    content: ".";
}

.page-archive .categories {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    font-size: 70%;
    margin-bottom: 10px;
    order: 3;
}

.page-archive .entry-thumb {
    width: 105%;
    height: 0;
    padding-bottom: 70%;
    margin: 0 -5px 0 -5px;
    float: none;
    background-position: center;
}

.page-archive .entry-thumb-link {
    position: relative;
    display: block;
    width: 100%;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    -webkit-order: 1;
    order: 1;
}

.archive-entry-header {
    order: 3;
    display: flex;
    flex-direction: column;
}

.archive-entry-body {
    order: 4;
}

.page-archive .entry-description {
    font-size: 80%;
}

/* アーカイブページの日付 */
.page-archive .date a {
    color: #888;
    font-size: 12px;
}

.page-archive .date a::before {
    margin-right: 1px;
    font-family: 'blogicon';
    content: '\f043';
}

/* アーカイブページのタイトル */
.page-archive .entry-title {
    margin: 0;
    padding: 10px 0 0 0;
    line-height: 1.2;
}

.page-archive .entry-title a {
    color: #222;
    font-size: 15px;
    letter-spacing: 1px;
}

/* アーカイブページのカテゴリアイコン */
.page-archive .categories a {
    margin: 0px -3px 0px 5px;
    color: #000;
    font-size: 12px;
    background-color: #fff;
    padding: 0 5px 0 5px;
}

.page-archive .categories a::before {
    margin-right: 3px;
    font-family: 'blogicon';
    content: none;
}

/* カテゴリ一覧ページヘッダー */
.archive-header-category {
    margin-bottom: 3em;
    margin-right: 6%;
}

#archive-header-category .hatena-module {
    clear: both;
    overflow: hidden;
}

#archive-header-category .hatena-module-category .hatena-module-body ul.hatena-urllist li {
    float: left;
    list-style-type: none;
    margin: 0 2px 2px;
    padding: 7px;
    margin-bottom: 1.5rem !important;
    margin-left: 1rem !important;
    background-color: #eef2f4;
    text-decoration: none;
    border-radius: 10px 10px 10px 10px
}

#archive-header-category .hatena-module-category .hatena-module-body ul.hatena-urllist li a {
    color: #444;
}

/* パンくずリスト */
#top-box {
    height: 60px;
    border-bottom: 1px solid #ccc;
    background-color: #f8f8f8;
}

#top-box .breadcrumb {
    height: 100%;
}

#top-box .breadcrumb-inner {
    max-width: 1024px;
    width: 90%;
    height: 100%;
    margin: 0 auto;
    font-size: 14px;
    line-height: 60px;
}

#top-box .breadcrumb-link,
#top-box .breadcrumb-child {
    color: #444;
    font-weight: bold;
    text-decoration: none;
}

#top-box .breadcrumb-gt {
    margin: 0 10px;
}

/* ==========================================================================
   Others (Buttons, Widgets, etc.)
   ========================================================================== */
/* 目次 */
ul.table-of-contents {
    list-style-type: decimal;
    padding: 20px 10px 20px 40px;
    border: 1px solid #e4e4e4;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    line-height: 2 !important;
}

ul.table-of-contents ul {
    list-style-type: decimal;
    margin-left: 0;
}

ul.table-of-contents::before {
    position: relative;
    font-size: 130%;
    font-weight: bold;
    content: '目次';
}

/* アプリーチ */
#appreach-box {
    margin-bottom: 10px;
    border: double 2px #ececec;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.appreach-links {
    margin-bottom: 10px;
}

.appreach-footer {
    margin-bottom: 0;
    line-height: 0;
}

/* ==========================================================================
   Share Buttons (Minimal)
   ========================================================================== */
.share-buttons {
  margin: 24px 0 10px;
  text-align: left;              /* centerが良ければ center に */
}

.share-buttons .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 共通：ボタンのベース */
.share-buttons .inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;                   /* 15%固定をやめる */
  min-width: 44px;               /* タップしやすさ */
  height: 40px;
  padding: 0 12px;
  line-height: 1;
  border: 1px solid #e7e7e7;
  border-radius: 999px;          /* ピル型 */
  background: #fff;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  transition: background-color .2s, border-color .2s, color .2s, transform .05s;
}

/* テキストは基本非表示（ミニマル） */
.share-buttons .inner .share-text {
  display: none;
}

/* ホバー：うっすら浮かせる */
.share-buttons .inner a:hover {
  background: #f6f6f6;
  border-color: #dcdcdc;
}

/* クリック感 */
.share-buttons .inner a:active {
  transform: translateY(1px);
}

/* フォーカス可視化（キーボード操作用） */
.share-buttons .inner a:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}

/* ブランド色は “ホバー時だけ” ほんのり（ミニマル維持） */
.share-buttons .inner .hatena-bookmark-button:hover { color: #008fde; }
.share-buttons .inner .facebook-button:hover { color: #305097; }
.share-buttons .inner .twitter-button:hover { color: #111; } /* Xっぽく黒寄せ */
.share-buttons .inner .pocket-button:hover { color: #d3505a; }

/* シェアブロック自体 */
.share-buttons{
  text-align: center;
}

/* ボタン群を中央寄せ */
.share-buttons .inner{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}



/* サイドバーフォローボタン */
.sidebar-follow-buttons {
    width: 100%;
    text-align: left;
    letter-spacing: -.40em;
}

.sidebar-follow-buttons a {
    display: inline-block;
    letter-spacing: normal;
    width: 47%;
    font-size: 20px;
    text-align: center;
    text-decoration: none;
    padding: 6% 0;
    margin: 1%;
    overflow: hidden;
    z-index: 2;
}

.sidebar-follow-buttons a:hover {
    transition: all .3s;
}

.sidebar-follow-buttons .inner-text {
    font-size: 16px;
    padding-left: 5px;
}

.sidebar-follow-buttons .hatena {
    color: #38393C;
    border: 1px solid #ffffff;
    background: #ffffff;
}

.sidebar-follow-buttons .hatena:hover {
    border: 1px solid #38393C;
}

.sidebar-follow-buttons .facebook {
    color: #305097;
    border: 1px solid #ffffff;
    background: #ffffff;
}

.sidebar-follow-buttons .facebook:hover {
    border: 1px solid #305097;
}

.sidebar-follow-buttons .twitter {
    color: #55acee;
    border: 1px solid #ffffff;
    background: #ffffff;
}

.sidebar-follow-buttons .twitter:hover {
    border: 1px solid #55acee;
}

.sidebar-follow-buttons .instagram {
    color: #3f729b;
    border: 1px solid #ffffff;
    background: #ffffff;
}

.sidebar-follow-buttons .instagram:hover {
    border: 1px solid #3f729b;
}

.sidebar-follow-buttons .feedly {
    color: #6cc655;
    border: 1px solid #ffffff;
    background: #ffffff;
}

.sidebar-follow-buttons .feedly:hover {
    border: 1px solid #6cc655;
}

.sidebar-follow-buttons .googleplus {
    color: #db4a39;
    border: 1px solid #ffffff;
    background: #ffffff;
}

.sidebar-follow-buttons .googleplus:hover {
    border: 1px solid #db4a39;
}

/* カスタマイズされたフッター（関連記事を下へ） */
.customized-footer {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column-reverse;
    flex-direction: column-reverse;
}

/* 縦写真だけ縮小（競合に勝つ） */
.entry-content img.photo-center,
.entry-content-inner img.photo-center,
.entry-body img.photo-center,
.entry-body-text img.photo-center,
article img.photo-center {
  display: block;
  margin: 1.5em auto;
  width: auto !important;
  max-width: 75% !important;
  height: auto !important;
}

/* 横並び（はてな画像行）では photo-center を無効化 */
.images-row img.photo-center {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
}




/* ページトップへ戻るボタン */
#page-top-area {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    margin: 0;
    padding: 0;
    text-align: center;
}

#page-top-button {
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    display: block;
    cursor: pointer;
}

#page-top-button:hover {
    color: rgba(0, 0, 0, 0.95);
}

/* トップページはてなスター非表示 */
.page-index .hatena-star-add-button {
    display: none;
}

.page-index .hatena-star-user {
    display: none;
}

.page-index .hatena-star-star {
    display: none;
}

.page-index .hatena-star-inner-count {
    display: none;
}

.page-index .hatena-star-star-container {
    display: none;
}

/* 注目記事カスタマイズ */
#recommend-entries .urllist-item {
    width: 98%;
    height: 50%;
    position: relative;
}

#recommend-entries .urllist-title-link {
    box-sizing: border-box;
    color: #fff;
    font-size: 0;
    line-height: 1.2;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10%;
    top: 0;
    bottom: 10%;
    width: 100%;
    position: absolute;
}

#recommend-entries .urllist-title-link:hover {
    background-color: rgba(0, 0, 0, 0.5);
    background: transparent -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    background: transparent linear-gradient(transparent, rgba(0, 0, 0, 0.5));
    box-sizing: border-box;
    color: #fff;
    font-size: 0.8667em;
    line-height: 1.2;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10%;
    top: 0;
    bottom: 10%;
    width: 100%;
    position: absolute;
}

.icon-size {
    display: block;
    margin: 0 auto;
    width: 20%;
    display: inline-block;
}

.hatena-module-body .hatena-breadcrumb-plus-toggle-button {
    cursor: pointer;
}

/* 関連記事のカスタム */
li.urllist-item.related-entries-item {
    margin: 11px 0;
    padding: 10px 10px 10px 0;
    background: #ffffff;
    border: solid 2px #555;
}

img.urllist-image.related-entries-image {
    width: 120px;
    margin-top: -10px;
    margin-bottom: -10px;
    border-right: 2px solid #555;
}

a.urllist-title-link.related-entries-title-link.urllist-title.related-entries-title {
    text-decoration: none;
    color: #525252;
    font-weight: bold;
}

a.urllist-title-link.related-entries-title-link.urllist-title.related-entries-title:hover {
    color: silver;
}

.urllist-entry-body.related-entries-entry-body {
    color: #8f8f8f;
    font-size: 13px;
    margin-top: 3px;
}

.hatena-urllist .urllist-date-link a {
    display: inline-block;
    background: #555;
    color: #fff;
    line-height: 1;
    padding: 4px 5px;
    margin-bottom: 3px;
    border-radius: 4px;
    font-size: 11px;
    font-style: normal;
    text-decoration: none;
}

/* グリッドレイアウト */
.grid-container {
    display: grid;
    grid-template-columns: 1auto 1auto 1auto;
    grid-template-rows: 1fr;
    grid-template-areas: "photo-1 photo-2";
    gap: 5px 5px;
}

.photo-1 {
    grid-area: photo-1;
}

.photo-2 {
    grid-area: photo-2;
}

.cal3-grid-container {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
    grid-template-areas: "photo-1 photo-2" "photo-1 photo-3";
    gap: 20px 20px;
}

.cal3-photo-2 {
    grid-area: cal3-photo-2;
}

.cal3-photo-1 {
    grid-area: cal3-photo-1;
}

.cal3-photo-3 {
    grid-area: cal3-photo-3;
}

.cal4-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas: "photo-1 photo-2 . ." "photo-3 photo-4 . ." ". . . .";
    gap: 5px 5px;
}

.cal4-photo-1 {
    grid-area: cal4-photo-1;
}

.cal4-photo-2 {
    grid-area: cal4-photo-2;
}

.cal4-photo-3 {
    grid-area: cal4-photo-3;
}

.cal4-photo-4 {
    grid-area: cal4-photo-4;
}

.containerv2 {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    justify-items: stretch;
    align-items: stretch;
}

/* カエレバ・ヨメレバ */
.booklink-box,
.kaerebalink-box {
    font-family: 'Lucida Grande', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    padding: 22px 25px 22px 25px;
    width: 94%;
    margin: 0 auto 15px;
    border: 3px solid #dfdfdf;
    box-sizing: border-box;
    text-align: center;
}

.booklink-image,
.kaerebalink-image {
    width: 100%;
    margin: 0 0 5px 0;
}

.booklink-info,
.kaerebalink-info {
    line-height: 125%;
    width: 100%;
}

.booklink-name,
.kaerebalink-name {
    margin: 0 0 4px 0;
}

.booklink-name a,
.kaerebalink-name a {
    color: #0066cc;
    text-decoration: underline;
}

.booklink-name > a,
.kaerebalink-name > a {
    font-size: 16px;
}

.booklink-name a:hover,
.kaerebalink-name a:hover {
    color: #FF9900;
}

.booklink-powered-date,
.kaerebalink-powered-date {
    font-size: 8px;
}

.booklink-detail,
.kaerebalink-detail {
    color: #333333;
    font-size: 12px;
    margin: 0 0 10px 0;
}

.booklink-link2 a,
.kaerebalink-link1 a {
    width: 90%;
    display: block;
    margin: 0px auto 8px;
    padding: 10px 1px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 2px 2px 1px #dcdcdc;
}

.booklink-link2 a:hover,
.kaerebalink-link1 a:hover {
    opacity: 0.6;
}

.shoplinkamazon a {
    color: #ffffff;
    background: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
}

.shoplinkrakuten a {
    color: #ffffff;
    background: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
}

.shoplinkkindle a {
    color: #ffffff;
    background: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
}

.shoplinkyahoo a {
    color: #ffffff;
    background: #000000;
    border: 2px solid #000000;
    border-radius: 4px;
}

.article-btn a {
    display: block;
    text-decoration: none;
    padding: 15px 15px;
    margin: 5% 20% 5% 20%;
    border-radius: 4px;
    font-weight: bold;
    color: white;
    background-color: #000;
    border: 2px solid #000;
    transition: all 0.5s;
    text-align: center;
}

.article-btn a:hover {
    color: #000;
    border: 2px solid #000;
    background-color: white;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media screen and (min-width: 10000px) {
    #box2 {
        float: right;
        width: 300px;
    }

    #main {
        float: right;
        width: 1000px;
    }

    #wrapper {
        float: left;
        width: 1000px;
    }

    #content-inner {
        width: 1300px;
    }

    #blog-title-inner {
        max-width: 1700px;
        width: 100%;
    }

    #blog-title-content {
        max-width: 1700px;
        width: 90%;
    }

    #n-menu .menu-inner {
        max-width: 1700px;
        width: 100%;
    }
}

@media screen and (min-width: 680px) {
    #n-footer-inner {
        width: 640px;
    }

    #n-footer .content {
        float: left;
        margin-right: 10px;
        margin-left: 10px;
    }

    .containerv3 {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-column-gap: 20px;
        grid-row-gap: 20px;
        justify-items: stretch;
        align-items: stretch;
    }
}

@media screen and (min-width: 800px) {
    .booklink-box,
    .kaerebalink-box {
        text-align: left;
        display: table;
    }

    .booklink-image,
    .kaerebalink-image {
        vertical-align: top;
        box-sizing: border-box;
        display: table-cell;
        width: 111px;
        text-align: center;
        margin: 0;
    }

    .booklink-image img,
    .kaerebalink-image img {
        max-width: 100%
    }

    .booklink-info,
    .kaerebalink-info {
        line-height: 125%;
        vertical-align: top;
        box-sizing: border-box;
        display: table-cell;
        padding-left: 25px;
        width: auto;
    }

    .booklink-name,
    .kaerebalink-name {
        margin: 0 0 24px 0;
    }

    .booklink-name > a,
    .kaerebalink-name > a {
        font-size: 16px;
    }

    .booklink-powered-date,
    .kaerebalink-powered-date {
        margin: 6px 0 0 0;
    }

    .booklink-detail,
    .kaerebalink-detail {
        margin: 0 0 14px 0;
    }

    .booklink-link2 a,
    .kaerebalink-link1 a {
        width: auto;
        text-align: center;
        margin: none;
    }

    .booklink-link2 > div,
    .kaerebalink-link1 > div {
        width: 33.33%;
        padding: 0 5px 5px 0;
        box-sizing: border-box;
        float: left;
    }
}

@media screen and (min-width: 1110px) {
    #n-footer-inner {
        max-width: 1024px;
        width: 90%;
    }

    #n-footer .content {
        float: none;
        display: inline-block;
        vertical-align: top;
        margin-right: 15px;
        margin-left: 15px;
    }
}

@media screen and (max-width: 768px) {
    #wrapper {
        float: none;
        margin-right: 0;
        padding-right: 0;
    }

    #box2 {
        float: none;
        width: 90%;
        margin: 20px auto 0 auto;
    }

    #n-menu {
        padding: 0;
    }

    #n-menu .menu-inner {
        width: 100%;
        height: auto;
    }

    #n-menu .btn-content {
        text-align: right;
    }

    #n-menu .menu-btn {
        display: block;
        padding: 10px 25px;
        font-size: 90%;
        cursor: pointer;
    }

    #n-menu .menu-content {
        display: none;
        width: 100%;
    }

    #n-menu .menu-content > li {
        float: none;
        width: 100%;
        height: 40px;
    }

    #n-menu .menu-content > li > a {
        width: 100%;
        padding: 0;
        line-height: 40px;
    }

    #n-menu .menu-content > li > a:hover {
        border: none;
    }

    #n-menu .second-level {
        display: none;
    }
}

@media screen and (max-width: 680px) {
    body {
        font-size: 15px;
        background-size: auto;
        background-repeat: repeat;
    }

    /* 幅を少し余白を持たせて見やすく (96%) */
    #blog-title-inner,
    #content-inner {
        width: 96%;
        margin: 0 auto;
    }

    #content-inner {
        padding-top: 20px;
    }

    #blog-title-content {
        padding: 20px 10px 5px 10px;
    }

    article {
        margin: -5px 0 40px 0;
        padding: 10px 10px 20px 10px;
    }

    #box2 {
        width: 300px;
    }

    #title a {
        font-size: 20px;
        letter-spacing: 2px;
    }

    #blog-description {
        font-size: 10px;
    }

    #n-menu .menu-btn {
        font-size: 80%;
    }

    .entry-title {
        margin: 0;
    }

    .entry-title a {
        font-size: 20px;
        letter-spacing: 0;
    }

    .entry-content {
        font-size: 15px;
    }

    .entry-content h1 {
        margin: 30px -5px 20px -5px;
        padding: 15px 5px 15px 10px;
        border-left: 5px solid #444;
        color: #444;
        font-size: 16px;
        letter-spacing: 0;
    }

    .entry-content h2 {
        margin: 30px -5px 20px -5px;
        padding: 15px 5px 15px 10px;
        background-color: #444;
        color: #fff;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .entry-content h3 {
        margin: 30px -5px 20px -5px;
        padding: 10px;
        color: #444;
        font-size: 16px;
        letter-spacing: 0;
    }

    .entry-content h4 {
        margin: 20px 0 16px 0;
        padding: 0;
        border-bottom: 10px solid #f6f6f6;
        font-size: 16px;
        letter-spacing: 0;
    }

    .entry-content h5 {
        position: relative;
        margin: 20px 0 16px 16px;
        color: #444;
        font-size: 16px;
    }

    .entry-content h6 {
        margin: 20px 0 16px 0;
        font-size: 16px;
    }

    .entry-see-more {
        font-size: 12px;
    }

    .entry-content blockquote {
        padding: 20px;
        font-size: 90%;
    }

    .entry-content blockquote::before,
    .entry-content blockquote::after {
        font-size: 400%;
    }

    .entry-content ul,
    .entry-content ol {
        margin: 16px 0;
        padding: 0 0 0 24px;
    }

    .entry-content dd {
        margin-left: 20px;
    }

    #box2 .hatena-module {
        margin-bottom: 20px;
    }

    .hatena-module-title {
        margin-bottom: 5px;
        padding: 5px 10px;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .page-archive .archive-heading {
        margin: 0 0 10px 0;
        font-size: 16px;
        text-align: center;
    }

    .page-archive .archive-entries {
        margin-bottom: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-archive .archive-entry {
        margin-bottom: 20px;
        padding: 20px;
        background-color: #fff;
    }

    .page-archive .entry-title a {
        font-size: 20px;
        letter-spacing: 0;
    }

    .page-archive .entry-description {
        font-size: 90%;
    }

    .photo-center {
        display: block;
        margin: 0 auto;
        width: 100%;
        margin-block-start: 1em;
        margin-block-end: 1em;
    }

    .topimg {
        margin: 0 auto 0px;
        padding-bottom: 30px;
        justify-content: space-between;
        margin-left: auto;
        margin-right: auto;
        max-width: 400px;
        width: 100%;
        float: none;
        background-position: center;
        display: flex;
    }

    .icon-size {
        width: 100%;
    }

    .archive-header-category {
        margin-bottom: 3em;
        margin-right: 5.4%;
        margin-left: 5.4%;
    }

    .archive-entries .archive-entry {
        position: relative;
        padding: 0 5px 0 5px;
        width: 90%;
        margin-right: 0%;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        z-index: 1;
        max-height: 400px;
        overflow: hidden;
        margin-bottom: 1em;
    }
}

/* PCだけ：記事タイトルの行間を詰める */
@media screen and (min-width: 769px) {
  h1.entry-title,
  .entry-title {
    line-height: 1.15;  /* 1.10〜1.25で好み調整 */
    padding: 0.35em 0;  /* 上下の余白も締めたい場合 */
  }

  .entry-title a,
  a.entry-title-link {
    line-height: inherit;
  }

  /* アーカイブ（タイル/一覧）側も揃えるなら */
  .page-archive .entry-title {
    line-height: 1.0;
  }
}
