/*
Theme Name: fab mobile
Theme URI: https://fabmobile.net
Author: fab mobile
Author URI: https://fabmobile.net
Description: Minimal, professional blog theme for fab mobile - a quality used iPhone store.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fab-mobile
*/

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Brand */
  --fm-primary: #252525;
  --fm-accent: #FFB800;
  --fm-accent-dark: #d4a200;
  --fm-accent-bg: #fffbeb;

  /* Typography */
  --fm-font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --fm-text: #252525;
  --fm-text-light: #8a8f99;
  --fm-text-muted: #a0a7b4;

  /* Layout */
  --fm-content-width: 780px;
  --fm-wide-width: 1080px;
  --fm-bg: #ffffff;
  --fm-bg-alt: #fafbfc;
  --fm-border: #f0f1f4;

  /* Effects */
  --fm-radius: 12px;
  --fm-radius-sm: 8px;
  --fm-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
  --fm-shadow-hover: 0 4px 20px rgba(0,0,0,0.08);
  --fm-transition: all 0.25s ease;
}

/* ==========================================================================
   Reset / Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--fm-font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--fm-text);
  background: var(--fm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--fm-primary);
}

h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.175rem; }
h4 { font-size: 1.05rem; }

@media (min-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

/* ==========================================================================
   Layout
   ========================================================================== */

.fm-container {
  width: 100%;
  max-width: var(--fm-wide-width);
  margin: 0 auto;
  padding: 0 20px;
}

.fm-container--narrow {
  max-width: var(--fm-content-width);
}

@media (min-width: 768px) {
  .fm-container { padding: 0 40px; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--fm-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

body.nav-open {
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.site-logo a {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-logo .logo-fab { color: var(--fm-primary); }
.site-logo .logo-mobile { color: var(--fm-accent); }

.site-logo img {
  height: 36px;
  width: auto;
}

/* Desktop Navigation */
.main-nav { display: none; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  display: block;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
  }
  .main-nav .nav-list li {
    display: block;
    white-space: nowrap;
  }
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fm-text);
  border-radius: var(--fm-radius-sm);
  transition: var(--fm-transition);
}

.main-nav a:hover {
  color: var(--fm-accent-dark);
  background: var(--fm-accent-bg);
}

.main-nav .current-menu-item a,
.main-nav .current-menu-ancestor a {
  color: var(--fm-accent-dark);
}

.nav-shop-link {
  background: var(--fm-accent) !important;
  color: var(--fm-primary) !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
}

.nav-shop-link:hover {
  background: var(--fm-accent-dark) !important;
  color: #fff !important;
}

/* Hamburger Menu Button */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--fm-primary);
  position: relative;
  transition: var(--fm-transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--fm-primary);
  left: 0;
  transition: var(--fm-transition);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* Active hamburger */
.menu-toggle.is-active span { background: transparent; }
.menu-toggle.is-active span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-active span::after { top: 0; transform: rotate(-45deg); }

/* Mobile Menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fm-bg);
  z-index: 99;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--fm-text);
  border-bottom: 1px solid var(--fm-border);
}

.mobile-nav a:hover { color: var(--fm-accent-dark); }

.mobile-nav-shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 24px;
  background: var(--fm-accent);
  color: var(--fm-primary);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--fm-radius-sm);
  border-bottom: none !important;
  transition: var(--fm-transition);
}

.mobile-nav-shop-btn:hover {
  background: var(--fm-accent-dark);
  color: #fff !important;
}

/* ==========================================================================
   Hero Section (Front Page)
   ========================================================================== */

.fm-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #252525 100%);
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}

@media (min-width: 768px) {
  .fm-hero { padding: 100px 40px; }
}

.fm-hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--fm-accent);
  margin-bottom: 16px;
}

.fm-hero__title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .fm-hero__title { font-size: 2.25rem; }
}

.fm-hero__text {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.9;
  max-width: 520px;
  margin: 0 auto 32px;
}

.fm-hero__cta {
  display: inline-block;
  background: var(--fm-accent);
  color: var(--fm-primary);
  padding: 14px 36px;
  border-radius: var(--fm-radius-sm);
  font-weight: 700;
  font-size: 15px;
  transition: var(--fm-transition);
  box-shadow: 0 4px 14px rgba(255,184,0,0.3);
}

.fm-hero__cta:hover {
  background: var(--fm-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,184,0,0.4);
}

/* ==========================================================================
   Section
   ========================================================================== */

.fm-section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .fm-section { padding: 80px 0; }
}

.fm-section__title {
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .fm-section__title { font-size: 1.625rem; }
}

.fm-section__subtitle {
  text-align: center;
  color: var(--fm-text-muted);
  font-size: 14px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Feature Cards (3つの安心)
   ========================================================================== */

.fm-features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .fm-features { grid-template-columns: repeat(3, 1fr); }
}

.fm-feature {
  background: var(--fm-bg);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--fm-transition);
}

.fm-feature:hover {
  box-shadow: var(--fm-shadow-hover);
  transform: translateY(-2px);
}

