/*
  Theme: VIBEHOURCE — 青空競馬
  Author: vibehource
  Description: カバーイラストと読みやすい競馬予想。スマホではプロフィールを先に表示。
  Responsive: yes
*/

:root {
  --ink: #182f49;
  --muted: #68778a;
  --blue: #1568b3;
  --blue-light: #edf5fc;
  --red: #e34c39;
  --paper: #ffffff;
  --ground: #f3f6f9;
  --line: #dfe6ed;
  --site-width: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: break-word;
}
a { color: var(--blue); text-decoration: none; text-underline-offset: .22em; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #efa438;
  outline-offset: 4px;
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
button, input, textarea, select { font: inherit; }

#container {
  width: min(var(--site-width), calc(100% - 64px));
  margin: 0 auto;
}
.blog-controlls {
  position: static;
  width: min(var(--site-width), calc(100% - 64px));
  margin: 28px auto 0;
  padding: 12px 20px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}
.blog-controlls .blog-controlls-blog-icon { display: block; }
.blog-controlls .blog-controlls-title { display: -webkit-box; }
.blog-controlls .blog-controlls-title a { color: var(--ink); font-size: 13px; }
.blog-controlls .blog-controlls-subscribe-btn {
  min-height: 36px;
  padding: 8px 14px;
  color: white;
  background: var(--ink);
  font-size: 12px;
  white-space: nowrap;
  z-index: auto;
}
.blog-controlls .blog-controlls-subscribe-btn:visited { color: white; }
.blog-controlls .blog-controlls-subscribe-btn:hover { color: white; background: var(--blue); }
#container-inner, #content, #wrapper, #main, #main-inner, #box1, #box2, #box2-inner {
  min-width: 0;
}

/* ヘッダ画像ははてなの「画像とテキストを表示」で設定する。2172×724の画像を全幅で表示。 */
#blog-title { margin: 0; padding: 0; }
#blog-title-inner {
  height: auto !important;
  min-height: 0 !important;
  background-color: #dcefff;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top !important;
  border-radius: 0;
  overflow: hidden;
}
#blog-title-inner::before { content: ""; display: block; aspect-ratio: 3 / 1; }
#blog-title-content {
  padding: 23px 32px 21px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
#title {
  margin: 0;
  font-size: clamp(24px, 2.9vw, 34px);
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.5;
  text-wrap: balance;
}
#title a { color: var(--ink); }
#title a:hover { text-decoration: none; color: var(--blue); }
body #blog-title #title, body #blog-title #title a,
.header-image-enable #blog-title #title a { color: var(--ink); text-shadow: none; }
#blog-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.7;
}
body #blog-title #blog-description,
.header-image-enable #blog-title #blog-description { color: var(--muted); text-shadow: none; font-weight: 400; }
#top-editarea { margin: 0; }
.vibe-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 32px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.vibe-nav a { color: var(--ink); }
.vibe-nav .vibe-nav-x { margin-left: auto; color: var(--blue); }

#content { padding-top: 32px; }
#content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  align-items: start;
  gap: 32px;
}
#main { float: none; width: auto; }
#box2 { float: none; width: auto; margin: 0; }

