/* <system section="theme" selected="14945776032038372611"> */
/*
  Theme: AI FACTORY Flow
  Author: AI FACTORY
  Description: A quiet, readable Hatena Blog theme for essays, notes, and operational logs.
  Responsive: yes
*/

:root {
  --af-bg: #f7f5ef;
  --af-surface: #fffdf8;
  --af-surface-soft: #eeebe3;
  --af-text: #202326;
  --af-muted: #667074;
  --af-border: #d9d4c8;
  --af-link: #0d6f73;
  --af-link-hover: #9b3f4d;
  --af-accent: #d8892c;
  --af-code-bg: #222629;
  --af-code-text: #f5efe3;
  --af-shadow: 0 10px 30px rgba(32, 35, 38, 0.08);
  --af-radius: 8px;
  --af-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --af-font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --af-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html {
  box-sizing: border-box;
  background: var(--af-bg);
  color: var(--af-text);
  font-family: var(--af-font-sans);
  line-height: 1.75;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(247, 245, 239, 0.92), rgba(247, 245, 239, 1) 460px),
    repeating-linear-gradient(90deg, rgba(13, 111, 115, 0.04) 0 1px, transparent 1px 80px);
  color: var(--af-text);
  font-size: 16px;
}

a {
  color: var(--af-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--af-link-hover);
}

img,
iframe,
video {
  max-width: 100%;
}

img {
  height: auto;
  vertical-align: middle;
}

hr {
  margin: 2.75em 0;
  border: 0;
  border-top: 1px solid var(--af-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
}

th,
td {
  padding: 0.75em 0.85em;
  border: 1px solid var(--af-border);
  vertical-align: top;
}

th {
  background: var(--af-surface-soft);
  font-weight: 700;
  text-align: left;
}

#container {
  min-height: 100vh;
}

#container-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

#blog-title {
  padding: 46px 0 34px;
}

#blog-title-inner {
  min-height: 0;
}

#title {
  margin: 0;
  font-family: var(--af-font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

#title a {
  color: var(--af-text);
  text-decoration: none;
}

#blog-description {
  max-width: 680px;
  margin: 0.7em 0 0;
  color: var(--af-muted);
  font-size: 1rem;
  font-weight: 400;
}

.header-image-enable #blog-title-inner,
.header-image-only #blog-title-inner {
  min-height: 200px;
  display: grid;
  align-content: end;
  padding: 28px;
  border-radius: var(--af-radius);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--af-shadow);
}

.header-image-enable #title a,
.header-image-enable #blog-description {
  color: #fffdf8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.header-image-only #title,
.header-image-only #blog-description {
  display: none;
}

#top-editarea,
#bottom-editarea,
.entry-header-html,
.entry-footer-html {
  margin: 0 0 24px;
}

#content {
  padding-bottom: 56px;
}

#content-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 38px;
  align-items: start;
}

#wrapper,
#main {
  min-width: 0;
}

#box2 {
  min-width: 0;
}

.entry,
.archive-entry,
.page-about #main,
.page-archive #main,
.page-search #main {
  background: var(--af-surface);
  border: 1px solid rgba(217, 212, 200, 0.8);
  border-radius: var(--af-radius);
  box-shadow: var(--af-shadow);
}

.entry {
  margin: 0 0 34px;
  padding: 36px;
}

.entry-header {
  margin-bottom: 24px;
}

