/*
Theme Name: SMS Connect
Theme URI: https://cms.sms-soushin.com
Author: SMS送信.com
Author URI: https://www.sms-soushin.com
Description: SMS送信.com 専用テーマ。Bootstrap 5 ベースのクリーンでモダンなデザイン。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: sms-connect
Tags: bootstrap, one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* === Google Fonts (Noto Sans JP) === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --primary-light: #e8f0fe;
  --accent: #198754;
  --text-dark: #1a1a2e;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-section: #f0f4ff;
  --white: #ffffff;
  --border: #dee2e6;
  --shadow: 0 4px 24px rgba(13,110,253,0.10);
  --shadow-hover: 0 8px 32px rgba(13,110,253,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

/* ===== BASE ===== */
* { box-sizing: border-box; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-dark); }

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

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

/* ===== NAVBAR ===== */
#site-navbar {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  padding: 0;
  transition: box-shadow var(--transition);
  z-index: 1030;
}

#site-navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.10);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary) !important;
  letter-spacing: -0.5px;
  padding: 14px 0;
}

.navbar-brand span {
  color: var(--text-dark);
}

.navbar-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 14px 14px !important;
  transition: color var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-btn-login {
  color: var(--primary) !important;
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  padding: 6px 18px !important;
  font-size: 0.88rem;
  font-weight: 500;
  margin-left: 6px;
}

.navbar-btn-login:hover {
  background: var(--primary-light) !important;
}

.navbar-btn-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 6px;
  padding: 6px 18px !important;
  font-size: 0.88rem;
  font-weight: 500;
  margin-left: 6px;
  border: 1.5px solid var(--primary);
}

.navbar-btn-cta:hover {
  background: var(--primary-dark) !important;
  color: var(--white) !important;
}

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 50%, #e3f2fd 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,110,253,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,135,84,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(13,110,253,0.10);
  color: var(--primary);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(13,110,253,0.15);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.9;
  font-weight: 400;
}

.btn-primary-hero {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(13,110,253,0.30);
  display: inline-block;
}

.btn-primary-hero:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,110,253,0.35);
}

.btn-outline-hero {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  display: inline-block;
}

.btn-outline-hero:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.hero-image-wrap {
  position: relative;
  z-index: 1;
}

.hero-mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 24px;
  border: 1px solid rgba(13,110,253,0.10);
}

.hero-mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.hero-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-mockup-content {
  background: var(--bg-section);
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
}

/* ===== SECTION COMMON ===== */
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
  line-height: 1.8;
}

.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  padding: 3px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* ===== FEATURE CARDS ===== */
.features-section {
  padding: 80px 0;
  background: var(--white);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.howto-section {
  padding: 80px 0;
  background: var(--bg-section);
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(13,110,253,0.30);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  top: 56px;
  right: -30%;
  width: 60%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 6px, transparent 6px, transparent 12px);
  opacity: 0.3;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0b5ed7 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 32px;
}

.btn-cta-white {
  background: var(--white);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  display: inline-block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
  background: #f0f4ff;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
}

/* ===== BLOG / ARTICLES ===== */
.blog-section {
  padding: 80px 0;
  background: var(--white);
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(13,110,253,0.20);
}

.post-card-thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  background: var(--bg-section);
  display: block;
}

.post-card-thumb-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e3f2fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
}

.post-card-body {
  padding: 24px;
}

.post-card-cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.post-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
}

.post-card h3 a {
  color: var(--text-dark);
}

.post-card h3 a:hover { color: var(--primary); }

