/* <system section="theme" selected="17391345971653699552"> */
@charset "UTF-8";
@import url(https://kazesawa.github.io/css/webfont.css);

/*
  Theme: マテリアルぽっぷ
  Author: mamegoro
  Author URI: https://www.mamegoro.com/
  Version: 1.0.0
  Responsive: yes
  License: GNU General Public License //自由ソフトウェアファウンデーションライセンスhttps://www.gnu.org/philosophy/free-sw.ja.html
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
  Description:
    カード型デザインのブログテンプレートです。
*/

/*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 */
html {
    line-height: 1.15;
    /* 1 */
    -ms-text-size-adjust: 100%;
    /* 2 */
    -webkit-text-size-adjust: 100%;
    /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * 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;
}



/* ===============
  全体設定
=============== */
*,:after,:before {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
body {
  font-family: 'Kazesawa-Semibold';
  line-height: 1.9;
  font-weight: normal;
  margin: 0;
  padding: 0;
  word-break:break-all; 
  word-wrap:break-word; 
  color: #33403d;
  background: #f5f5f5;
}
a {
  outline:none;
  text-decoration: none;
  color: #33403d;
}
img,a img {
  border: 0;
  border-radius: 8px;
}
h1, h2, h3, h4, h5, h6 {
  line-height: 1;
  margin: 0;
  padding: 0;
}
h1.entry-title {
  font-size: 150%;
  font-family: 'Kazesawa-Extrabold';
  transform: skewX(-10deg);
}
b, strong {
  font-family: 'Kazesawa-Extrabold';
}

/* ===============
  グローバルヘッダー(proで非表示にしている場合は削除してOK)
=============== */
#globalheader-container {
  background: #fff;
  border-bottom: none;
  -moz-box-shadow: 0 1px 5px rgba(190, 190, 190, 0.16);
  -webkit-box-shadow: 0 1px 5px rgba(190, 190, 190, 0.16);
  -o-box-shadow: 0 1px 5px rgba(190, 190, 190, 0.16);
  box-shadow: 0 1px 5px rgba(190, 190, 190, 0.16);
  overflow: hidden;
  color: #777;
}
#globalheader-container a {
  color: #777;
}


/* ===============
  ブログタイトルエリア
=============== */
#blog-title {
  padding: 25px 0 15px;
  background: #fff;
  box-shadow: 0 3px 3px 0 rgba(0,0,0,0.16);
  position: relative;
}
.header-image-only #blog-title {
  background: #fff !important;
}
#blog-title-inner {
  width: 1170px;
  margin: 0 auto;
  overflow: hidden;
}
@media screen and (max-width: 1200px) {
  #blog-title-inner {
    text-align: center;
    width: 100%;
  }
}
#blog-title #title a {
  font-family: "Kazesawa-Extrabold";
  font-size: 90%;
  color: #4f8299;
  /*  text-shadow:0px 2px 3px rgba(0,0,0,.22); */
}
#blog-description {
  font-size: 70%;
  padding: 10px 0 0 0;
  color: #4f8299;
}
@media screen and (max-width:480px) {
  #blog-description {
    padding: 10px 10px 0;
  }
}
h1#title {
  font-size: 2.5em;
}
#top-editarea {
  width: 100%;
  text-align: center;
  background: #fff;
}
#top-box {
  margin-top: 15px;
}
#top-editarea a:hover {
  text-decoration: underline;
}
.top-menu-bar {
  background: #4f8299;
  color: #fff;
  padding: 5px 0;
  box-shadow: 0 3px 3px 0 rgba(0,0,0,0.16);
}
.top-menu-bar ul li {
  display: inline-block;
}
.top-menu-bar ul li a {
  color: #fff;
  font-size: 11px;
  text-decoration: none;
  padding: 10px 10px;
  overflow: hidden;
  box-sizing: border-box;
}
.header-image-enable #blog-title #title a,
.header-image-enable #blog-title #blog-description {
  text-shadow: none;
  color: #4f8299;
  text-shadow:3px 3px 0 #FFF, -3px -3px 0 #FFF,
              -3px 3px 0 #FFF, 3px -3px 0 #FFF,
              0px 3px 0 #FFF,  0-3px 0 #FFF,
              -3px 0 0 #FFF, 3px 0 0 #FFF;
}


/* ===============
  レイアウト
=============== */
#container {
  width: 100%;
}
#content {
  padding: 20px 0px;
  margin: 0 auto;
  width:1170px;
  overflow:hidden;
}
.page-entry #content {
  padding: 0;
  margin-top: 15px;
}
@media screen and (max-width:1200px) {
  #content {
    max-width:805px;
  }
}
@media screen and (max-width:768px) {
  #content {
    max-width:100%;
  }
}
.page-index .enable-top-editarea .page-archive #content {
  padding: 30px 0 !important;
}
.page-archive #content {
  padding: 20px 10px 30px;
}
#content-inner {
  display:-webkit-flex;
  display:flex;
  -webkit-flex-wrap:wrap;
  flex-wrap:wrap;
  -webkit-justify-content:space-between;
  justify-content:space-between;
}
#wrapper {
  width: 70%;
}
.page-index .enable-top-editarea .page-archive #wrapper,.page-archive #wrapper {
  width: 100%;
}
#main-inner {
  margin-bottom: 45px;
}
.entry-inner {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
}
.page-index .entry-inner,.page-archive .entry-inner {
  margin-bottom: 30px;
}
.page-index .enable-top-editarea .page-archive #box2,.page-archive #box2 {
  width: 100%;
  margin: 0;
}
#box2 {
  width: 30%;
}

#box2-inner {
  margin-left: 25px;
  margin-bottom: 25px;
}
.page-index .enable-top-editarea .page-archive #box2-inner,.page-archive #box2-inner {
  margin-left: 0px;
}
.archive-entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 25px;
  margin-bottom: 30px;
}

@media screen and (max-width:1200px) {
  #wrapper {
    width: 100%;
  }
  #content-inner {
    margin: 0 15px;
  }
  .archive-entries {
    grid-template-columns: repeat(2, 1fr);
  }
  #box2 {
    width: 100%;
  }
  #box2-inner {
    margin-left: 0px;
  }
}
@media screen and (max-width:768px) {
  .archive-entries {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width:480px) {
  #content-inner {
    margin: 0;
  }
}

