/*
Theme Name: TORIMA Blog
Theme URI: https://torima-hp.com/blog/
Author: TORIMA HP
Author URI: https://torima-hp.com/
Description: TORIMA HPの静的トップページとデザインを揃えた、ブログ専用のオリジナルWordPressテーマです。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: torima-blog
*/

:root {
  --bg: #f6f6f7;
  --white: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --cyan: #00c2ff;
  --magenta: #ff2e92;
  --yellow: #ffd400;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

img {
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 10px;
  left: 10px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

/* Header: static top pageと同じ構成 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 68px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-logo a {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #111;
}

.site-logo span {
  color: var(--magenta);
}

.site-main {
  flex: 1;
  width: 100%;
  padding-top: 68px;
}

.content-shell {
  width: min(100% - 48px, 980px);
  margin-inline: auto;
}

.article-shell {
  width: min(100% - 48px, 720px);
  margin-inline: auto;
}

/* Blog index / archive */
.blog-hero {
  padding: 88px 0 52px;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.blog-hero::after {
  content: "TORIMA HP";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(76px, 14vw, 170px);
  font-weight: 900;
  color: #000;
  opacity: 0.025;
  white-space: nowrap;
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.section-label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.blog-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.blog-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.category-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.category-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.category-nav a:hover,
.category-nav a.is-current {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.posts-section {
  padding: 64px 0 88px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 194, 255, 0.35);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.12), rgba(255, 46, 146, 0.1));
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(17, 17, 17, 0.24);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(0, 194, 255, 0.12);
  color: #008fbf;
}

.cat-badge.tips,
.cat-badge.web-tips {
  background: rgba(0, 194, 255, 0.12);
  color: #008fbf;
}

.cat-badge.news {
  background: rgba(255, 46, 146, 0.1);
  color: var(--magenta);
}

.cat-badge.case,
.cat-badge.case-study {
  background: rgba(255, 212, 0, 0.2);
  color: #856000;
}

.post-date,
.article-date-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.post-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.post-card-excerpt {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.post-card-more::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.empty-state {
  padding: 56px 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Pagination */
.pagination-wrap {
  margin-top: 48px;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.page-numbers.current,
.page-numbers:hover {
  color: #fff;
  background: var(--cyan);
  border-color: var(--cyan);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb-sep {
  color: #c8c8c8;
  font-size: 10px;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* Single */
.single-wrap,
.page-wrap {
  padding: 36px 0 80px;
}

.article-header,
.article-body,
.article-footer,
.related-card,
.cta-card,
.generic-page {
  background: var(--white);
  border: 1px solid var(--line);
}

.article-header {
  padding: 40px 40px 36px;
  margin-bottom: 8px;
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.article-main-title {
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(23px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.article-main-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
}

.article-lead {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
  white-space: pre-line;
}

.article-thumb-wrap {
  margin-bottom: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 194, 255, 0.12), rgba(255, 46, 146, 0.1));
  border: 1px solid var(--line);
}

.article-thumb-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-thumb-placeholder {
  color: rgba(17, 17, 17, 0.22);
  font-size: clamp(22px, 7vw, 52px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.article-body,
.generic-page {
  padding: 40px;
  margin-bottom: 8px;
}

.article-body > *:first-child,
.generic-page > *:first-child {
  margin-top: 0 !important;
}

.article-body > *:last-child,
.generic-page > *:last-child {
  margin-bottom: 0 !important;
}

.article-body h2,
.generic-page h2 {
  margin: 48px 0 18px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.article-body h2::after,
.generic-page h2::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 9px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow));
}

.article-body h3,
.generic-page h3 {
  margin: 34px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--cyan);
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.article-body h4,
.generic-page h4 {
  margin: 28px 0 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.article-body p,
.generic-page p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.article-body ul,
.article-body ol,
.generic-page ul,
.generic-page ol {
  margin: 0 0 22px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.article-body li,
.generic-page li {
  margin-bottom: 8px;
}

.article-body strong,
.generic-page strong {
  color: var(--text);
  font-weight: 700;
}

.article-body a,
.generic-page a {
  color: #008fbd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body blockquote,
.generic-page blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--magenta);
  background: rgba(255, 46, 146, 0.055);
}

.article-body blockquote p,
.generic-page blockquote p {
  color: var(--text);
}

.article-body figure,
.generic-page figure {
  margin: 28px 0;
}

.article-body figcaption,
.generic-page figcaption {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.article-body img,
.generic-page img {
  border-radius: 8px;
}

.article-body table,
.generic-page table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.article-body th,
.article-body td,
.generic-page th,
.generic-page td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.article-body th,
.generic-page th {
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
}

.article-body pre,
.generic-page pre {
  max-width: 100%;
  padding: 18px;
  overflow: auto;
  border-radius: 8px;
  background: #171717;
  color: #f4f4f4;
  font-size: 13px;
  line-height: 1.7;
}

.article-body code,
.generic-page code {
  font-family: Consolas, Monaco, monospace;
}

.article-body :not(pre) > code,
.generic-page :not(pre) > code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #f1f1f3;
  color: #b42367;
}

/* 旧HTML記事の装飾クラスも投稿本文で利用可能 */
.callout {
  margin: 26px 0;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.8;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 20px;
}

.callout .callout-text {
  margin: 0;
  color: var(--text);
}

.callout.info {
  background: rgba(0, 194, 255, 0.08);
  border-left: 3px solid var(--cyan);
}

.callout.warn {
  background: rgba(255, 212, 0, 0.13);
  border-left: 3px solid var(--yellow);
}

.callout.point {
  background: rgba(255, 46, 146, 0.07);
  border-left: 3px solid var(--magenta);
}

.num-list {
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

.num-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.num-list li:last-child {
  border-bottom: 0;
}

.num-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.num-badge.m {
  background: var(--magenta);
}

.num-badge.y {
  background: #917000;
}

.item-title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 700;
}

.item-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.article-footer {
  padding: 28px 40px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-footer-label {
  color: var(--muted);
  font-size: 13px;
}

.back-to-blog,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.back-to-blog:hover,
.btn-outline:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.related-section {
  margin-top: 20px;
}

.related-title {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

.related-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 194, 255, 0.4);
}

.related-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.related-card-title {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.related-card-link {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.cta-card {
  margin-top: 20px;
  padding: 48px 40px;
  text-align: center;
  border-radius: var(--radius);
}

.cta-card h2 {
  margin: 0 0 12px;
  font-size: 23px;
  font-weight: 800;
}

.cta-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.cta-group {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.btn-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  background: var(--white);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  background: var(--cyan);
  color: #fff;
}

/* Page / Search */
.page-title-block {
  margin-bottom: 8px;
  padding: 34px 40px;
  background: var(--white);
  border: 1px solid var(--line);
}

.page-title-block h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.45;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 28px auto 0;
}

.search-field {
  min-width: 0;
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  outline: 0;
}

.search-field:focus {
  border-color: var(--cyan);
}

.search-submit {
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Footer: static top pageと同じ */
.site-footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: #bbb;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible,
.no-js .fade-up {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 62px;
    padding: 0 20px;
  }

  .site-main {
    padding-top: 62px;
  }

  .content-shell,
  .article-shell {
    width: min(100% - 32px, 980px);
  }

  .blog-hero {
    padding: 68px 0 42px;
  }

  .posts-section {
    padding: 44px 0 64px;
  }

  .single-wrap,
  .page-wrap {
    padding: 26px 0 60px;
  }

  .article-header,
  .article-body,
  .article-footer,
  .generic-page,
  .page-title-block,
  .cta-card {
    padding: 28px 24px;
  }

  .article-thumb-wrap {
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-card-title {
    font-size: 15px;
  }

  .article-main-title {
    font-size: 23px;
  }

  .article-body h2,
  .generic-page h2 {
    font-size: 19px;
  }

  .article-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-form {
    flex-direction: column;
  }
}

/* ===== TORIMA article decoration ===== */

.single-post .entry-content {
  font-size: 16px;
  line-height: 2;
}

.single-post .entry-content p {
  margin: 0 0 1.6em;
}

.single-post .entry-content h2 {
  margin: 3em 0 1em;
  padding-left: 16px;
  border-left: 5px solid #00c2ff;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1.5;
}

.single-post .entry-content h3 {
  margin: 2.4em 0 1em;
  font-size: 1.3rem;
  font-weight: 900;
}

.single-post .entry-content ul {
  margin: 1.2em 0 2em;
  padding: 24px 28px;
  background: #f6f6f7;
  border-radius: 16px;
  list-style: none;
}

.single-post .entry-content ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.single-post .entry-content ul li:last-child {
  margin-bottom: 0;
}

.single-post .entry-content ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff2e92;
  font-weight: 900;
}

.article-lead {
  background: #f0fbff;
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-left: 6px solid #00c2ff;
  padding: 24px 28px;
  margin: 32px 0 40px;
  border-radius: 0 18px 18px 0;
}

.article-lead p {
  margin: 0 !important;
  color: #333;
  font-weight: 700;
}

.article-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.article-box-title {
  margin: 0 0 14px !important;
  font-size: 1.1rem;
  font-weight: 900;
  color: #111;
}

.article-box .article-check-list {
  margin: 0;
  padding: 0;
  background: transparent;
}

.article-point {
  background: #fff;
  border: 2px solid #00c2ff;
  border-radius: 18px;
  padding: 26px 28px;
  margin: 36px 0;
  position: relative;
}

.article-point-title {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #00c2ff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.article-point p {
  margin: 0 !important;
}

.article-note {
  background: #fff9d8;
  border-left: 6px solid #ffd400;
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 18px 18px 0;
}

.article-note p {
  margin: 0 !important;
  color: #4a3b00;
  font-weight: 600;
}

.article-cta {
  margin: 56px 0 24px;
  padding: 42px 32px;
  border-radius: 24px;
  background: #111;
  color: #fff;
  text-align: center;
}

.article-cta p {
  color: #fff;
  margin: 0 0 12px !important;
}

.article-cta strong {
  font-size: 1.25rem;
  font-weight: 900;
}

.article-cta a {
  display: inline-block;
  margin-top: 16px;
  padding: 14px 34px;
  border-radius: 999px;
  background: #ff2e92;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.article-cta a:hover {
  opacity: 0.86;
}

@media (max-width: 768px) {
  .single-post .entry-content h2 {
    font-size: 1.35rem;
  }

  .article-lead,
  .article-box,
  .article-point,
  .article-note {
    padding: 22px 20px;
  }

  .article-cta {
    padding: 34px 22px;
  }
}

/* ===== TORIMA Blog Article Decoration ===== */

.single-post .article-body {
  font-size: 16px;
  line-height: 2;
}

.single-post .article-body p {
  margin: 0 0 1.6em;
}

.single-post .article-body h2 {
  margin: 3em 0 1em;
  padding: 16px 20px;
  border-left: 6px solid #00c2ff;
  background: #f0fbff;
  border-radius: 0 14px 14px 0;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.5;
}

.single-post .article-body ul {
  margin: 1.2em 0 2em;
  padding: 24px 28px;
  background: #f6f6f7;
  border-radius: 16px;
  list-style: none;
}

.single-post .article-body ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}

.single-post .article-body ul li:last-child {
  margin-bottom: 0;
}

.single-post .article-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff2e92;
  font-weight: 900;
}

/* 導入ボックス */
.torima-article-lead {
  background: #f0fbff;
  border: 1px solid rgba(0, 194, 255, 0.25);
  border-left: 6px solid #00c2ff;
  padding: 24px 28px;
  margin: 32px 0 40px;
  border-radius: 0 18px 18px 0;
}

.torima-article-lead p {
  margin: 0 !important;
  color: #333;
  font-weight: 700;
}

/* この記事で分かること */
.article-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.article-box-title {
  margin: 0 0 14px !important;
  font-size: 1.1rem;
  font-weight: 900;
  color: #111;
}

.article-box .article-check-list {
  margin: 0;
  padding: 0;
  background: transparent;
}

/* POINT */
.article-point {
  background: #fff;
  border: 2px solid #00c2ff;
  border-radius: 18px;
  padding: 26px 28px;
  margin: 36px 0;
}

.article-point-title {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #00c2ff;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.article-point p {
  margin: 0 !important;
}

/* 注意・補足 */
.article-note {
  background: #fff9d8;
  border-left: 6px solid #ffd400;
  padding: 24px 28px;
  margin: 36px 0;
  border-radius: 0 18px 18px 0;
}

.article-note p {
  margin: 0 !important;
  color: #4a3b00;
  font-weight: 600;
}

/* 本文内CTA。下部CTAと二重になるなら使わなくてOK */
.article-inner-cta {
  margin: 48px 0 24px;
  padding: 36px 28px;
  border-radius: 24px;
  background: #111;
  color: #fff;
  text-align: center;
}

.article-inner-cta p {
  color: #fff;
  margin: 0 0 12px !important;
}

.article-inner-cta strong {
  font-size: 1.2rem;
  font-weight: 900;
}

.article-inner-cta a {
  display: inline-block;
  margin-top: 14px;
  padding: 13px 32px;
  border-radius: 999px;
  background: #ff2e92;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.article-inner-cta a:hover {
  opacity: 0.86;
}

@media (max-width: 768px) {
  .single-post .article-body h2 {
    font-size: 1.3rem;
    padding: 14px 16px;
  }

  .torima-article-lead,
  .article-box,
  .article-point,
  .article-note {
    padding: 22px 20px;
  }

  .article-inner-cta {
    padding: 32px 22px;
  }
}

/* ===== TORIMA Blog 強め装飾・最終上書き ===== */

.single-post .article-body {
  padding: 52px 48px !important;
  background: #fff !important;
  border-radius: 0 0 18px 18px;
  font-size: 16px !important;
  line-height: 2.05 !important;
}

.single-post .article-body > p {
  margin: 0 0 1.8em !important;
  color: #444 !important;
  font-size: 16px !important;
  line-height: 2.05 !important;
}

.single-post .article-body > p:first-child {
  padding: 24px 28px !important;
  margin: 0 0 36px !important;
  background: #f0fbff !important;
  border: 1px solid rgba(0, 194, 255, 0.28) !important;
  border-left: 7px solid #00c2ff !important;
  border-radius: 0 18px 18px 0 !important;
  color: #222 !important;
  font-weight: 700 !important;
}

/* h2をかなり見出しらしく */
.single-post .article-body h2 {
  position: relative !important;
  margin: 64px 0 28px !important;
  padding: 20px 24px 20px 28px !important;
  background: #111 !important;
  color: #fff !important;
  border-left: 0 !important;
  border-radius: 18px !important;
  font-size: 1.55rem !important;
  font-weight: 900 !important;
  line-height: 1.55 !important;
  letter-spacing: -0.01em !important;
}

.single-post .article-body h2::before {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -8px;
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00c2ff, #ff2e92, #ffd400);
}

.single-post .article-body h2::after {
  display: none !important;
}

/* h3 */
.single-post .article-body h3 {
  margin: 44px 0 18px !important;
  padding: 0 0 0 16px !important;
  border-left: 5px solid #00c2ff !important;
  color: #111 !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
}

/* 通常リストをカード化 */
.single-post .article-body ul {
  margin: 22px 0 36px !important;
  padding: 28px 30px !important;
  background: #f6f6f7 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 18px !important;
  list-style: none !important;
}

.single-post .article-body ul li {
  position: relative !important;
  margin: 0 0 14px !important;
  padding-left: 34px !important;
  color: #333 !important;
  font-size: 15.5px !important;
  line-height: 1.85 !important;
}

.single-post .article-body ul li:last-child {
  margin-bottom: 0 !important;
}

.single-post .article-body ul li::before {
  content: "✓" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.1em !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  background: #ff2e92 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 24px !important;
  text-align: center !important;
}

/* 装飾HTMLが残っていた場合用 */
.single-post .article-body .torima-article-lead {
  padding: 26px 30px !important;
  margin: 0 0 40px !important;
  background: #f0fbff !important;
  border: 1px solid rgba(0, 194, 255, 0.28) !important;
  border-left: 7px solid #00c2ff !important;
  border-radius: 0 18px 18px 0 !important;
}

.single-post .article-body .torima-article-lead p {
  margin: 0 !important;
  color: #222 !important;
  font-weight: 700 !important;
}

.single-post .article-body .article-box {
  margin: 38px 0 !important;
  padding: 30px !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06) !important;
}

.single-post .article-body .article-box-title {
  position: relative !important;
  margin: 0 0 18px !important;
  padding-left: 18px !important;
  color: #111 !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
}

.single-post .article-body .article-box-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 6px;
  height: 1.1em;
  border-radius: 999px;
  background: #00c2ff;
}

.single-post .article-body .article-box ul {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* POINTボックス */
.single-post .article-body .article-point {
  margin: 42px 0 !important;
  padding: 28px 30px !important;
  background: #fff !important;
  border: 2px solid #00c2ff !important;
  border-radius: 20px !important;
  box-shadow: 8px 8px 0 rgba(0, 194, 255, 0.12) !important;
}

.single-post .article-body .article-point-title {
  display: inline-block !important;
  margin: 0 0 14px !important;
  padding: 5px 16px !important;
  border-radius: 999px !important;
  background: #00c2ff !important;
  color: #fff !important;
  font-size: 0.85rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
}

.single-post .article-body .article-point p {
  margin: 0 !important;
  color: #333 !important;
  font-weight: 600 !important;
}

/* 注意・補足 */
.single-post .article-body .article-note {
  margin: 42px 0 !important;
  padding: 26px 30px !important;
  background: #fff9d8 !important;
  border-left: 7px solid #ffd400 !important;
  border-radius: 0 18px 18px 0 !important;
}

.single-post .article-body .article-note p {
  margin: 0 !important;
  color: #4a3b00 !important;
  font-weight: 700 !important;
}

/* リンク */
.single-post .article-body a {
  color: #008fbd !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
}

/* 関連記事3列用 */
.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.related-card {
  border-radius: 18px !important;
}

/* SP */
@media (max-width: 768px) {
  .single-post .article-body {
    padding: 34px 22px !important;
  }

  .single-post .article-body h2 {
    margin: 48px 0 24px !important;
    padding: 17px 18px !important;
    font-size: 1.25rem !important;
  }

  .single-post .article-body ul,
  .single-post .article-body .article-box,
  .single-post .article-body .article-point,
  .single-post .article-body .article-note,
  .single-post .article-body .torima-article-lead {
    padding: 22px 20px !important;
  }

  .related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== H2を少し落ち着かせる ===== */

.single-post .article-body h2 {
  position: relative !important;
  margin: 56px 0 24px !important;
  padding: 0 0 12px 18px !important;
  background: transparent !important;
  color: #111 !important;
  border-radius: 0 !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  line-height: 1.6 !important;
  letter-spacing: -0.01em !important;
}

/* 黒帯用についてた下の派手ラインを消す */
.single-post .article-body h2::before {
  display: none !important;
}

/* TORIMAっぽい短いグラデ線 */
.single-post .article-body h2::after {
  content: "" !important;
  display: block !important;
  width: 48px !important;
  height: 4px !important;
  margin-top: 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #00c2ff, #ff2e92, #ffd400) !important;
}

/* スマホ */
@media (max-width: 768px) {
  .single-post .article-body h2 {
    margin: 44px 0 20px !important;
    padding: 0 0 10px 14px !important;
    font-size: 1.25rem !important;
  }
}