.post-card-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SINGLE POST ===== */
.single-hero {
  background: var(--bg-section);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.single-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.single-breadcrumb a { color: var(--primary); }

.single-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 16px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.single-cat-badge {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
  padding: 2px 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.entry-content {
  padding: 48px 0;
  font-size: 1rem;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 40px 0 14px;
  padding: 14px 18px 14px 20px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  border-left: 5px solid var(--primary);
  border-radius: 0 8px 8px 0;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

.entry-content p { margin-bottom: 1.4em; }

.entry-content ul, .entry-content ol {
  margin-bottom: 1.4em;
  padding-left: 0;
  list-style: none;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.75em;
  padding: 12px 16px 12px 42px;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border);
  position: relative;
  line-height: 1.6;
  transition: background 0.2s, box-shadow 0.2s;
}

.entry-content ul li:hover,
.entry-content ol li:hover {
  background: #fff;
  box-shadow: 0 3px 12px rgba(13,110,253,0.1);
}

.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.entry-content ol {
  counter-reset: ol-counter;
}

.entry-content ol li {
  counter-increment: ol-counter;
}

.entry-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.entry-content ul li a,
.entry-content ol li a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.entry-content ul li a:hover,
.entry-content ol li a:hover {
  text-decoration: underline;
}

/* ネストされたリスト（ul/ol の中の ul/ol）をリセット */
.entry-content ul li ul,
.entry-content ul li ol,
.entry-content ol li ul,
.entry-content ol li ol {
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-left: 0;
  counter-reset: ol-counter;
}

.entry-content ul li ul li,
.entry-content ul li ol li,
.entry-content ol li ul li,
.entry-content ol li ol li {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px 8px 4px 22px !important;
  margin-bottom: 0.2em !important;
  font-size: .9em;
}

.entry-content ul li ul li:hover,
.entry-content ul li ol li:hover,
.entry-content ol li ul li:hover,
.entry-content ol li ol li:hover {
  background: none !important;
  box-shadow: none !important;
}

.entry-content ul li ul li::before {
  width: 5px !important;
  height: 5px !important;
  top: 11px !important;
  left: 6px !important;
  background: var(--text-muted) !important;
}

.entry-content ol li ol li::before {
  font-size: .8rem !important;
  top: 4px !important;
  left: 4px !important;
  background: var(--text-muted) !important;
  color: #fff !important;
  width: 16px !important;
  height: 16px !important;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  color: var(--text-muted);
}

.entry-content img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.entry-content pre {
  background: #1a1a2e;
  color: #e2e8f0;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.6;
}

.entry-content code {
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

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

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4em;
  font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.entry-content th {
  background: var(--primary-light);
  font-weight: 700;
}

.entry-content tr:nth-child(even) td {
  background: var(--bg-light);
}

/* ===== SIDEBAR ===== */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  color: var(--text-dark);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.88rem;
}

.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text-dark); }
.widget ul li a:hover { color: var(--primary); }

/* ===== PAGINATION ===== */
.pagination-wrap {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.pagination-wrap .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}

.pagination-wrap .page-numbers li {
  list-style: none;
}

.pagination-wrap .page-numbers a.page-numbers,
.pagination-wrap .page-numbers span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.pagination-wrap .page-numbers a.page-numbers:hover {
  background: var(--primary);
  color: #fff;
}

.pagination-wrap .page-numbers span.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination-wrap .page-numbers span.dots {
  border: none;
  color: var(--text-muted);
}

.pagination .page-link {
  color: var(--primary);
  border-color: var(--border);
  border-radius: 6px !important;
  margin: 0 3px;
  padding: 8px 14px;
  font-weight: 500;
  font-size: 0.9rem;
}

.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== FOOTER ===== */
#site-footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-logo span { color: var(--primary); }

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
  padding: 10px 0;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
  font-size: 0.8rem;
}

.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg-section);
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
}

/* ===== 404 ===== */
.error404-section {
  padding: 100px 0;
  text-align: center;
}

.error404-num {
  font-size: 8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  opacity: 0.15;
}

/* ===== UTILITIES ===== */
.bg-primary-light { background: var(--primary-light); }
.text-primary { color: var(--primary) !important; }

.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(13,110,253,0.35);
  z-index: 999;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== FAQ Q&A HEADINGS ===== */
.faq-q-heading,
.faq-a-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 36px 0 12px;
  padding: 18px 22px;
  border-radius: 10px;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.faq-q-heading {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  border-left: 6px solid #2563eb;
}

.faq-a-heading {
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  color: #166534;
  border-left: 6px solid #16a34a;
}

.faq-q-badge,
.faq-a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 900;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.faq-q-badge {
  background: #2563eb;
  color: #fff;
}

.faq-a-badge {
  background: #16a34a;
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hero-section { padding: 80px 0 60px; }
  .navbar-collapse { background: var(--white); padding: 12px 0; }
  .step-connector { display: none; }
}