.fm-feature__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--fm-accent);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
}

.fm-feature__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.fm-feature__text {
  font-size: 14px;
  color: var(--fm-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   Article Cards
   ========================================================================== */

.fm-cards {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .fm-cards { grid-template-columns: repeat(2, 1fr); }
}

.fm-card {
  background: var(--fm-bg);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  overflow: hidden;
  transition: var(--fm-transition);
}

.fm-card:hover {
  box-shadow: var(--fm-shadow-hover);
  transform: translateY(-2px);
  border-color: rgba(255,184,0,0.25);
}

.fm-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.fm-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--fm-bg-alt);
}

.fm-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--fm-bg-alt);
}

.fm-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fm-card:hover .fm-card__thumb img {
  transform: scale(1.03);
}

.fm-card__body {
  padding: 20px;
}

.fm-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--fm-accent-dark);
  background: var(--fm-accent-bg);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.fm-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fm-card__meta {
  font-size: 12px;
  color: var(--fm-text-muted);
}

.fm-more {
  display: block;
  text-align: center;
  margin-top: 40px;
}

.fm-more a {
  display: inline-block;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fm-primary);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-sm);
  transition: var(--fm-transition);
}

.fm-more a:hover {
  border-color: var(--fm-accent);
  background: var(--fm-accent-bg);
  color: var(--fm-accent-dark);
}

/* ==========================================================================
   Single Post - Article
   ========================================================================== */

.fm-article {
  padding: 40px 0 60px;
}

.fm-article__header {
  margin-bottom: 32px;
}

.fm-article__cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--fm-accent-dark);
  background: var(--fm-accent-bg);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.fm-article__title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.55;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .fm-article__title { font-size: 1.75rem; }
}

.fm-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--fm-text-muted);
}

.fm-article__meta svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

.fm-article__thumb {
  border-radius: var(--fm-radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.fm-article__thumb img {
  width: 100%;
  height: auto;
}

/* ==========================================================================
   Entry Content (Article Body)
   ========================================================================== */

.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--fm-text);
}

.entry-content > * + * {
  margin-top: 1.5em;
}

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

.entry-content a {
  color: var(--fm-accent-dark);
  text-decoration: underline;
  text-decoration-color: rgba(212,162,0,0.3);
  text-underline-offset: 3px;
  transition: var(--fm-transition);
}

.entry-content a:hover {
  color: var(--fm-primary);
  text-decoration-color: var(--fm-primary);
}

/* Headings */
.entry-content h2 {
  position: relative;
  font-size: 1.35rem;
  padding: 16px 20px 16px 24px;
  margin-top: 56px;
  margin-bottom: 24px;
  background: var(--fm-accent-bg);
  border-left: 4px solid var(--fm-accent);
  border-radius: 0 var(--fm-radius-sm) var(--fm-radius-sm) 0;
  line-height: 1.5;
}

.entry-content h3 {
  font-size: 1.15rem;
  padding-bottom: 10px;
  margin-top: 44px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--fm-border);
}

.entry-content h4 {
  color: var(--fm-accent-dark);
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Lists */
.entry-content ul {
  padding-left: 0;
}

.entry-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--fm-accent);
  border-radius: 50%;
}

.entry-content ol {
  padding-left: 1.5em;
  list-style: decimal;
}

.entry-content ol li {
  margin-bottom: 8px;
}

/* Tables */
.entry-content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fm-border);
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  margin-top: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .entry-content table { display: table; }
}

.entry-content th {
  background: var(--fm-primary);
  color: #fff;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

.entry-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fm-border);
  line-height: 1.6;
}

.entry-content tr:last-child td { border-bottom: none; }
.entry-content tbody tr:nth-child(even) { background: var(--fm-bg-alt); }
.entry-content tbody tr:hover { background: var(--fm-accent-bg); }

/* Blockquote */
.entry-content blockquote {
  background: var(--fm-bg-alt);
  border-left: 4px solid var(--fm-accent);
  border-radius: 0 var(--fm-radius-sm) var(--fm-radius-sm) 0;
  padding: 20px 24px;
  color: var(--fm-text-light);
  font-style: normal;
}

/* Strong */
.entry-content strong {
  font-weight: 700;
}

/* ==========================================================================
   Table of Contents
   ========================================================================== */

.fm-toc {
  background: var(--fm-bg-alt);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.fm-toc__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.fm-toc__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--fm-accent);
  border-radius: 2px;
}

.fm-toc ol {
  padding-left: 1.2em;
  list-style: decimal;
}

.fm-toc li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.6;
}

.fm-toc a {
  color: var(--fm-text);
  text-decoration: none;
  transition: var(--fm-transition);
}

.fm-toc a:hover {
  color: var(--fm-accent-dark);
}

.fm-toc .toc-h3 {
  padding-left: 1em;
  font-size: 13px;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.fm-breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--fm-text-muted);
}

.fm-breadcrumb a {
  color: var(--fm-text-light);
  text-decoration: none;
}

.fm-breadcrumb a:hover { color: var(--fm-accent-dark); }