.entry {
  position: relative;
  margin: 0 0 24px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.entry-inner { min-width: 0; }
.entry-header { margin-bottom: 22px; }
.page-index .entry:first-of-type { border-top: 4px solid var(--blue); }
.page-index .entry:first-of-type .entry-header::before {
  content: "最新の予想";
  display: inline-block;
  margin-bottom: 13px;
  padding: 2px 10px;
  color: var(--blue);
  background: var(--blue-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.date { margin: 0 0 8px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.date a { color: inherit; }
.entry-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 750;
  letter-spacing: .015em;
  line-height: 1.55;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--blue); }
.entry-categories, .categories { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.entry-category-link, .categories a {
  padding: 2px 9px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.entry-header .entry-header-menu { font-size: 12px; }
.entry-content { font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.entry-content p { margin: 0 0 1.5em; }
.entry-content > p:first-child {
  padding: 18px 20px;
  background: #f5f8fb;
  border-left: 3px solid #6ba9db;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.9;
}
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.6;
  scroll-margin-top: 24px;
}
.entry-content h1, .entry-content h2 {
  margin: 2.2em 0 1.1em;
  padding: 10px 0 10px 14px;
  border-left: 4px solid var(--blue);
  border-bottom: 1px solid var(--line);
  font-size: 21px;
}
.entry-content h3 { margin: 2em 0 1em; font-size: 19px; }
.entry-content h4 { margin: 1.6em 0 .8em; font-size: 17px; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin: 0 0 1.6em; }
.entry-content li { padding-left: .2em; margin: .6em 0; }
.entry-content li::marker { color: #6387a7; }
.entry-content li > p { margin-bottom: .6em; }
.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  color: var(--muted);
  border-left: 3px solid #a5b6c7;
  background: #f7f9fb;
}
.entry-content hr { margin: 32px 0; height: 1px; border: 0; background: var(--line); }
.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); }
.entry-content th { background: var(--blue-light); text-align: left; }
.entry-content pre { max-width: 100%; overflow-x: auto; padding: 18px; background: #f2f5f8; border-radius: 6px; }
.entry-content code { font-size: .88em; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.entry-content pre code { font-size: 13px; }
.entry-content .hatena-fotolife { border-radius: 6px; }
.entry-content .entry-see-more {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 48px;
  margin: 3px 0 4px;
  padding: 10px 21px;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
.entry-see-more::after { content: "→"; color: #86c9ff; }
.entry-content .entry-see-more:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; }
.entry-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.entry-footer a { color: inherit; }
.entry-footer-section { margin: 8px 0; }
.social-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entry-footer-html { margin-top: 24px; overflow-wrap: anywhere; }

.hatena-module { margin-bottom: 28px; padding: 0; font-size: 13px; }
.hatena-module-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .05em;
}
.hatena-module-title a { color: inherit; }
.hatena-module-body { overflow-wrap: anywhere; }
.hatena-module-profile {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.hatena-module-profile .hatena-module-title { border: 0; padding: 0; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.hatena-module-profile .profile-icon { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.hatena-module-profile .profile-icon-link { float: left; margin: 0 13px 14px 0; }
.hatena-module-profile .id { display: block; padding-top: 12px; font-size: 14px; font-weight: 700; }
.hatena-module-profile .profile-description { clear: both; margin: 14px 0; line-height: 1.8; }
.hatena-module-profile .hatena-follow-button-box { clear: both; margin: 10px 0; }
.hatena-module-profile .btn-twitter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: #fff;
  background: var(--ink);
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.6;
}
.hatena-module-profile .btn-twitter:hover { background: var(--blue); text-decoration: none; }
.btn-twitter img { width: 14px; height: 14px; }
.profile-about { clear: both; margin-top: 14px; font-size: 11px; }
.hatena-urllist { list-style: none; margin: 0; padding: 0; }
.hatena-urllist li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.75; }
.hatena-urllist a { color: var(--ink); }
.urllist-date-link { color: var(--muted); font-size: 11px; }
.urllist-image, .recent-entries-entry-image { border-radius: 4px; }
.search-form { position: relative; display: flex; gap: 6px; }
.search-module-input {
  width: 100%; min-width: 0; padding: 10px 12px;
  color: var(--ink); background: white; border: 1px solid #cad6e2; border-radius: 5px;
  font-size: 14px;
}
.search-module-button { padding: 8px 12px; color: white; background: var(--ink); border: 0; border-radius: 5px; font-size: 12px; cursor: pointer; }
.hatena-module-archive ul { padding-left: 20px; }
.hatena-module-archive a { color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin: 32px 0 48px; }
.pager > span { max-width: 48%; }
.pager a { display: block; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font-size: 13px; }
.breadcrumb { margin: 0 0 20px; font-size: 12px; }
.archive-header-category, .archive-heading { margin: 0 0 24px; color: var(--ink); font-size: 26px; }
.archive-entries { padding: 0; }
.archive-entry { margin: 0 0 18px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.archive-entry .entry-title { font-size: 22px; }
.archive-entry .entry-description { margin: 12px 0; font-size: 14px; color: var(--muted); line-height: 1.85; overflow-wrap: anywhere; }
.archive-entry .entry-thumb { max-width: 120px; border-radius: 6px; }
.archive-entry::after { content: ""; display: block; clear: both; }
.page-about .entry-content, .page-about #main-inner > dl { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.page-about dt { margin-top: 1em; font-weight: 700; }
.page-about dd { margin: 4px 0 16px; }
.comment-box { margin-top: 32px; }
.comment { margin: 16px 0; padding: 16px; background: #f7f9fb; border-radius: 6px; }
.comment-user-name { font-weight: 700; }
.comment-content { overflow-wrap: anywhere; }
.comment-metadata { color: var(--muted); font-size: 12px; }
.leave-comment-title { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 5px; }
#bottom-editarea { margin: 32px 0; }
#footer { padding: 24px 16px; color: var(--muted); text-align: center; font-size: 12px; }
#footer a { color: inherit; }

@media (max-width: 900px) {
  #container { width: calc(100% - 40px); }
  .blog-controlls { width: calc(100% - 40px); margin-top: 20px; }
  #content-inner { grid-template-columns: minmax(0, 1fr) 238px; gap: 22px; }
  .entry { padding: 25px; }
  .hatena-module-profile { padding: 18px; }
}

@media (max-width: 720px) {
  #container { width: 100%; margin-top: 0; }
  .blog-controlls { width: 100%; margin-top: 0; padding: 12px 16px; gap: 10px; border-radius: 0; }
  .blog-controlls .blog-controlls-title a { font-size: 12px; }
  .blog-controlls .blog-controlls-subscribe-btn { padding: 8px 10px; }
  #blog-title-inner { border-radius: 0; }
  #blog-title-content { padding: 20px 20px 18px; }
  #title { font-size: 25px; letter-spacing: .02em; line-height: 1.5; }
  #blog-description { font-size: 11px; }
  .vibe-nav { gap: 12px 22px; padding: 12px 20px; font-size: 11px; }
  .vibe-nav .vibe-nav-x { margin-left: 0; }
  #content { padding: 20px 16px 0; }
  #content-inner { display: flex; flex-direction: column; gap: 0; }
  #wrapper { order: 0; width: 100%; }
  /* プロフィールだけを記事の前へ。他のサイドバーモジュールは記事の後に置く。 */
  #box2, #box2-inner { display: contents; }
  #box2-inner > * { order: 1; width: 100%; }
  #box2-inner > .hatena-module-profile { order: -1; }
  .hatena-module-profile { padding: 16px; margin: 0 0 20px; }
  .hatena-module-profile .hatena-module-title { margin-bottom: 10px; font-size: 11px; }
  .hatena-module-profile .profile-icon { width: 42px; height: 42px; }
  .hatena-module-profile .profile-icon-link { margin: 0 11px 10px 0; }
  .hatena-module-profile .id { padding-top: 5px; font-size: 13px; }
  .hatena-module-profile .hatena-follow-button-box { clear: none; display: inline-block; vertical-align: middle; margin: 8px 8px 0 0; }
  .hatena-module-profile .hatena-follow-button-box:has(.btn-twitter) { display: block; margin-right: 0; }
  .hatena-module-profile .btn-twitter { min-height: 42px; }
  .profile-about { margin-top: 9px; }
  .entry { padding: 22px 20px; margin-bottom: 18px; border-radius: 8px; }
  .entry-header { margin-bottom: 18px; }
  .entry-title { font-size: 22px; line-height: 1.6; }
  .entry-content { font-size: 16px; line-height: 1.95; }
  .entry-content > p:first-child { padding: 14px; font-size: 14px; }
  .entry-content h1, .entry-content h2 { font-size: 19px; padding-left: 11px; }
  .entry-content h3 { font-size: 18px; }
  .entry-content ul, .entry-content ol { padding-left: 1.3em; }
  .entry-content blockquote { padding: 14px; }
  .entry-content .entry-see-more { width: 100%; justify-content: space-between; }
  .entry-footer { font-size: 11px; }
  .hatena-module { margin-bottom: 24px; }
  .archive-entry { padding: 20px; }
  .archive-entry .entry-title { font-size: 21px; }
  .archive-entry .entry-thumb { max-width: 88px; }
  .pager { margin: 24px 0 32px; gap: 10px; }
  .pager a { padding: 12px; font-size: 12px; }
}

@media (max-width: 360px) {
  #blog-title-content { padding: 18px 16px; }
  #title { font-size: 23px; }
  #content { padding-right: 12px; padding-left: 12px; }
  .entry { padding: 20px 16px; }
  .entry-title { font-size: 21px; }
  .vibe-nav { padding-right: 16px; padding-left: 16px; gap: 10px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