/* ===============
  TOPページ・Archivesページ
=============== */
.page-archive .archive-entry {
  position: relative;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.page-index .enable-top-editarea .page-archive .archive-entry:hover,.page-archive .archive-entry:hover  {
  transform: translateY(-5px);
  box-shadow: 0 0 3px 0 rgba(0,0,0,.15), 0 2px 3px 0 rgba(0,0,0,.25);
  transition: .3s ease-in-out;
}
.page-archive .entry-thumb {
  position: relative;
  top: 0;
  width: 100%;
  height: 15vw;
}
.page-archive .entry-thumb {
  background: no-repeat center center;
  background-size: cover;
  border-radius: 8px 8px 0 0;
}
@media screen and (max-width:1200px) {
  .page-archive .entry-thumb {
    height: 20vw;
  }
}
@media screen and (max-width:768px) {
  .page-archive .entry-thumb {
    height: 40vw;
  }
}
@media screen and (max-width:480px) {
  .page-archive .entry-thumb {
    height: 50vw;
  }
}
.entry-thumb-link {
  order: 0;
}
.archive-entry-header {
  order: 1;
  padding: 15px 10px 40px;
}
.archive-entry-body {
  order: 2;
}
.page-index .archive-entry-body {
  display: none;
}
.page-index .enable-top-editarea .page-archive .categories,.page-archive .categories {
  position: absolute;
  bottom: 5px;
  left: 10px;
  z-index: 100;
  background: #4f8299;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 70%;
  font-weight: bold;
}
.page-index .enable-top-editarea .page-archive .categories a,.page-archive .categories a {
  color: #fff;
}
.page-index .enable-top-editarea .page-archive .categories a:nth-child(n+2),.page-archive .categories a:nth-child(n+2) {
  display: none;
}
.page-index .enable-top-editarea .page-archive .entry-description,.page-archive .entry-description {
  line-height: 1.1;
  font-size: 80%;
  padding: 0 15px 10px;
  position: relative;
  color: #999;
  display: none;
}
.page-index .enable-top-editarea .page-archive .entry-description:after,.page-archive .entry-description:after {
  content: "";
  bottom: 0;
  left: 0;
  position: absolute;
  width:100%;
  height: 50%;
  background: -webkit-linear-gradient(top, rgba(255,255,255,0), rgba(255,255,255,0.6) 15%, rgba(255,255,255,1) 70%, rgba(255,255,255,1));
}
.page-index .enable-top-editarea .page-archive h1.entry-title,.page-archive h1.entry-title {
  font-size: 120%;
  line-height: 1.2;
  overflow: hidden;
  transform: skewX(-10deg);
  padding: 0 5px;
}
.page-index .enable-top-editarea .page-archive .archive-date,.page-archive .archive-date {
  position: absolute;
  bottom: 3px;
  right: 15px;
  z-index: 100;
  font-size: 80%;
}
.page-index .enable-top-editarea .page-archive .social-buttons,.page-archive .social-buttons {
  display: none;
}
.page-index .enable-top-editarea .page-archive .pager,.page-archive .pager {
  margin: 0 auto;
  text-align: center;
}
.page-index .pager a,.page-archive .pager a {
  display: block;
  padding: 10px 45px;
  background: #4f8299;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
}
.page-index .pager a:hover ,.page-archive .pager a:hover  {
  transform: translateY(-5px);
  box-shadow: 0 0 3px 0 rgba(0,0,0,.15), 0 2px 3px 0 rgba(0,0,0,.25);
  transition: .3s ease-in-out;
}
.archive-header-category {
  margin: 0;
}
.archive-heading {
  margin-bottom: 20px !important;
  padding: 10px 0 10px 10px;
  font-size: 20px !important;
  background: #4f8299;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  text-align: center;
}
.archive-entry-tags {
  display: none;
}

/* ===============
  サイドメニュー
=============== */
.page-index .enable-top-editarea .page-archive #box2-inner,.page-archive #box2-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 25px;
}
#box2-inner {
  grid-template-columns: 1fr;
}
@media screen and (max-width:1200px) {
  #box2 {
    margin:0 15px;
  }
  #box2-inner,.page-index .enable-top-editarea .page-archive #box2-inner,.page-archive #box2-inner {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    grid-gap: 25px;
  }
}
@media screen and (max-width:768px) {
  #box2-inner,.page-index .enable-top-editarea .page-archive #box2-inner,.page-archive #box2-inner {
    grid-template-columns: 1fr;
  }
}
.hatena-module-title {
  background: #ef7b75;
  color: #fff;
  padding: 10px;
  line-height: 1;
  border-radius: 8px;
  font-family: 'Kazesawa-Extrabold';
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  text-align: center;
}
.hatena-module-title a {
  color: #fff;
}
.hatena-module-body {
  padding: 10px 10px 20px;
}
.hatena-module-profile {
  text-align: center;
  margin-bottom: 25px;
  z-index: 0;
  position: relative;
}
.profile-icon-link {
  display: block;
}
.profile-icon {
  border-radius: 50%;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
}
.hatena-module-profile .hatena-module-body {
  background: url(//cdn-ak.f.st-hatena.com/images/fotolife/m/mamegoro/20190612/20190612114443.jpg) no-repeat center;
  position: relative;
  overflow: hidden;
  color: #666;
  padding: 50px 0;
  margin: -5px 5px 0;
  z-index: -99;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  background-size:cover;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}
.hatena-module-profile .hatena-module-body a {
  color: #666;
  order: 1;
}
.hatena-module-profile .hatena-module-body:before {
  content: '';
  background: inherit;
  -webkit-filter: blur(7px);
  -moz-filter: blur(7px);
  -o-filter: blur(7px);
  -ms-filter: blur(7px);
  filter: blur(7px);
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: -1;
}
.hatena-module-profile .hatena-module-body span {
  order: 2;
  line-height: 1.2;
}
.hatena-module-body .hatena-follow-button-box {
  position: relative;
  width: 200px;
  height: 45px;
  margin: 10px auto 5px;
  order: 3;
  z-index: 1;
}
.hatena-module-body .hatena-follow-button {
  border-radius: 20px;
  background: #2884c7 !important;
  color: #fff !important;
  padding: 10px 0;
  float: none;
  font-size: 16px;
  margin: 0 auto;
  display: block;
  width: 200px;
  text-align: center;
  height: auto !important;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  border: 0 !important;
}
.hatena-module-body .hatena-follow-button.unsubscribing.hover {
  color: #fff !important;
}
.hatena-module-body .hatena-follow-button-box .subscription-count {
  border-radius: 20px;
  display: block;
  float: none;
  white-space: nowrap;
}
.hatena-module-body .hatena-follow-button.subscribing {
  color: #fff !important;
  width: 200px;
}
.hatena-module-body .hatena-follow-button.subscribing.hover {
  width: 200px;
}
.hatena-module-body .hatena-follow-button-box:hover {
  color: #fff !important;
  transform: translateY(-5px);
  transition: .3s ease-in-out;
}
.hatena-module-body .hatena-follow-button-box .subscription-count-box {
  display: block;
  position: absolute;
  top: 11px;
  left: 200px;
}
.profile-activities {
  order: 5;
  margin-top: 10px;
  font-size: 12px;
}
.hatena-module-body .id .hatena-id-link .user-name-nickname {
  display: block;
  font-size: 130%;
  font-family: 'Kazesawa-Extrabold';
}
.user-name-paren,.user-name-hatena-id {
  font-size: 12px;
}
.hatena-module-body .id {
  margin-bottom: 10px;
}
.profile-description {
  order: 4;
  padding: 0 15px;
}
.hatena-module-body .hatena-urllist {
  margin: 0;
  padding: 0;
}
.hatena-module-body .urllist-with-thumbnails .urllist-item {
  max-height: 135px;
  overflow: hidden;
  font-size: 80%;
  border-bottom: 1px dotted #aaa;
  padding-top: 7px;
}
.hatena-module-body .urllist-with-thumbnails .urllist-item:last-child {
  border-bottom: none;
}
.hatena-module-links .hatena-module-body ul {
  margin-left: 25px;
}
.hatena-urllist img {
  border-radius: 8px;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
}
a.bookmark-widget-counter img {
  box-shadow: none;
}
.recent-entries-categories {
  display: none;
}
.search-form {
  text-align: center;
}
.search-module-input {
  border-radius: 8px;
  padding: 0 10px;
  border: 1px solid #4f8299;
  margin: 0 5px 0 0;
  color: #4f8299;
  width: 75%;
  height: 45px;
}
.search-module-input::placeholder {
  color: #4f8299;
}
.search-module-button {
  padding: 0 10px;
  margin: 0 0 0 -5px;
  border-radius: 8px;
  border: 1px solid #4f8299;
  background: #4f8299;
  color: #fff;
  width: 20%;
  height: 45px;
}
.related-entries-entry-body {
  display: none;
}
.hatena-module-category .hatena-module-body ul li {
  list-style: none;
  padding: 5px;
  border-bottom: 1px dotted #aaa;
}
.hatena-module-body .hatena-urllist {
  margin: 0 10px 0 25px;
}
.hatena-module-body .urllist-with-thumbnails {
  margin: 0 !important;
}
.archive-date:before,.entry-date:before {
  font-family: blogicon;
  content: "\f043";
}
.authors-urllist li {
  margin: 10px 0;
}


/* ===============
  記事ページ・静的ページ
=============== */
.entry-content a {
  color: #4294FF;
}
.entry-content a:hover {
  text-decoration: underline;
}
.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6 {
  color: #4f8299;
  line-height: 1.5;
  margin: 50px 0 10px;
  font-family: Segoe UI,Roboto,Kazesawa-Extrabold;
  display: block;
  padding: 5px 10px;
}
.entry-content h2 {
  font-size: 23px;
  background: #4f8299;
  color: #fff;
  border-radius: 8px;
}
.entry-content h3 {
  font-size: 22px;
  border-top: double 5px #4f8299;
  border-bottom: double 5px #4f8299;
}
.entry-content h4 {
  font-size: 20px;
  border-bottom: solid 3px #4f8299;
}
.entry-content h5,.entry-content h6 {
  font-size: 20px;
}
.breadcrumb {
  padding: 0 10px;
  margin: 0 auto;
  width:1170px;
  overflow:hidden;
  line-height: 1.2;
  font-size: 80%;
}
@media screen and (max-width:1200px) {
  .breadcrumb {
    max-width:805px;
  }
}
@media screen and (max-width:768px) {
  .breadcrumb {
    max-width:100%;
  }
}
.page-entry .breadcrumb {
  margin-bottom: 0px;
}
.comment-box{
  position:relative;
  margin:20px 0;
}
.comment-box:before{
  position:relative;
  margin:0 0 45px 0;
  padding: 0 0 10px;
  content:"";
  display:-webkit-flex;
  display:block;
  white-space:nowrap;
}
.comment-box:after{
  width:100%;
  display:block;
  position:absolute;
  top:0;
  left:0;
  color: #fff;
  background: #ef7b75;
  padding: 10px;
  line-height: 1;
  border-radius: 8px;
  font-family: 'Kazesawa-Extrabold';
  content:"コメント";
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  text-align: center;
}
.leave-comment-title {
  color: #fff;
  background: #4f8299;
  text-align: center;
  display: block !important;
  padding: 5px 25px;
  font-family: 'Kazesawa-Semibold';
  border-radius: 8px;
  border: 1px solid #4f8299;
  margin: 15px auto 0;
  width: 300px;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
}
.leave-comment-title:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 3px 0 rgba(0,0,0,.15), 0 2px 3px 0 rgba(0,0,0,.25);
  transition: .3s ease-in-out;
  background: #fff;
  color: #4f8299;
}
.comment li {
  list-style-type: none;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}