.date {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  color: var(--af-muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
}

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

.date::before {
  content: "";
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.55em;
  border: 2px solid var(--af-accent);
  border-radius: 50%;
}

.entry-title {
  margin: 0;
  color: var(--af-text);
  font-family: var(--af-font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--af-link-hover);
}

.entry-categories,
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.entry-categories a,
.categories a,
.archive-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25em 0.7em;
  border: 1px solid rgba(13, 111, 115, 0.2);
  border-radius: 999px;
  background: rgba(13, 111, 115, 0.08);
  color: var(--af-link);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.entry-content {
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 2.1em 0 0.75em;
  color: var(--af-text);
  font-family: var(--af-font-serif);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

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

.entry-content h2 {
  padding: 0.18em 0 0.32em;
  border-bottom: 2px solid var(--af-border);
  font-size: 1.55rem;
}

.entry-content h3 {
  padding-left: 0.8em;
  border-left: 4px solid var(--af-accent);
  font-size: 1.3rem;
}

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

.entry-content p {
  margin: 1.05em 0;
}

.entry-content ul,
.entry-content ol {
  margin: 1.2em 0;
  padding-left: 1.45em;
}

.entry-content li {
  margin: 0.35em 0;
}

.entry-content blockquote {
  margin: 1.7em 0;
  padding: 1.1em 1.25em;
  border-left: 4px solid var(--af-link);
  border-radius: 0 var(--af-radius) var(--af-radius) 0;
  background: rgba(13, 111, 115, 0.07);
  color: #334044;
}

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

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

.entry-content pre,
.entry-content code {
  font-family: var(--af-font-mono);
}

.entry-content code {
  padding: 0.15em 0.35em;
  border-radius: 4px;
  background: rgba(32, 35, 38, 0.08);
  font-size: 0.92em;
}

.entry-content pre {
  overflow-x: auto;
  margin: 1.5em 0;
  padding: 1.15em 1.25em;
  border-radius: var(--af-radius);
  background: var(--af-code-bg);
  color: var(--af-code-text);
  line-height: 1.65;
}

.entry-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.entry-content figure {
  margin: 1.6em 0;
}

.entry-content figcaption {
  margin-top: 0.55em;
  color: var(--af-muted);
  font-size: 0.88rem;
}

.entry-content .keyword {
  border-bottom: 1px dotted var(--af-border);
  color: inherit;
  text-decoration: none;
}

.entry-footer {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--af-border);
  color: var(--af-muted);
  font-size: 0.92rem;
}

.entry-footer-section {
  margin: 12px 0;
}

.entry-footer a,
.comment-box a {
  color: var(--af-link);
}

.social-buttons,
.hatena-star-container,
.customized-footer {
  margin-top: 18px;
}

.related-entries,
.urllist-related-entries {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--af-border);
}

.comment-box {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--af-border);
}

.comment-box .comment {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  background: rgba(247, 245, 239, 0.58);
}

.comment-box .read-more-comments {
  margin: 18px 0;
}

#box2 .hatena-module {
  margin: 0 0 22px;
  padding: 20px;
  border: 1px solid rgba(217, 212, 200, 0.8);
  border-radius: var(--af-radius);
  background: rgba(255, 253, 248, 0.88);
}

.hatena-module-title {
  margin: 0 0 14px;
  color: var(--af-text);
  font-size: 0.95rem;
  font-weight: 800;
}

.hatena-module-title a {
  color: inherit;
  text-decoration: none;
}

.hatena-module-body ul,
.hatena-module-body ol {
  margin: 0;
  padding-left: 1.15em;
}

.hatena-module-body li {
  margin: 0.55em 0;
}

.hatena-module-body,
.hatena-module-body p {
  color: var(--af-muted);
  font-size: 0.94rem;
}

.profile-icon {
  border-radius: 50%;
}

.recent-entries-item,
.urllist-item {
  overflow-wrap: anywhere;
}

.recent-entries-entry-image,
.urllist-image {
  border-radius: 6px;
}

.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 26px 0 38px;
}

.pager a {
  display: block;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  background: var(--af-surface);
  color: var(--af-link);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.pager a:hover,
.pager a:focus {
  border-color: rgba(155, 63, 77, 0.4);
  color: var(--af-link-hover);
}

.pager .pager-prev {
  text-align: left;
}

.pager .pager-next {
  text-align: right;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--af-muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: inherit;
}

.page-about #main,
.page-archive #main,
.page-search #main {
  padding: 32px;
}

.page-archive .archive-entries {
  display: grid;
  gap: 18px;
}

.page-archive .archive-entry {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}

.page-archive .archive-entry .date {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.page-archive .archive-entry-header,
.page-archive .archive-entry-body {
  min-width: 0;
}

.page-archive .archive-entry .entry-title {
  font-size: 1.25rem;
}

.page-archive .archive-entry .entry-description {
  margin: 0.7em 0 0;
  color: var(--af-muted);
  line-height: 1.65;
}

.page-archive .archive-entry .entry-thumb,
.page-archive .archive-entry .entry-thumb-link {
  width: 160px;
  aspect-ratio: 4 / 3;
}

.page-archive .archive-entry .entry-thumb {
  overflow: hidden;
  border-radius: var(--af-radius);
  background: var(--af-surface-soft);
  object-fit: cover;
}

.page-search .search-result {
  margin-top: 20px;
}

#footer {
  margin-top: 24px;
  padding: 28px 0 42px;
  color: var(--af-muted);
  font-size: 0.88rem;
  text-align: center;
}