@media (max-width: 767.98px) {
  .hero-stats { gap: 24px; }
  .features-section, .howto-section, .cta-section, .blog-section { padding: 60px 0; }
  .hero-image-wrap { margin-top: 40px; }
}

/* ===== Sitemap ===== */
.sitemap-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: .5rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.sitemap-cat-link {
  font-size: .78rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  margin-left: auto;
}
.sitemap-cat-link:hover { text-decoration: underline; }

.sitemap-card {
  display: flex;
  align-items: center;
  padding: .65rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .85rem;
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.sitemap-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,.1);
  transform: translateY(-1px);
  color: var(--primary);
}

.sitemap-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.sitemap-post-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .75rem;
  border-radius: 6px;
  background: #f8f9fa;
  transition: background .15s;
}
.sitemap-post-list li:hover { background: #eef2ff; }
.sitemap-post-list li a {
  font-size: .85rem;
  color: var(--text-dark);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sitemap-post-list li a:hover { color: var(--primary); }
.sitemap-post-date {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
  margin-left: 1rem;
}

/* ===== Contact Page ===== */

/* Info cards */
.contact-info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.contact-info-card:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,.1);
  transform: translateY(-2px);
}
.contact-info-card i {
  font-size: 1.8rem;
  color: var(--primary);
  display: block;
  margin-bottom: .6rem;
}
.contact-info-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .25rem;
}
.contact-info-card a,
.contact-info-card span {
  font-size: .82rem;
  color: var(--text-dark);
  text-decoration: none;
  word-break: break-all;
}
.contact-info-card a:hover { color: var(--primary); }

/* Form card */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-form-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 1.1rem 1.75rem;
}
.contact-form-card-body {
  padding: 2rem 1.75rem;
}

/* CF7 field groups */
.cf7-field-group {
  margin-bottom: 1.4rem;
  position: relative;
}
.cf7-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
@media (max-width: 575.98px) {
  .cf7-field-row { grid-template-columns: 1fr; }
}

/* Labels */
.cf7-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .45rem;
}
.cf7-required {
  color: #ef4444;
  margin-left: .15rem;
}

/* Inputs */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: .72rem 1rem;
  font-size: .9rem;
  color: var(--text-dark);
  background: #f8faff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 12px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.wpcf7-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* Valid / Error states */
.wpcf7-form .cf7-input-valid {
  border-color: #22c55e !important;
  background: #f0fdf4 !important;
}
.wpcf7-form .cf7-input-error {
  border-color: #ef4444 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1) !important;
  animation: cf7-shake .35s ease;
}
@keyframes cf7-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  60%      { transform: translateX(5px); }
  80%      { transform: translateX(-3px); }
}

/* Error message */
.cf7-js-error,
.wpcf7-not-valid-tip {
  display: block;
  font-size: .78rem;
  color: #ef4444;
  margin-top: .3rem;
  padding-left: .25rem;
}

/* Char counter */
.cf7-char-counter {
  font-size: .75rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: .3rem;
  transition: color .2s;
}
.cf7-char-counter.cf7-char-ok { color: #22c55e; }

/* Submit */
.cf7-submit-wrap {
  margin-top: 1.75rem;
  text-align: center;
}
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 3rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
  min-width: 200px;
}
.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
}
.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}
.wpcf7-form input[type="submit"]:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* CF7 response */
.wpcf7-response-output {
  margin-top: 1.25rem !important;
  padding: .9rem 1.25rem !important;
  border-radius: 10px !important;
  font-size: .88rem !important;
  text-align: center;
}
.wpcf7-mail-sent-ok {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #166534 !important;
}
.wpcf7-mail-sent-ng,
.wpcf7-validation-errors,
.wpcf7-spam-blocked {
  background: #fff7f7 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

/* CF7 wrapper span fixes */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}
.wpcf7-form p {
  margin: 0;
}

/* CF7 label後のbrを非表示 */
.wpcf7-form .cf7-label + br { display: none; }
.wpcf7-form .cf7-field-group > p { margin: 0; }
.wpcf7-form .cf7-field-row > .cf7-field-group > p { margin: 0; }