.comment li .hatena-id-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid #ccc;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  margin: 0 15px 15px 0;
  float: left;
}
.comment li .comment-content p {
  font-size: 80%;
  line-height: 1.1;
}
.comment-metadata {
  text-align: right;
  font-size: 80%;
}
.page-entry .entry-content {
  font-size: 115%;
}
.page-entry .entry-content p {
  margin: 5px;
}
.page-entry .entry-content p img {
  margin: 5px 0px;
}
.entry-footer-section {
  display: none;
}
.page-entry .pager {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
  margin-top: 15px;
}
.page-entry .pager-next {
  text-align: right;
}
.page-entry .pager-prev a,.page-entry .pager-next a {
  color: #33403d;
  padding: 5px 15px;
  display: block;
  border: 1px solid #4f8299;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  display: block;
  width: 100%;
}
.page-entry .pager-prev a:hover,.page-entry .pager-next a:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 4px 0 rgba(0,0,0,.15), 0 3px 4px 0 rgba(0,0,0,.25);
  transition: .3s ease-in-out;
  background: #4f8299;
  color: #fff;
  display: block;
}
@media screen and (max-width:768px) {
  .page-entry .pager {
    grid-template-columns: 1fr;
    margin: 15px 10px;
  }
}
.entry-header {
  margin: 0 10px 15px;
}
.entry-header .categories a {
  display: inline-block;
  margin: 10px 0 0;
  padding: 0px 10px;
  font-size: 70%;
  text-decoration: none;
  color: #fff;
  background: #ef7b75;
  border-radius: 8px;
  font-weight: bold;
}
.table-of-contents{
  border:1px solid  #ef7b7590;
  border-bottom: 10px solid  #ef7b75;
  position:relative;
  background: #f5f5f5;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, .15);
  border-radius: 8px;
  margin: 10px 0px !important;
}
.table-of-contents ul {
  margin: 0 !important;
}
.table-of-contents li {
  margin: 15px 15px 15px 45px;;
  font-size: 92%;
  line-height: 1.2;
}
.table-of-contents li a{
  text-decoration:none;
  color: #333;
  font-family: Kazesawa-bold;
}
.table-of-contents li a:hover{
  text-decoration:underline;
}
.table-of-contents li ul li{
  margin: 15px 25px;
}
@media screen and (max-width:768px) {
  .table-of-contents li ul li{
    margin: 15px;
  }
}
.table-of-contents:before {
  display: block;
  padding: 5px 15px;
  content: "\f039"" Contents";
  font-family: blogicon;
  color: #fff;
  background:  #ef7b7590;
  border-bottom: 10px solid  #ef7b75;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
}
.entry-content ul,.entry-content ol {
  margin: 0 15px 0 35px;
}
blockquote {
  background-color: #f5f5f5;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, .15);
  padding: 10px 15px;
  margin: 25px 10px 10px;
  position: relative;
  border-radius: 8px;
  border: 1px solid #b7b7b7;
}
blockquote:before {
  content: '“';
  position: absolute;
  font-size: 30px;
  top: -10px;
  left: -10px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  background-color: #b7b7b7;
  color: #fff;
  font-family: 'Kazesawa-Extrabold';
  text-align: center;
  line-height: 1.3;
}
.comment-user-name .comment-user-id .user-name-nickname {
  font-size: 110%;
  display: inline-block;
}
pre {
  color: #000;
  font-size: 12px;
  background-color: #fafafa;
  border: solid 1px #bbbbbb;
  line-height: 120%;
  margin: 10px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: auto;
  border-radius: 8px;
}
pre a {
  color: #000 !important;
}