#footer a {
  color: inherit;
}

.btn,
.entry-content .btn,
input[type="submit"],
button {
  min-height: 40px;
  padding: 0.55em 0.9em;
  border: 1px solid var(--af-link);
  border-radius: var(--af-radius);
  background: var(--af-link);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
  width: 100%;
  min-height: 40px;
  padding: 0.55em 0.7em;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  background: #fff;
  color: var(--af-text);
  font: inherit;
}

textarea {
  min-height: 120px;
}

::selection {
  background: rgba(216, 137, 44, 0.28);
}

@media (max-width: 900px) {
  #container-inner {
    width: min(100% - 28px, 720px);
  }

  #content-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  #box2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #box2 .hatena-module {
    margin: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  #container-inner {
    width: calc(100% - 22px);
  }

  #blog-title {
    padding: 28px 0 22px;
  }

  #title {
    font-size: 1.85rem;
  }

  #blog-description {
    font-size: 0.94rem;
  }

  .header-image-enable #blog-title-inner,
  .header-image-only #blog-title-inner {
    min-height: 150px;
    padding: 20px;
  }

  .entry,
  .page-about #main,
  .page-archive #main,
  .page-search #main {
    padding: 22px;
  }

  .entry-title {
    font-size: 1.55rem;
  }

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

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

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

  #box2 {
    grid-template-columns: 1fr;
  }

  .pager {
    grid-template-columns: 1fr;
  }

  .pager .pager-next {
    text-align: left;
  }

  .page-archive .archive-entry {
    grid-template-columns: 1fr;
  }

  .page-archive .archive-entry .entry-thumb,
  .page-archive .archive-entry .entry-thumb-link {
    width: 100%;
  }
}

/*
  Variant: AI FACTORY Agent Console
  Purpose: Stronger visual identity for a personal agent-edited Hatena Blog.
  Paste this whole file into Hatena Blog Design CSS.
*/

:root {
  --af-bg: #101417;
  --af-surface: #fffaf0;
  --af-surface-soft: #efe6d4;
  --af-text: #171b1f;
  --af-muted: #5c6870;
  --af-border: #d8c9aa;
  --af-link: #007d87;
  --af-link-hover: #b64761;
  --af-accent: #f0a33a;
  --af-code-bg: #151b20;
  --af-code-text: #f8efe0;
  --af-shadow: 0 18px 48px rgba(8, 13, 16, 0.22);
}

body {
  background:
    linear-gradient(180deg, rgba(16, 20, 23, 0.98) 0 260px, rgba(240, 233, 219, 1) 260px),
    repeating-linear-gradient(90deg, rgba(240, 163, 58, 0.14) 0 1px, transparent 1px 96px);
}

#container-inner {
  width: min(1180px, calc(100% - 44px));
}

#blog-title {
  position: relative;
  margin: 34px 0 30px;
  padding: 34px 34px 36px;
  border: 1px solid rgba(240, 163, 58, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 125, 135, 0.24), transparent 44%),
    linear-gradient(180deg, #1d252a, #12181c);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

#blog-title::before {
  content: none;
  display: inline-flex;
  margin-bottom: 18px;
  padding: 0.34em 0.72em;
  border: 1px solid rgba(240, 163, 58, 0.44);
  border-radius: 999px;
  color: #f0a33a;
  font-family: var(--af-font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

#title {
  font-family: var(--af-font-sans);
  font-size: 2.65rem;
  font-weight: 900;
}

#title a {
  color: #fff7e7;
}

#blog-description {
  max-width: 780px;
  color: #c8d2d6;
}

#content-inner {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
}

.entry,
.archive-entry,
.page-about #main,
.page-archive #main,
.page-search #main,
#box2 .hatena-module {
  border: 1px solid var(--af-border);
  background: var(--af-surface);
  box-shadow: var(--af-shadow);
}

.entry,
.page-about #main,
.page-archive #main,
.page-search #main {
  position: relative;
  overflow: hidden;
}

.entry::before,
.page-about #main::before,
.page-archive #main::before,
.page-search #main::before {
  content: "";
  display: block;
  height: 7px;
  margin: -36px -36px 28px;
  background: linear-gradient(90deg, var(--af-link), var(--af-accent), var(--af-link-hover));
}