.fm-breadcrumb .sep {
  margin: 0 8px;
  color: var(--fm-border);
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.fm-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--fm-border);
}

.fm-related__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.fm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.fm-pagination a,
.fm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  border-radius: var(--fm-radius-sm);
  border: 1px solid var(--fm-border);
  color: var(--fm-text-light);
  transition: var(--fm-transition);
}

.fm-pagination a:hover {
  border-color: var(--fm-accent);
  background: var(--fm-accent-bg);
  color: var(--fm-accent-dark);
}

.fm-pagination .current {
  background: var(--fm-accent);
  border-color: var(--fm-accent);
  color: var(--fm-primary);
  font-weight: 700;
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

.fm-archive__header {
  padding: 40px 0 0;
  margin-bottom: 40px;
}

.fm-archive__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.fm-archive__desc {
  color: var(--fm-text-light);
  font-size: 15px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--fm-primary);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand .footer-logo {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-brand .footer-logo .logo-fab { color: #fff; }
.footer-brand .footer-logo .logo-mobile { color: var(--fm-accent); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
}

.footer-nav__title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.footer-nav__list { list-style: none; }

.footer-nav a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  transition: var(--fm-transition);
}

.footer-nav a:hover { color: var(--fm-accent); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   404 / Search / Utility
   ========================================================================== */

.fm-not-found {
  text-align: center;
  padding: 80px 20px;
}

.fm-not-found__code {
  font-size: 4rem;
  font-weight: 800;
  color: var(--fm-border);
  margin-bottom: 16px;
}

.fm-not-found__text {
  font-size: 1.125rem;
  color: var(--fm-text-light);
  margin-bottom: 32px;
}

.fm-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--fm-radius-sm);
  transition: var(--fm-transition);
}

.fm-btn--primary {
  background: var(--fm-accent);
  color: var(--fm-primary);
}

.fm-btn--primary:hover {
  background: var(--fm-accent-dark);
  color: #fff;
}

.fm-btn--outline {
  border: 1px solid var(--fm-border);
  color: var(--fm-text);
}

.fm-btn--outline:hover {
  border-color: var(--fm-accent);
  color: var(--fm-accent-dark);
}

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--gold {
  background: var(--fm-accent);
  color: var(--fm-primary);
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.3);
}

.btn--gold:hover {
  background: var(--fm-accent-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--fm-text);
  border: 1px solid var(--fm-border);
  padding: 13px 31px;
}

.btn--outline:hover {
  border-color: var(--fm-accent);
  color: var(--fm-accent-dark);
}


/* ==========================================================================
   CTA Box
   ========================================================================== */

.cta-box {
  background: linear-gradient(135deg, var(--fm-accent-bg) 0%, #fff8e1 100%);
  border-left: 4px solid var(--fm-accent);
  border-radius: 12px;
  padding: 36px 40px;
  text-align: center;
}

.cta-box__label {
  font-size: 13px;
  color: var(--fm-accent-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.cta-box__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fm-primary);
  line-height: 1.5;
  margin-bottom: 12px;
  background: none;
  border: none;
  padding: 0;
}

.cta-box__desc {
  color: #555;
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 15px;
}

.cta-bottom {
  padding-top: 20px;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 28px 20px;
  }
  .cta-box__title {
    font-size: 19px;
  }
}


/* ==========================================================================
   Search Form
   ========================================================================== */

.search-form__inner {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.search-form__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--fm-border);
  border-radius: 8px 0 0 8px;
  font-size: 15px;
  color: var(--fm-text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.search-form__input:focus {
  border-color: var(--fm-accent);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.search-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--fm-primary);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.search-form__btn:hover {
  background: var(--fm-accent-dark);
}


/* ==========================================================================
   No Results / Empty State
   ========================================================================== */

.no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fm-primary);
  margin-bottom: 12px;
}

.no-results__desc {
  color: var(--fm-text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}

.no-posts {
  text-align: center;
  color: var(--fm-text-light);
  padding: 60px 20px;
  font-size: 15px;
}


/* ==========================================================================
   Table Scroll Wrapper
   ========================================================================== */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.table-scroll table {
  margin: 0;
}


/* ==========================================================================
   Section "More" Link
   ========================================================================== */

.section__more {
  text-align: center;
  margin-top: 40px;
}


/* ==========================================================================
   Single Article CTA
   ========================================================================== */

.single-article__cta {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--fm-border);
}


/* ==========================================================================
   Responsive Helpers
   ========================================================================== */

.sp-only { display: none; }
.pc-only { display: inline; }

@media (max-width: 768px) {
  .sp-only { display: inline; }
  .pc-only { display: none; }
}


/* ==========================================================================
   Archive Title Override (WordPress default prefix removal)
   ========================================================================== */

.archive-header__title .archive-title-prefix {
  display: none;
}


/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header, .site-footer, .toc, .related-posts, .breadcrumb,
  .hamburger, .mobile-nav, .single-article__cta, .cta-bottom { display: none !important; }
  body { font-size: 12pt; }
  .entry-content a { text-decoration: underline; }
}