/* ===============
  フッター
=============== */
.customized-footer {
  margin-top: 15px;
}
#footer,.customize-footer {
  background: #bfbfbf;
  padding: 25px 0;
  text-align: center;
  color: #fff;
  font-size:70%;
}
#footer a {
  color: #fff;
}
.services {
  margin: 0 auto;
}



/* ===============
  SNSリンクやボタンの設定など
=============== */
.head-sub-area {
  width: 1172px;
  margin: 0 auto;
  position: relative;
}
.top-sns-button {
  right: 0px;
  bottom: 0px;
  position: absolute;
}
.top-sns-button a,.side-sns-button a {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  color: transparent !important;
}
@media screen and (max-width: 1200px){
  .top-sns-button {
    display: none;
  }
}
.button{
  background-image: -webkit-linear-gradient(top, #f4f1ee, #fff);
  background-image: linear-gradient(top, #f4f1ee, #fff);
  border-radius: 50%;
  height: 60px;
  margin: 0 5px 0 0;
  position: relative;
  width: 60px;  
  -webkit-transition: all .1s linear;
  transition: all .1s linear;
  border: 4px solid #e1e2e3;
  box-shadow: 0px -1px 3px 0px #a3a3a3 inset;
  display: inline-block;
}
.button:after{
  color:#BEBEBE;
  content: "";
  display: block;
  font-size: 30px;
  height: 30px;
  text-decoration: none;
  text-shadow: 0px -1px 1px #bdb5b4, 1px 1px 1px white;
  position: absolute;
  width: 30px;
}
.side-sns-button .button {
  margin: 10px 0 0 0 !important;
}
.sns-bukuma:after{
  content: "B!";
  left:12px;
  top:15px;
  font-family: Verdan;
  font-weight: bold;
  font-size: 23px;
  line-height: 1;
  text-shadow: -0.5px -0.5px 1px #a3a3a3, 1px 1px 1px #a3a3a3;
}
.sns-twitter:after{
  font-family: blogicon;
  content: "\f035";
  left: 11px;
  top: 13px;
  font-size: 25px;
  line-height: 1;
  text-shadow: -0.5px -0.5px 1px #a3a3a3, 1px 1px 1px #a3a3a3;
}
.sns-feed img {
  opacity: .25;
  width: 70%;
  position: absolute;
  top: 7px;
  left: 8px;
}
.sns-rss:after{
  font-family: blogicon;
  content: "\f04e";
  left: 12px;
  top: 11px;
  font-size: 25px;
  line-height: 1;
  text-shadow: -0.5px -0.5px 1px #a3a3a3, 1px 1px 1px #a3a3a3;
}
.button:hover{
  background-image: linear-gradient(top, #fff, #f4f1ee);
}
.sns-bukuma:hover {
  border:4px solid #afd6ff;
}
.sns-twitter:hover {
  border:4px solid #b0f2ee;
}
.sns-feed:hover {
  border:4px solid #b9edb1;
}
.sns-rss:hover {
  border:4px solid #ffeeaa;
}
.google-auto-placed {
  margin-right: -10px;
}
/* </system> */

/* ========================================
   マテリアルぽっぷ用：ターフグリーン化カスタマイズ
======================================== */

:root {
    --turf-green: #388E3C;
}

/* 1. 【トップページ専用】カテゴリを囲む「親枠」を透明にし、1行に固定 */
.page-index .enable-top-editarea .page-archive .categories, 
.page-archive .categories {
    background: transparent !important; 
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    
    position: absolute !important;
    bottom: 8px !important;
    left: 10px !important;
    
    /* --- 折り返さず、はみ出た分を隠すスマートな設定 --- */
    display: flex !important;
    flex-wrap: nowrap !important; /* 絶対に折り返さない */
    gap: 4px !important;
    max-width: calc(100% - 100px) !important; /* 日付に被る幅を指定 */
    overflow: hidden !important; /* ★はみ出たタグをスッと非表示にする */
}

/* 2. 【トップページ専用】中の各タグが潰れないようにする */
.page-archive .categories .archive-category-link {
    background-color: var(--turf-green) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    display: inline-block !important;
    margin: 0 !important; /* 親枠でgapを使うのでmarginはゼロに */
    font-size: 0.85em !important;
    font-weight: normal !important;
    text-decoration: none !important;
    /* ★タグの中の文字が勝手に改行されたり潰れたりするのを防ぐ */
    white-space: nowrap !important; 
    flex-shrink: 0 !important; 
}

/* 3. 【個別記事専用】記事上部のタグを緑・角丸バッジにする */
.entry-categories a {
    background-color: var(--turf-green) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    display: inline-block !important;
    margin-right: 4px !important;
    margin-bottom: 4px !important;
    font-size: 0.85em !important;
    text-decoration: none !important;
}

/* タグにマウスを乗せた時に少し明るくする */
.page-archive .categories .archive-category-link:hover,
.entry-categories a:hover {
    background-color: #4CAF50 !important;
    opacity: 1 !important;
}

/* 2. サイドバーの見出し（プロフィール、最新記事など）を緑に変更 */
.hatena-module-title {
    background-color: var(--turf-green) !important;
    color: #ffffff !important;
    border: none !important;
}

/* 3. 目次（Contents）のヘッダー色を緑に変更 */
.table-of-contents::before {
    background-color: var(--turf-green) !important;
}
.table-of-contents {
    border: 2px solid var(--turf-green) !important;
}

/* 4. 「コメントを書く」ボタンなどを緑に変更 */
.leave-comment-title {
    background-color: var(--turf-green) !important;
}

/* ========================================
   自動生成目次（[:contents]）のアコーディオン化
======================================== */
/* はてなブログ標準の目次コンテナの余白調整 */
.table-of-contents {
    margin-bottom: 2em;
    padding: 0 !important; /* 元のpaddingを消す */
    background: transparent !important; /* 元の背景色を消す */
    border: none !important; /* 元の枠線を消す */
}

/* アコーディオンの箱全体のデザイン */
.table-of-contents details {
    background: #f8f9fa; /* 薄いグレーの背景 */
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* クリックする見出し部分のデザイン */
.table-of-contents summary {
    display: block;
    padding: 12px 15px;
    font-weight: bold;
    color: var(--turf-green, #388E3C); /* ターフグリーン */
    background: #ffffff;
    cursor: pointer;
    position: relative;
    list-style: none; /* デフォルトの黒い三角を消す */
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s;
}

/* Safari用の黒い三角消去 */
.table-of-contents summary::-webkit-details-marker {
    display: none;
}

/* 右側の「＋」マーク */
.table-of-contents summary::after {
    content: "＋";
    position: absolute;
    right: 15px;
    color: #999999;
    font-weight: bold;
    transition: transform 0.3s;
}

/* 開いたときは「－」マークに */
.table-of-contents details[open] summary::after {
    content: "－";
}

/* 開いたときに見出しの下に線を引く */
.table-of-contents details[open] summary {
    border-bottom: 1px solid #e5e5e5;
    background: #f8f9fa;
}

/* 目次リスト（中身）の調整 */
.table-of-contents details ul {
    margin: 0;
    /*padding: 15px 15px 15px 35px !important;*/
    background: transparent !important; /* 背景を透明にしてテーマに馴染ませる */
}

/* ========================================
   出資馬カード内のリンクボタン
======================================== */
.horse-link-btn {
    text-align: center;
    margin-top: 15px;
}
.horse-link-btn a {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    background-color: #f8f9fa; /* 薄いグレー背景 */
    color: var(--turf-green, #388E3C); /* 文字はターフグリーン */
    border: 1px solid var(--turf-green, #388E3C);
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}
.horse-link-btn a:hover {
    background-color: var(--turf-green, #388E3C);
    color: #ffffff;
}
/* 引退馬のボタンはグレーアウト */
.horse-card.retired .horse-link-btn a {
    color: #888888;
    border-color: #cccccc;
}
.horse-card.retired .horse-link-btn a:hover {
    background-color: #eeeeee;
    color: #555555;
}

/* 収支報告への特大バナー */
.finance-banner {
    background-color: #fff8e1; /* 薄いイエローで目立たせる */
    border: 2px dashed #ffb300;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 40px;
}
.finance-banner h4 {
    color: #f57c00;
    margin-top: 0;
    margin-bottom: 10px;
}
.finance-banner a {
    display: inline-block;
    background-color: #f57c00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px; /* 丸っこいボタン */
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: opacity 0.3s;
}
.finance-banner a:hover {
    opacity: 0.8;
}

/* ========================================
   スマホ向け固定ボトムナビゲーション（ターフグリーン版）
======================================== */

/* スマホ表示（画面幅768px以下）のみ適用 */
@media screen and (max-width: 768px) {
  
  /* ナビゲーションの土台 */
  ul.bottom-navi {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); /* 上に少し影をつけて浮き立たせる */
    z-index: 9999; /* 常に最前面に表示 */
    display: flex; /* 横並びを安定させる */
    align-items: stretch;
  }

  /* 各メニュー項目の枠 */
  ul.bottom-navi > li {
    width: 20%; /* 5分割 */
    list-style-type: none;
    text-align: center;
    position: relative; /* サブメニューの基準位置にする */
  }

  /* リンク部分（タップ領域） */
  .bottom-navi li a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    text-decoration: none;
    color: #555555; /* アイコンと文字の基本色 */
  }

  /* アイコンのサイズ */
  .bottom-navi li a i {
    font-size: 20px;
    margin-bottom: 2px;
  }

  /* メニューの文字（ホーム、カテゴリなど） */
  .bottom-navi .mini {
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
  }

  /* アクティブ（タップ時）の色をターフグリーンに */
  .bottom-navi li a:active,
  .bottom-navi li a:focus {
    color: var(--turf-green) !important;
  }

  /* ========================================
     「カテゴリ」のサブメニュー（下からニョキッと出るやつ）
  ======================================== */
  ul.menu-second {
    position: absolute;
    bottom: 100%; /* メニューの真上に出現させる */
    left: 0;
    width: 250%; /* スマホ画面に対して少し広めに確保（左寄せ） */
    padding: 0;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-radius: 8px 8px 0 0; /* 上部だけ角丸 */
    overflow: hidden;
    
    /* 初期状態は隠す */
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px); /* 少し下からフワッと出す準備 */
    transition: all 0.3s ease; /* アニメーション速度 */
  }

  /* 「カテゴリ」タップ（ホバー）時の表示アクション */
  li.menu-transition:hover ul.menu-second,
  li.menu-transition:focus-within ul.menu-second {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  /* サブメニューの各項目 */
  ul.menu-second li {
    list-style: none;
    border-bottom: 1px solid #f0f0f0;
  }
  
  /* サブメニューの最後の線は消す */
  ul.menu-second li:last-child {
    border-bottom: none;
  }

  /* サブメニューのリンク設定 */
  ul.menu-second li a {
    display: block;
    padding: 12px 15px;
    font-size: 13px;
    color: #333333;
    text-align: left; /* 左寄せにして読みやすく */
  }

  /* サブメニューをタップした時の背景色 */
  ul.menu-second li a:active {
    background-color: #f8f9fa;
    color: var(--turf-green);
  }
}

/* PC表示（画面幅769px以上）ではボトムナビを隠す */
@media screen and (min-width: 769px) {
  ul.bottom-navi {
    display: none;
  }
}

/* ========================================
   ボトムナビゲーションの隙間・高さ調整
======================================== */

/* 悪さをしている改行タグを非表示にする */
.bottom-navi li a br {
    display: none !important;
}

/* リンク部分の高さを固定し、中身を中央にギュッと寄せる */
.bottom-navi li a {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    height: 55px !important; /* スマホでタップしやすい王道の高さ */
    padding: 0 !important;
}

/* アイコンのサイズと、下の文字との隙間 */
.bottom-navi li a i {
    font-size: 22px !important; /* アイコンを少しだけ大きく */
    margin-bottom: 2px !important; /* ★ここが文字との隙間です */
}

/* 文字のサイズ */
.bottom-navi .mini {
    font-size: 10px !important;
    line-height: 1 !important;
}

/* ========================================
   ボトムナビゲーションの見切れ修正・位置調整
======================================== */

/* ナビゲーション全体（土台）の高さを十分に広げる */
ul.bottom-navi {
    height: 60px !important; /* 元の43pxから60pxに拡張して余裕を持たせる */
}

/* リンク部分を土台に合わせ、下に余白を作って上に押し上げる */
.bottom-navi li a {
    height: 100% !important;
    padding-bottom: 5px !important; /* ★ここで全体を少し上にずらします（数値を大きくするとさらに上に上がります） */
}

/* ========================================
   記事内のテーブル（表）のデフォルトデザイン
======================================== */

/* テーブル全体の設定 */
.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important; /* 外枠を消す */
    margin: 20px 0 !important;
    font-size: 14px !important; /* 少し小さめにして情報を詰め込みやすく */
}

/* 見出し（ヘッダー）の設定：現状のグレーを活かしつつアクセントを */
.entry-content th {
    background-color: #f5f5f5 !important; /* 今の感じに近い薄いグレー */
    color: #333333 !important;
    border: none !important; /* 一旦すべての線を消す */
    border-bottom: 2px solid var(--turf-green) !important; /* 下線だけターフグリーンに */
    padding: 12px 10px !important;
    text-align: center !important;
    white-space: nowrap !important; /* 見出しが途中で改行されるのを防ぐ */
}

/* セル（データ）の設定：縦線を消し、薄い横線のみに */
.entry-content td {
    border: none !important; /* 縦線を消す */
    border-bottom: 1px solid #e0e0e0 !important; /* 薄い横線のみ残す */
    padding: 10px !important;
    text-align: center !important; /* 基本は中央揃え */
    color: #444444 !important;
}

/* 偶数行の背景色を変えてストライプ（しましま）にする */
.entry-content tr:nth-child(even) td {
    background-color: #fafbfc !important; /* ほんのり青みがかったごく薄いグレー */
}

/* テーブルにマウスを乗せた行をハイライト（PC表示時のみ） */
@media (hover: hover) {
    .entry-content tr:hover td {
        background-color: #f0f7f1 !important; /* ほんのり緑色に光る */
        transition: 0.2s;
    }
}

/* ========================================
   スマホ対応：表がはみ出す場合は横スクロールさせる
======================================== */
@media screen and (max-width: 768px) {
    .entry-content table {
        display: block !important;
        overflow-x: auto !important; /* 横スクロール可能に */
        white-space: nowrap !important; /* スマホでセルが縦長に伸びるのを防ぐ */
        -webkit-overflow-scrolling: touch; /* スクロールを滑らかに */
    }
}

/* ========================================
   吹き出し（会話風）のモダン化CSS（はみ出し修正版）
======================================== */

/* 1. 吹き出しのベース形状と影 */
.entry-content .l-fuki,
.entry-content .r-fuki {
  position: relative;
  width: auto !important; /* 横幅の固定をやめて柔軟にする */
  padding: 16px 20px !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  color: #333333 !important;
  z-index: 1;
  box-sizing: border-box !important;
  border: none !important;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.08)) !important;
}

/* 2. 左右の配置とアバター用のスペース（空白）確保 */
/* .l-fuki = アバターが右側 */
.entry-content .l-fuki {
  margin: 0 82px 36px 0 !important; /* 右側に82pxの空きを強制的に作る */
}
/* .r-fuki = アバターが左側 */
.entry-content .r-fuki {
  margin: 0 0 36px 82px !important; /* 左側に82pxの空きを強制的に作る */
}

/* 3. しっぽ（尖り部分） */
.entry-content .l-fuki::before,
.entry-content .r-fuki::before {
  position: absolute;
  content: "";
  top: 22px;
  width: 14px;
  height: 14px;
  background-color: #ffffff;
  z-index: -1;
}
.entry-content .l-fuki::before {
  right: -7px;
  transform: rotate(45deg);
}
.entry-content .r-fuki::before {
  left: -7px;
  transform: rotate(45deg);
}

/* 4. アバター（アイコン）を空白に収める */
.entry-content .l-fuki::after,
.entry-content .r-fuki::after {
  position: absolute;
  content: ""; 
  width: 60px !important;
  height: 60px !important;
  top: 0;
  border-radius: 50%;
  border: 3px solid #ffffff !important;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.entry-content .l-fuki::after {
  right: -82px !important; /* 作っておいた右の空白に配置 */
}
.entry-content .r-fuki::after {
  left: -82px !important; /* 作っておいた左の空白に配置 */
}

/* 5. PC表示でのサイズアップ対応 */
@media screen and (min-width: 478px) {
  .entry-content .l-fuki::after,
  .entry-content .r-fuki::after {
    width: 70px !important;
    height: 70px !important;
  }
  .entry-content .l-fuki {
    margin-right: 96px !important; /* PC版の空きスペース */
  }
  .entry-content .r-fuki {
    margin-left: 96px !important; /* PC版の空きスペース */
  }
  .entry-content .l-fuki::after {
    right: -96px !important;
  }
  .entry-content .r-fuki::after {
    left: -96px !important;
  }
}

/* -------------------------------------
   各キャラクターの画像設定
------------------------------------- */
.sora::after {
  background-image: url(https://cdn-ak.f.st-hatena.com/images/fotolife/s/sorauni/20220828/20220828231839.png);
}
.uni::after {
  background-image: url(https://cdn-ak.f.st-hatena.com/images/fotolife/s/sorauni/20220828/20220828231846.png);
}
.haha::after {
  background-image: url(https://cdn-ak.f.st-hatena.com/images/fotolife/s/sorauni/20231130/20231130190134.png);
}

/* ========================================
   出資馬一覧テーブル用CSS（改善・ターフグリーン版）
======================================== */

/* --- テーマカラーの定義（ターフグリーン） --- */
:root {
  --turf-green: #388E3C;
}

/* --- 一頭分のカード全体 --- */
.horse-card {
  background: #ffffff;
  border: none; /* 古い実線を削除 */
  border-radius: 12px;
  padding: 24px; /* 余白を少し広げてゆったりと */
  margin: 30px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* 影をフワッと広げてモダンに */
  transition: all 0.3s ease; /* ホバー時のアニメーション準備 */
}

/* カードにマウスを乗せた時に少し浮き上がる演出（PC用） */
@media (hover: hover) {
    .horse-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    }
}

/* --- スマホ表示時のカード微調整 --- */
@media screen and (max-width: 768px) {
    .horse-card {
        padding: 16px; /* スマホでは余白を少し詰める */
        margin: 20px 0;
    }
}

/* --- タイトル（馬名） --- */
.horse-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
  border-left: 5px solid var(--turf-green); /* ターフグリーンに変更し、少し太く */
  padding-left: 12px;
  color: #333;
  font-weight: bold;
}

/* --- 画像 --- */
.horse-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* 画像にも薄い影をつけて立体感を */
}

/* --- テーブル共通 --- */
.horse-table {
  width: 100%;
  border-collapse: collapse; /* 隙間をなくしてスッキリと */
  margin: 15px 0;
  font-size: 0.95rem;
}

/* ヘッダーセル */
.horse-table th {
  background: #f8f9fa; /* より明るくスッキリとしたグレー */
  padding: 12px 10px;
  text-align: left;
  border-bottom: 2px solid var(--turf-green); /* 下線をターフグリーンで強調 */
  font-weight: bold;
  color: #333;
  white-space: nowrap; /* 改行防止 */
}

/* 内容セル */
.horse-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #eee;
  color: #444;
}

/* しましま背景 */
.horse-table tr:nth-child(even) td {
  background: #fafbfc; /* ごく薄いグレー */
}

/* --- 戦績テーブル特有のスクロール設定（縦・横） --- */
.record-table-wrapper {
  /* ★ここがポイント！縦横のスクロール領域を作ります */
  max-height: 250px; /* 約5?6戦分の高さで固定（調整可） */
  overflow-y: auto; /* 縦スクロールを許可 */
  overflow-x: auto; /* スマホ用に横スクロールも許可 */
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid #eee; /* スクロール枠の最後に線を引く */
  margin-top: 10px;
}

/* スクロール領域内のテーブルは下の余白を消す */
.record-table-wrapper .horse-table {
    margin: 0;
}

/* 戦績テーブルのヘッダーを上部に固定（スクロールしても見出しが残る） */
.record-table-wrapper th {
    position: sticky;
    top: 0;
    z-index: 2; /* セルより手前に表示 */
}

/* ========================================
   出資馬一覧：戦績テーブルの着順カラー（優先度最強版）
======================================== */

/* しましま背景より強くするために、より具体的に指定する */
.entry-content table.horse-table td.rank-1 { 
    background-color: #fff4b8 !important; 
}
.entry-content table.horse-table td.rank-2 { 
    background-color: #e3f2fd !important; /* 爽やかな水色 */
}
.entry-content table.horse-table td.rank-3 { 
    background-color: #ffebee !important; /* 優しいピンク（赤系） */
}

/* ========================================
   出資馬一覧：スマホでのテーブル幅縮小を修正
======================================== */
@media screen and (max-width: 768px) {
    /* 全体設定の「スマホ用縮小」を解除し、100%の幅に戻す */
    .entry-content table.horse-table {
        display: table !important;
        width: 100% !important;
    }
    
    /* 基本情報テーブルの右側セルは改行を許可（文字が長い場合の保険） */
    .entry-content table.horse-table td {
        white-space: normal !important;
    }

    /* 戦績テーブル（record-table）だけは引き続き「改行なし」を維持してスクロールさせる */
    .entry-content table.record-table th,
    .entry-content table.record-table td {
        white-space: nowrap !important;
    }
}

/* ========================================
   出資馬一覧：引退馬（.retired）の静かなアーカイブデザイン
======================================== */

/* 1. カード全体の影をなくし、背景をほんのりトーンダウン（静止状態を表現） */
.horse-card.retired {
    box-shadow: none !important;
    border: 1px solid #eeeeee !important;
    background-color: #fafbfc !important;
}

/* 2. 画像はカラーのまま、ほんの少しだけ透過（現役感と差をつける） */
.horse-card.retired img {
    filter: none !important;
    opacity: 0.85 !important;
}

/* 3. ★馬名とアクセント線をグレーアウトして「アーカイブ済」を表現 */
.horse-card.retired h5 {
    color: #999999 !important; /* 馬名をグレーに変更 */
    border-left-color: #dddddd !important; /* 左の線も目立たない薄いグレーに */
    display: flex;
    align-items: center;
}

/* 「引退」バッジも馬名に合わせてひっそりと */
.horse-card.retired h3::after {
    content: "引退";
    display: inline-block;
    font-size: 0.65em;
    font-weight: normal;
    color: #999999 !important;
    background-color: #ffffff !important;
    border: 1px solid #eeeeee !important;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 12px;
}

/* 4. テーブルの見出しや文字もグレー系で静かにまとめる */
.horse-card.retired .horse-table th {
    background-color: #f8f9fa !important;
    border-bottom-color: #eeeeee !important;
    color: #888888 !important;
}

/* テーブル内の文字も少しグレー寄りにして現役と差をつける */
.horse-card.retired .horse-table td {
    color: #777777 !important; 
}

/* ホバー（マウスオーバー）時のアクションも無効化 */
@media (hover: hover) {
    .horse-card.retired:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* ========================================
   YouTube埋め込み動画のモダン化＆デザイン調整
======================================== */

/* 1. 従来のラッパー（.movie-wrap）を使用している過去記事用のリセットと更新 */
.movie-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important; /* ★最新の魔法：これだけで16:9を維持します */
    height: auto !important;
    padding-bottom: 0 !important; /* 古いpaddingハックを無効化 */
    margin: 32px 0 !important;
    border-radius: 12px !important; /* 角を丸くしてカードデザインと統一 */
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; /* フワッとした影をつける */
}

.movie-wrap iframe {
    position: static !important; /* 古い絶対配置を無効化 */
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* 2. 【超便利】今後、ラッパー(div)無しで直接URLを貼り付けた場合も自動でレスポンシブにする設定 */
.entry-content iframe[src*="youtube.com"] {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    margin: 32px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    border: none !important;
}

/* ========================================
   ボックステキスト（過去記事の保護＆ターフグリーン化）
======================================== */
.box01 {
    position: relative;
    margin: 2.5em 0 1.5em; /* 上の余白を少し広げてタイトルとの被りを防ぐ */
    padding: 1.5em 1em 1em; /* 内側の余白を調整 */
    border: solid 2px var(--turf-green); /* 太さを3pxから2pxにしてスッキリと */
    border-radius: 8px; /* 全体に少し角丸をつける */
    background-color: #ffffff;
}

.box01 .box-title {
    position: absolute;
    display: inline-block;
    top: -15px; /* 位置を微調整 */
    left: 15px; /* 左端から少し内側に入れてスタイリッシュに */
    padding: 0 15px;
    height: 30px;
    line-height: 30px;
    font-size: 15px;
    background: var(--turf-green); /* ターフグリーンに変更 */
    color: #ffffff;
    font-weight: bold;
    border-radius: 4px; /* タイトルも角丸に */
}

.box01 p {
    margin: 0;
    padding: 0;
}

/* 箇条書きの設定 */
.box01 ul {
    padding-left: 0;
    margin: 0;
}

.box01 ul li {
    position: relative;
    line-height: 1.5;
    padding: 0.5em 0 0.5em 1.8em; /* アイコン分の余白を確保 */
    list-style-type: none !important;
}

/* リストのアイコン（Font Awesomeの馬アイコン \f7ab） */
.box01 ul li:before {
    font-family: "Font Awesome 5 Free";
    content: "\f7ab";
    font-weight: 900;
    position: absolute;
    font-size: 16px;
    left: 0;
    top: 0.5em;
    color: var(--turf-green); /* 馬のアイコンもターフグリーンに！ */
}

/* ========================================
   トップページ（記事一覧）のサムネイル最適化（完全版）
======================================== */

/* リンク枠の調整 */
.archive-entry .entry-thumb-link {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
}

/* 画像枠（div）の調整：paddingハックで16:9を強制 */
.archive-entry .entry-thumb {
    width: 100% !important;
    height: 0 !important; /* ★高さを一旦0にする */
    padding-bottom: 56.25% !important; /* ★幅に対して56.25%の高さ(16:9)を強制的に確保 */
    background-size: contain !important; /* ★画像全体を絶対に表示する（見切れ防止） */
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #f8f9fa !important; /* 余白ができた場合の背景色（薄いグレー） */
    border-radius: 12px 12px 0 0 !important; /* 上部の角丸 */
}

/* スマホ表示時：カード全体の隙間を少し詰めてコンパクトにする */
@media screen and (max-width: 768px) {
    .archive-entry {
        margin-bottom: 24px !important; 
    }
}

/* ========================================
   サイドバー用：手動アコーディオンカテゴリ
======================================== */
.sidebar-accordion details {
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* クリックする見出し部分 */
.sidebar-accordion summary {
    display: block;
    padding: 12px 15px;
    font-weight: bold;
    color: #333333;
    background: #f8f9fa;
    cursor: pointer;
    position: relative;
    list-style: none; /* デフォルトの黒い三角を消す */
}

.sidebar-accordion summary::-webkit-details-marker {
    display: none; /* Safari用の黒い三角消去 */
}

/* 右側の「＋」マーク */
.sidebar-accordion summary::after {
    content: "＋";
    position: absolute;
    right: 15px;
    color: var(--turf-green); /* ターフグリーンでアクセント */
    font-weight: bold;
    transition: transform 0.3s;
}

/* 開いたときは「－」マークに */
.sidebar-accordion details[open] summary::after {
    content: "－";
}

/* 開いたときに見出しの下に線を引く */
.sidebar-accordion details[open] summary {
    border-bottom: 1px solid #e5e5e5;
}

/* 中身のリスト */
.sidebar-accordion ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-accordion li {
    border-bottom: 1px dashed #f0f0f0;
}

.sidebar-accordion li:last-child {
    border-bottom: none;
}

.sidebar-accordion li a {
    display: block;
    padding: 10px 15px 10px 20px;
    color: #555555;
    text-decoration: none;
    font-size: 0.95em;
    transition: background-color 0.2s;
}

/* マウスを乗せたとき（タップしたとき） */
.sidebar-accordion li a:hover {
    background: #f0f7f1; /* ターフグリーンの極薄い背景 */
    color: var(--turf-green);
}

/* ========================================
   サイドバー用：単独カテゴリ（アコーディオン無し）
======================================== */
.sidebar-accordion .single-category {
    margin-top: 10px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    padding: 0;
}

.sidebar-accordion .single-category li {
    border-bottom: 1px solid #e5e5e5; /* アコーディオン見出しと同じ線 */
    list-style: none;
}

.sidebar-accordion .single-category li:last-child {
    border-bottom: none;
}

/* アコーディオンの見出し（summary）と全く同じ見た目にする */
.sidebar-accordion .single-category li a {
    display: block;
    padding: 12px 15px;
    font-weight: bold;
    color: #333333;
    background: #f8f9fa;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.2s;
}

/* マウスを乗せた時（タップした時）にターフグリーンに光らせる */
.sidebar-accordion .single-category li a:hover {
    background: #f0f7f1;
    color: var(--turf-green);
}

/* リンクカード全体の装飾 */
iframe.hatenablogcard {
    border-radius: 8px; /* 角を少し丸くする */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 薄い影をつける */
    transition: all 0.3s ease; /* ホバー時のアニメーションの滑らかさ */
}

/* マウスオーバー時の動作 */
iframe.hatenablogcard:hover {
    transform: translateY(-3px); /* 少し上に浮かす */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 影を濃く・広くする */
}

/* CLS対策 */
@media only screen and (min-width: 960px) {
#headbox {   
height:60px;
}
}