.entry-title {
  font-family: var(--af-font-sans);
  font-size: 2.12rem;
  font-weight: 900;
}

.date {
  color: #44525a;
  font-family: var(--af-font-mono);
}

.entry-content {
  font-size: 1.04rem;
  line-height: 1.9;
}

.entry-content h2 {
  display: flex;
  align-items: center;
  gap: 0.6em;
  border-bottom: 0;
  font-family: var(--af-font-sans);
  font-weight: 900;
}

.entry-content h2::before {
  content: "";
  width: 0.74em;
  height: 0.74em;
  border-radius: 2px;
  background: var(--af-accent);
  box-shadow: 0.28em 0.28em 0 rgba(0, 125, 135, 0.22);
  flex: 0 0 auto;
}

.entry-content h3 {
  border-left-color: var(--af-link-hover);
  font-family: var(--af-font-sans);
  font-weight: 850;
}

.entry-categories a,
.categories a,
.archive-category-link {
  border-color: rgba(240, 163, 58, 0.56);
  background: #1d252a;
  color: #fff7e7;
}

.entry-content blockquote {
  border-left-color: var(--af-accent);
  background: #fff1d1;
}

#box2 {
  align-self: start;
}

#box2 .hatena-module {
  position: relative;
  padding: 22px;
  overflow: hidden;
}

#box2 .hatena-module::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--af-link), var(--af-accent));
}

.hatena-module-title {
  font-family: var(--af-font-sans);
  font-size: 1rem;
  font-weight: 900;
}

input[type="submit"],
button,
.btn,
.entry-content .btn {
  border-color: #007d87;
  background: #007d87;
}

input[type="submit"]:hover,
button:hover,
.btn:hover,
.entry-content .btn:hover {
  border-color: #b64761;
  background: #b64761;
}

.pager a {
  border-color: var(--af-border);
  background: #1d252a;
  color: #fff7e7;
}

#footer {
  color: #d9dedf;
}

@media (max-width: 900px) {
  body {
    background:
      linear-gradient(180deg, rgba(16, 20, 23, 0.98) 0 220px, rgba(240, 233, 219, 1) 220px);
  }

  #container-inner {
    width: min(100% - 24px, 760px);
  }

  #blog-title {
    margin-top: 22px;
    padding: 26px 24px 28px;
  }

  #content-inner {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    background:
      linear-gradient(180deg, rgba(16, 20, 23, 0.98) 0 210px, rgba(240, 233, 219, 1) 210px);
  }

  #container-inner {
    width: calc(100% - 16px);
  }

  #blog-title {
    margin: 12px 0 18px;
    padding: 22px 18px 24px;
  }

  #blog-title::before {
    max-width: 100%;
    font-size: 0.68rem;
    overflow-wrap: anywhere;
  }

  #title {
    font-size: 2rem;
    line-height: 1.16;
  }

  #blog-description {
    font-size: 0.98rem;
  }

  .entry,
  .page-about #main,
  .page-archive #main,
  .page-search #main {
    padding: 20px 18px;
  }

  .entry::before,
  .page-about #main::before,
  .page-archive #main::before,
  .page-search #main::before {
    margin: -20px -18px 22px;
  }

  .entry-title {
    font-size: 1.52rem;
  }

  .entry-content {
    font-size: 1rem;
    line-height: 1.86;
  }

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

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

  #box2 .hatena-module {
    padding: 20px 18px;
  }
}

/*
  Mobile Reading Layer
  Purpose: Prioritize smartphone reading comfort for blogs that already have articles.
  Paste this whole file into Hatena Blog Design CSS.
*/

@media (max-width: 900px) {
  html {
    scroll-padding-top: 12px;
  }

  body {
    background:
      linear-gradient(180deg, #101417 0 150px, #f2eadc 150px 100%);
  }

  #container-inner {
    width: min(100% - 18px, 720px);
  }

  #blog-title {
    margin: 10px 0 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  }

  #title {
    font-size: 1.72rem;
    line-height: 1.18;
  }

  #blog-description {
    margin-top: 0.55em;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  #content-inner {
    display: block;
  }

  .entry,
  .archive-entry,
  .page-about #main,
  .page-archive #main,
  .page-search #main {
    border-radius: 8px;
  }

  .entry {
    margin-bottom: 18px;
    padding: 22px 18px;
  }

  .entry::before,
  .page-about #main::before,
  .page-archive #main::before,
  .page-search #main::before {
    height: 5px;
    margin: -22px -18px 18px;
  }

  .entry-header {
    margin-bottom: 18px;
  }

  .date {
    margin-bottom: 8px;
    font-size: 0.78rem;
  }

  .entry-title {
    font-size: 1.42rem;
    line-height: 1.32;
  }

  .entry-categories,
  .categories {
    gap: 7px;
    margin-top: 12px;
  }

  .entry-categories a,
  .categories a,
  .archive-category-link {
    min-height: 34px;
    padding: 0.45em 0.78em;
    font-size: 0.82rem;
  }

  .entry-content {
    font-size: 1rem;
    line-height: 1.86;
  }

  .entry-content p {
    margin: 0.82em 0;
  }

  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6 {
    margin-top: 1.75em;
    margin-bottom: 0.65em;
  }

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

  .entry-content h2 {
    font-size: 1.2rem;
    line-height: 1.42;
  }

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

  .entry-content ul,
  .entry-content ol {
    padding-left: 1.25em;
  }

  .entry-content li {
    margin: 0.45em 0;
  }

  .entry-content blockquote {
    margin: 1.35em 0;
    padding: 0.95em 1em;
  }

  .entry-content pre {
    max-width: 100%;
    margin: 1.25em 0;
    padding: 1em;
    font-size: 0.86rem;
    line-height: 1.6;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content img {
    border-radius: 6px;
  }

  .entry-footer {
    margin-top: 24px;
    padding-top: 18px;
  }

  .pager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 18px 0 24px;
  }

  .pager a {
    min-height: 48px;
    padding: 13px 14px;
    text-align: left;
  }

  #box2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }

  #box2 .hatena-module {
    margin: 0;
    padding: 18px;
    box-shadow: 0 10px 26px rgba(8, 13, 16, 0.12);
  }

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

  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="url"],
  textarea {
    min-height: 46px;
    font-size: 16px;
  }

  input[type="submit"],
  button,
  .btn,
  .entry-content .btn {
    min-height: 46px;
    padding: 0.7em 1em;
  }
}

@media (max-width: 420px) {
  #container-inner {
    width: calc(100% - 12px);
  }

  #blog-title {
    padding: 16px;
  }

  #title {
    font-size: 1.5rem;
  }

  .entry {
    padding: 20px 16px;
  }

  .entry::before,
  .page-about #main::before,
  .page-archive #main::before,
  .page-search #main::before {
    margin-right: -16px;
    margin-left: -16px;
  }

  .entry-title {
    font-size: 1.3rem;
  }

  .entry-content {
    line-height: 1.82;
  }
}

/*
  Color Candidate: Mobile Paper Blue
  Blue-gray base for article-heavy blogs.
  Decoration compatibility:
  - black bold uses a thick warm underline
  - yellow marker remains yellow
  - red bold remains visible
  - links are blue, visited links are purple
*/

:root {
  --af-bg: #eef3f8;
  --af-surface: #ffffff;
  --af-surface-soft: #e5edf4;
  --af-text: #18212b;
  --af-muted: #607080;
  --af-border: #c9d6e2;
  --af-link: #005fcc;
  --af-link-hover: #004a9f;
  --af-link-visited: #6942b8;
  --af-emphasis-line: rgba(226, 151, 43, 0.48);
  --af-accent: #376b8f;
  --af-code-bg: #17212b;
  --af-code-text: #f4f8fb;
  --af-shadow: 0 14px 38px rgba(24, 33, 43, 0.12);
}

body {
  background:
    linear-gradient(180deg, #25384a 0 220px, #eef3f8 220px 100%);
}

a {
  color: var(--af-link);
}

a:visited {
  color: var(--af-link-visited);
}

a:hover,
a:focus {
  color: var(--af-link-hover);
}

#blog-title {
  border-color: rgba(201, 214, 226, 0.48);
  background:
    linear-gradient(135deg, rgba(68, 119, 158, 0.24), transparent 46%),
    linear-gradient(180deg, #30475b, #25384a);
}

#title a,
#title a:visited {
  color: #ffffff;
}

#blog-description {
  color: #dbe8f2;
}

.entry::before,
.page-about #main::before,
.page-archive #main::before,
.page-search #main::before {
  background: linear-gradient(90deg, #376b8f, #78a6c8, #376b8f);
}

.entry-categories a,
.categories a,
.archive-category-link,
.entry-categories a:visited,
.categories a:visited,
.archive-category-link:visited {
  border-color: rgba(55, 107, 143, 0.28);
  background: #e5edf4;
  color: #274f70;
}

#box2 .hatena-module::before {
  background: linear-gradient(180deg, #376b8f, #78a6c8);
}

.entry-content a {
  color: var(--af-link);
  font-weight: 700;
}

.entry-content a:visited {
  color: var(--af-link-visited);
}

.entry-content strong,
.entry-content b {
  padding: 0 0.08em 0.02em;
  background: transparent;
  box-shadow: inset 0 -0.38em 0 var(--af-emphasis-line);
  color: #111111;
  font-weight: 800;
  text-decoration: none;
}

.entry-content mark,
.entry-content .marker,
.entry-content .yellow-marker,
.entry-content .marker-bold {
  padding: 0 0.15em;
  background: linear-gradient(transparent 56%, #fff176 56%);
  box-shadow: none;
  color: #111111;
  font-weight: 800;
}

.entry-content mark strong,
.entry-content mark b,
.entry-content .marker strong,
.entry-content .marker b,
.entry-content .yellow-marker strong,
.entry-content .yellow-marker b,
.entry-content .marker-bold strong,
.entry-content .marker-bold b {
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font-weight: inherit;
}

.entry-content .red,
.entry-content .red-bold,
.entry-content .aka {
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #d40000;
  font-weight: 800;
}

.entry-content .red strong,
.entry-content .red b,
.entry-content .red-bold strong,
.entry-content .red-bold b,
.entry-content .aka strong,
.entry-content .aka b,
.entry-content strong.red,
.entry-content b.red,
.entry-content strong.red-bold,
.entry-content b.red-bold,
.entry-content strong.aka,
.entry-content b.aka {
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #d40000;
  font-weight: 800;
}

.entry-content .table-of-contents {
  margin: 1.8em 0;
  padding: 1.15em 1.15em 1.05em;
  border: 1px solid var(--af-border);
  border-left: 5px solid var(--af-accent);
  border-radius: var(--af-radius);
  background: var(--af-surface-soft);
  counter-reset: toc1;
  list-style: none;
}

.entry-content .table-of-contents::before {
  content: "目次";
  display: block;
  margin: 0 0 0.8em;
  color: var(--af-text);
  font-size: 1rem;
  font-weight: 900;
}

.entry-content .table-of-contents ul,
.entry-content .table-of-contents ol {
  margin: 0.55em 0 0;
  padding-left: 0;
  list-style: none;
}

.entry-content .table-of-contents > li {
  counter-increment: toc1;
  margin: 0.55em 0;
}

.entry-content .table-of-contents > li > a::before {
  content: counter(toc1) ". ";
}

.entry-content .table-of-contents > li > ul,
.entry-content .table-of-contents > li > ol {
  counter-reset: toc2;
  padding-left: 1.15em;
}

.entry-content .table-of-contents > li > ul > li,
.entry-content .table-of-contents > li > ol > li {
  counter-increment: toc2;
  margin: 0.45em 0;
}

.entry-content .table-of-contents > li > ul > li > a::before,
.entry-content .table-of-contents > li > ol > li > a::before {
  content: counter(toc1) "." counter(toc2) " ";
}

.entry-content .table-of-contents > li > ul > li > ul,
.entry-content .table-of-contents > li > ul > li > ol,
.entry-content .table-of-contents > li > ol > li > ul,
.entry-content .table-of-contents > li > ol > li > ol {
  counter-reset: toc3;
  padding-left: 1.15em;
}

.entry-content .table-of-contents > li > ul > li > ul > li,
.entry-content .table-of-contents > li > ul > li > ol > li,
.entry-content .table-of-contents > li > ol > li > ul > li,
.entry-content .table-of-contents > li > ol > li > ol > li {
  counter-increment: toc3;
  margin: 0.4em 0;
}

.entry-content .table-of-contents > li > ul > li > ul > li > a::before,
.entry-content .table-of-contents > li > ul > li > ol > li > a::before,
.entry-content .table-of-contents > li > ol > li > ul > li > a::before,
.entry-content .table-of-contents > li > ol > li > ol > li > a::before {
  content: counter(toc1) "." counter(toc2) "." counter(toc3) " ";
}

.entry-content .table-of-contents a {
  display: inline;
  color: var(--af-link);
  font-weight: 800;
  text-decoration-thickness: 1px;
}

.entry-content .table-of-contents a:visited {
  color: var(--af-link-visited);
}

@media (max-width: 640px) {
  .entry-content .table-of-contents {
    margin: 1.45em 0;
    padding: 1em;
  }

  .entry-content .table-of-contents > li > ul,
  .entry-content .table-of-contents > li > ol,
  .entry-content .table-of-contents > li > ul > li > ul,
  .entry-content .table-of-contents > li > ul > li > ol,
  .entry-content .table-of-contents > li > ol > li > ul,
  .entry-content .table-of-contents > li > ol > li > ol {
    padding-left: 0.85em;
  }
}

@media (max-width: 900px) {
  body {
    background: linear-gradient(180deg, #25384a 0 150px, #eef3f8 150px 100%);
  }
}

/*
  Readability Size Layer
  Slightly larger typography for smartphone-first reading.
*/

body {
  font-size: 17px;
}

.entry-content {
  font-size: 1.06rem;
  line-height: 1.86;
}

.entry-title {
  font-size: 2.18rem;
  line-height: 1.3;
}

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

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

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

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

.date {
  font-size: 0.92rem;
}

.entry-categories a,
.categories a,
.archive-category-link {
  font-size: 0.9rem;
}

.hatena-module-body,
.hatena-module-body p {
  font-size: 1rem;
}

.entry-content .table-of-contents::before {
  font-size: 1.08rem;
}

.entry-content .table-of-contents a {
  font-size: 1rem;
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  #title {
    font-size: 1.84rem;
  }

  #blog-description {
    font-size: 1rem;
  }

  .entry-title {
    font-size: 1.55rem;
    line-height: 1.34;
  }

  .entry-content {
    font-size: 1.06rem;
    line-height: 1.82;
  }

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

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

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

  .entry-categories a,
  .categories a,
  .archive-category-link {
    font-size: 0.9rem;
  }

  .hatena-module-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 420px) {
  .entry-title {
    font-size: 1.42rem;
  }

  .entry-content {
    font-size: 1.04rem;
    line-height: 1.8;
  }
}

/*
  Bright Color Candidate: Mobile Sunlit Coral
  Warm peach-coral theme with blue links and article decorations preserved.
*/

:root {
  --af-bg: #fff6ee;
  --af-surface: #ffffff;
  --af-surface-soft: #fff0e4;
  --af-text: #241d1a;
  --af-muted: #73645c;
  --af-border: #f0c7ad;
  --af-link: #005fcc;
  --af-link-hover: #004a9f;
  --af-link-visited: #6942b8;
  --af-emphasis-line: rgba(230, 146, 66, 0.42);
  --af-accent: #dc7f55;
  --af-code-bg: #271c18;
  --af-code-text: #fff8ef;
  --af-shadow: 0 14px 34px rgba(168, 93, 54, 0.13);
}

body {
  background:
    linear-gradient(180deg, #f6b080 0 150px, #fff6ee 150px 100%);
}

#blog-title {
  border-color: rgba(255, 255, 255, 0.66);
  background:
    linear-gradient(135deg, rgba(255, 244, 229, 0.36), transparent 46%),
    linear-gradient(180deg, #f6ad7c, #de8059);
  box-shadow: 0 16px 42px rgba(168, 93, 54, 0.2);
}

#title a,
#title a:visited {
  color: #fffdf9;
}

#blog-description {
  color: #fff8f0;
}

.entry::before,
.page-about #main::before,
.page-archive #main::before,
.page-search #main::before {
  background: linear-gradient(90deg, #dc7f55, #f2bc86, #dc7f55);
}

.entry-categories a,
.categories a,
.archive-category-link,
.entry-categories a:visited,
.categories a:visited,
.archive-category-link:visited {
  border-color: rgba(220, 127, 85, 0.3);
  background: #fff0e4;
  color: #8b5139;
}

#box2 .hatena-module::before {
  background: linear-gradient(180deg, #dc7f55, #f2bc86);
}

.entry-content .table-of-contents {
  background: #fff0e4;
}

@media (max-width: 900px) {
  body {
    background: linear-gradient(180deg, #f6b080 0 150px, #fff6ee 150px 100%);
  }
}

/* </system> */