body {
  margin: 0 5px;
  padding: 0;
}

.site-header {
  background: #0a2e59; /* ディープブルー */
  color: #fff;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  flex-wrap: wrap;
}

.logo img {
  height: 70px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-form {
  display: flex;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.search-form input {
  border: none;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
}

.search-form button {
  background: transparent;
  border: none;
  padding: 0 10px;
  cursor: pointer;
}

.sns-icon {
  color: #fff;
  font-size: 1.3rem;
  margin-left: 15px;
  transition: opacity 0.3s;
}

.sns-icon:hover {
  opacity: 0.7;
}

.header-nav {
  background: #0a2e59;
  border-top: 1px solid #fff3;
  border-bottom: 1px solid #fff3;
}

.header-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 15px 0;
  margin: 0;
  list-style: none;
}

.header-nav li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.3s;
}

.header-nav li a:hover {
  text-decoration: underline;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  margin-left: auto;
}

.hamburger span {
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: #0a2e59;
  padding: 60px 20px;
  transition: right 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-links li a {
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  font-weight: bold;
}

.mobile-social {
  display: flex;
  gap: 16px;
  font-size: 1.4rem;
}

.mobile-social,
.mobile-social a,
.mobile-social i,
.mobile-social svg {
  color: #fff !important;
  fill: #fff !important;
  transition: color 0.2s, fill 0.2s;
}

.header-nav a.contact-link,
.mobile-nav-links a.contact-link {
  color: orange;
  font-weight: bold;
}

.contact-link:hover {
  color: #ff7a00;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo img {
    height: 40px;
    padding: 45px 0;
  }


  .header-tools {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hamburger span {
    display: block;
    height: 3px;
    background: white;
    margin: 5px 0;
  }

  .site-logo {
    flex-shrink: 0;
  }
  
  .hamburger {
    flex-shrink: 0;
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
  }
}

/* ===== Heroセクション ===== */
.hero {
  background: url('../img/Hero-pc.png') center center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  margin-left: auto;
  margin-right: 10vw;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  line-height: 1.4;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: transform 0.3s ease;
  }

  .hide-header {
    transform: translateY(-100%);
  }

  body {
    padding-top: 80px;
  }
}

/* ===== Hero CTAエリア ===== */
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.hero-caption {
  font-size: 1rem;
  color: #fff;
  opacity: 0.85;
}

.hero-main-btn {
  background: #ff6600;
  color: #fff;
  padding: 14px 32px;
  font-size: 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  display: inline-block;
  position: relative;
}

.hero-main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-main-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-main-btn .arrow {
  margin-left: 10px;
  transition: transform 0.2s ease;
}

.hero-main-btn:hover .arrow {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .hero {
    background: url('../img/Hero-sp.png') center center / cover no-repeat;
    height: 100vh;
    position: relative;
  }

  .hero-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    width: 90%;
  }
}

.rate-marquee {
  overflow: hidden;
  background: #000;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  white-space: nowrap;
  color: #fff;
}

.rate-track {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 30s linear infinite;
}

.rate-item {
  display: inline-block;
  padding: 10px 30px;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
}

.price-up {
  color: #00e676; /* 明るい緑 */
}

.price-down {
  color: #ff3d00; /* 明るい赤 */
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.popular-slider-section {
  background: url('../img/ranking-bg.png') center center / cover no-repeat;
  padding: 60px 20px;
  color: #fff;
  position: relative;
}

.popular-slider-section .section-title {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.popular-slider-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.top-category-posts {
  padding: 48px 0 48px 0;
  background: #fff;
}
.container {
  max-width: 1200px;
  margin: auto;
}
.category-tabs {
  text-align: center;
  margin: 70px 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.category-tabs a {
  display: inline-block;
  min-width: 120px;
  margin: 0 8px 10px;
  padding: 16px 32px;
  background: #102b62;
  border-radius: 24px;
  color: #fff;
  font-weight: bold;
  font-size: 1.07em;
  text-decoration: none;
  box-shadow: 0 2px 8px #0001;
  transition: background .18s, color .18s, transform .18s;
  letter-spacing: 0.03em;
}
.category-tabs a:hover {
  background: #0263ea;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto !important;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  margin-bottom: 32px;
}

.post-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px #0002;
  transition: transform 0.17s, box-shadow 0.17s;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.post-card:hover {
  transform: translateY(-5px) scale(1.018);
  box-shadow: 0 8px 24px #0003;
}
.post-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7eaf3;
  position: relative;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #0263ea;
  color: #fff;
  font-size: 0.88em;
  border-radius: 16px;
  padding: 5px 16px;
  font-weight: bold;
  box-shadow: 0 1px 6px #0002;
  letter-spacing: 0.02em;
}
.post-meta {
  padding: 10px 22px 0 22px;
  color: #888;
  font-size: 0.97em;
}
.post-title {
  padding: 8px 22px 4px 22px;
  font-size: 1.07em;
  color: #111;
  font-weight: bold;
  line-height: 1.4;
  min-height: 56px;
}

.single-post-title {
  padding: 8px 22px 4px 22px;
  font-size: 2em;
  color: #111;
  font-weight: bold;
  line-height: 1.4;
  min-height: 56px;
}

.post-tags {
  padding: 2px 22px 12px 22px;
  margin-top: 3px;
}
.post-tags .tag {
  display: inline-block;
  background: #f2f2f7;
  color: #16336f;
  font-size: 0.77em;
  padding: 4px 11px;
  border-radius: 13px;
  margin-right: 5px;
  margin-bottom: 2px;
  font-weight: bold;
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.18s;
}
.post-tags .tag:hover {
  background: #0263ea;
  color: #fff;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 36px 0;
  flex-wrap: wrap;
  font-size: 1.07em;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 18px;
  color: #16336f;
  background: #f2f6fd;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 2px 6px #0001;
  min-width: 40px;
  text-align: center;
  margin: 0 2px;
}

/* 現在のページ */
.pagination .current {
  background: linear-gradient(90deg, #0263ea 0%, #16336f 100%);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 4px 18px #0263ea22;
  border: none;
}

/* ホバー時 */
.pagination a:hover {
  background: #0263ea;
  color: #fff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px #0263ea22;
}

/* 前へ・次へだけちょい工夫したい場合 */
.pagination a:first-child,
.pagination a:last-child {
  font-size: 1.03em;
  padding: 10px 18px;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .container {
    padding: 0 12px;
  }
  .post-grid {
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .category-tabs a {
    min-width: 80px;
    padding: 10px 18px;
    font-size: 0.98em;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .category-tabs-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }

  .category-tabs-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .category-tabs a {
    flex: 0 0 auto;
  }
}

/* CTAセクション本体 */
.cta-section {
  background: url('../img/CTA-pc.png') center center/cover no-repeat;
  color: #fff;
  padding: 60px 20px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-text {
  max-width: 600px;
}

.cta-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.cta-desc {
  font-size: 1rem;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  flex-direction: column; /* ← 縦に並べる！ */
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 16px 30px; /* ← 縦横に広め */
  border-radius: 40px;
  font-size: 1.05rem; /* ← 通常よりやや大きめ */
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  max-width: 100%;
  width: 100%;
  max-width: 300px;
}

.btn.orange {
  background: linear-gradient(to right, #ff7e00, #ff4c00); /* グラデーション */
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3); /* 柔らかシャドウ */
  transition: all 0.3s ease;
  font-weight: bold;
}

.btn.orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 102, 0, 0.4);
}

.btn.white {
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn.white:hover {
  background: #f2f2f2;
  transform: translateY(-2px);
}

/* SP背景切り替え */
@media (max-width: 768px) {
  .cta-section {
    background: url('../img/CTA-sp.png') center center/cover no-repeat;
  }
}

.author-section {
  background: #fff;
  padding: 60px 20px;
}

.author-container {
  max-width: 720px;
  margin: auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 12px 36px rgba(2, 99, 234, 0.15); /* ← 青系シャドウ */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.25s ease;
}

.author-container:hover {
  box-shadow: 0 16px 48px rgba(2, 99, 234, 0.25); /* hover時ちょいリフト */
}

.author-icon img.author-img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0263ea33; /* 薄い青枠でコントラスト追加 */
}

.author-info {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.author-name {
  font-size: 1.5rem;
  font-weight: 900;
  color: #102b62;
  margin-bottom: 20px;
}

.author-bio {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  text-align: left;
}

.author-social {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s ease;
}

.sns.x {
  background: #000;
  color: #fff;
}

.sns.line {
  background: #00B900;
  color: #fff;
}

.sns:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

/* モバイル対応 */
@media (max-width: 900px) {
  .author-container {
    max-width: 95vw;
    padding: 24px 10px;
  }
  .author-info {
    max-width: 100%;
  }
  .author-bio {
    font-size: 0.98rem;
  }
}

@media (max-width: 600px) {
  .author-section {
    padding: 32px 4vw;
  }
  .author-container {
    border-radius: 12px;
    padding: 16px 2vw;
    gap: 18px;
  }
  .author-icon img.author-img {
    width: 130px;
    height: 130px;
    margin-bottom: 6px;
  }
  .author-name {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }
  .author-bio {
    font-size: 0.93rem;
    line-height: 2;
	padding: 0 8px;
  }
  .sns {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
}

.site-footer {
  background: #0a2e59;
  padding-top: 40px;
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.footer-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #f0f0f0;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-home img {
  width: 48px;
  height: auto;
  margin-bottom: 5px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 20px;
  margin: 0;
}

.footer-links a {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  padding: 20px 10px;
  background: #0a2e59;
}

.footer-bottom .copyright {
  color:  #f0f0f0;
  font-size: 0.85rem;
}


/*single.php*/
/* 記事全体のベース */
.single-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
}

/* パンくず */
.breadcrumbs {
  font-size: 0.98em;
  color: #16336f;
  margin-bottom: 12px;
}

/* 記事タイトル */
.post-title {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 18px;
  color: #222;
}

/* メタ情報（日付・カテゴリ） */
.post-meta {
  color: #6b7280;
  font-size: 0.96em;
  margin-bottom: 6px;
}

/* アイキャッチ */
.eyecatch img,
.eyecatch .wp-post-image {
  border-radius: 12px;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  box-shadow: 0 2px 16px #0001;
}

/* 本文 */
.post-content {
  font-size: 1.06em;
  line-height: 1.8;
  color: #222;
  margin-bottom: 28px;
}

/* 注意書き・PRラベル */
.notice {
  background: #fffcf0;
  padding: 14px 18px;
  border-left: 4px solid #ffc107;
  color: #222;
  border-radius: 4px;
  margin: 30px 0 10px;
  font-size: 0.96em;
  line-height: 1.6;
  text-align: left;
}

.notice-lead {
  font-weight: bold;
  margin-bottom: 4px;
  color: #111;
}

.notice-sub {
  margin: 0;
  font-size: 0.95em;
  color: #444;
}

@media screen and (max-width: 768px) {
  .notice {
    padding: 12px 14px;
    font-size: 0.92em;
    border-left: 3px solid #ffc107;
  }

  .notice-lead {
    font-size: 0.9em;
    margin-bottom: 6px;
  }

  .notice-sub {
    font-size: 0.8em;
  }
}

/* カードリスト（関連記事・人気記事） */
.card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* カード本体 */
.card {
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #0002;
  overflow: hidden;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: 0 4px 16px #0003;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}
.card a {
  color: #16336f;
  text-decoration: none;
  font-size: 1em;
  transition: color .2s;
}
.card a:hover {
  color: #0263ea;
}


@media (max-width: 400px) {
  .related-articles .card {
    width: 95vw;
    min-width: unset;
  }
  .related-articles .card-list {
    display: flex;
    flex-direction: column;
    align-items: center;  
    gap: 20px;
  }
  .related-articles .card {
    width: 320px;
    margin: 0 auto;
  }
}

/* 前後記事ナビ */
.post-navigation {
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 40px; /* ボタン間の余白 */
  margin: 56px 0 44px 0; /* 上下の余白を広く */
  font-size: 1.08em;
}
.post-navigation .nav-btn {
  flex: 0 0 210px;
  display: flex;
  justify-content: center;
}
.post-navigation a {
  color: #16336f;
  background: #f2f6fd;
  padding: 13px 32px;
  border-radius: 28px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.08em;
  box-shadow: 0 2px 8px #0001;
  transition: background .2s, color .2s, box-shadow .18s;
  display: inline-block;
  text-align: center;
  min-width: 120px;
}
.post-navigation a:hover {
  background: #0263ea;
  color: #fff;
  box-shadow: 0 5px 18px #0263ea22;
}

/* カテゴリーボタン */
.categories {
  margin: 38px 0 34px 0;
}
.categories a {
  display: inline-block;
  padding: 8px 24px;
  background: #16336f;
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.97em;
  transition: background .2s, color .2s;
  margin: 0 8px 8px 0;
  letter-spacing: 0.02em;
  justify-content: center;
}
.categories a:hover {
  background: #0263ea;
  color: #fff;
}
.category-tab-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* 中央寄せ！ */
  gap: 12px;
  margin-top: 8px;
}
.category-tab-btn {
  display: inline-block;
  padding: 8px 24px;
  background: #16336f;
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.97em;
  transition: background .2s, color .2s;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px #0001;
}
.category-tab-btn:hover,
.category-tab-btn.active {
  background: #0263ea;
  color: #fff;
}

/* 広告バナー共通 */
.ad-banner {
  margin: 28px 0;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0001;
  background: #f8fafd;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90px;
  min-width: 320px;
  position: static !important;
}

/* 検索フォーム（カスタム調整例） */
.custom-search-form {
  display: flex;
  align-items: center;
  background: #f7fafd;
  border-radius: 32px;
  box-shadow: 0 4px 16px #0263ea22, 0 1.5px 8px #0001;
  padding: 5px 8px 5px 20px;
  max-width: 440px;
  margin: 0 auto;
  transition: box-shadow .2s;
}
.custom-search-form:focus-within {
  box-shadow: 0 4px 28px #0263ea44;
}
.custom-search-form input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.05em;
  padding: 11px 10px;
  color: #222;
  border-radius: 32px 0 0 32px;
  font-family: inherit;
}
.custom-search-form input[type="search"]::placeholder {
  color: #aaa;
  font-size: 1em;
}
.custom-search-form button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #16336f 0%, #0263ea 100%);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 0 32px 32px 0;
  padding: 10px 22px;
  font-size: 1.04em;
  cursor: pointer;
  transition: background .18s, box-shadow .18s;
  box-shadow: 0 2px 8px #0001;
}
.custom-search-form button:hover {
  background: linear-gradient(90deg, #0263ea 0%, #16336f 100%);
}
.search-icon {
  display: flex;
  align-items: center;
  margin-right: 2px;
}
.search-section {
  margin: 45px 0; /* カテゴリーとの間を広げる */
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
  .card-list {
    gap: 10px;
  }
  .card {
    width: 47%;
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  .single-article {
    padding: 0 5px;
  }
  .card {
    width: 100%;
    min-width: unset;
  }
}

/* ========== レスポンシブ対応 ========== */

/* カードリストの幅・並び・余白調整 */
@media (max-width: 900px) {
  .single-article {
    max-width: 100%;
    padding: 0 8px;
  }
  .card-list {
    gap: 12px;
  }
  .card {
    width: 47%;
    min-width: 170px;
    font-size: 0.98em;
  }
  .post-navigation {
    gap: 18px;
  }
}

@media (max-width: 700px) {
  .post-title {
    font-size: 1.1em;
  }
  .card {
    width: 100%;
    min-width: unset;
    margin-bottom: 16px;
  }
  .card-list {
    gap: 8px;
    flex-direction: column;
  }
  .ad-banner img {
    max-width: 95vw;
    height: auto;
  }
  .post-navigation a {
    padding: 10px 0;
    font-size: 0.96em;
    min-width: 90px;
  }
  .category-tab-wrap {
    gap: 6px;
  }
  .category-tab-btn {
    font-size: 0.96em;
    padding: 7px 12px;
  }
  .notice {
    font-size: 0.97em;
    padding: 10px 8px;
  }
}

/* さらにスマホ・極小幅 */
@media (max-width: 500px) {
  .single-article {
    padding: 0 2px;
    font-size: 0.97em;
  }
  .card-list {
    gap: 6px;
  }
  .post-title {
    font-size: 1em;
  }
  .post-meta {
    font-size: 0.91em;
  }
  .eyecatch img,
  .eyecatch .wp-post-image {
    border-radius: 8px;
  }
  .post-navigation {
    flex-direction: column;
    gap: 10px;
    margin: 30px 0 20px 0;
  }
  .post-navigation .nav-btn {
    width: 100%;
    flex: 1 1 100%;
  }
  .post-navigation a {
    width: 100%;
    font-size: 0.98em;
    min-width: 0;
    border-radius: 20px;
    padding: 10px 0;
  }
  .categories {
    margin: 28px 0 20px 0;
  }
  .category-tab-btn {
    font-size: 0.95em;
    padding: 7px 7vw;
    border-radius: 16px;
  }
}

/* 広告バナーを縮小 */
@media (max-width: 400px) {
  .ad-banner img {
    max-width: 88vw;
    height: auto;
  }
}

/*category.php*/
.categories a {
  display: inline-block;
  padding: 8px 24px;
  background: #16336f;
  color: #fff;
  border-radius: 24px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.97em;
  transition: background .2s, color .2s;
  margin: 0 8px 8px 0;
  letter-spacing: 0.02em;
}
.categories a:hover,
.categories a[style*="background:#0263ea"] { /* active状態 */
  background: #0263ea;
  color: #fff;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .single-rate-marquee {
    margin-top: 133px;
  }
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;      /* Firefoxでスクロールバー非表示 */
}
.category-tabs::-webkit-scrollbar {
  display: none;              /* Chrome/Safariでスクロールバー非表示 */
}
.category-tabs a {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .category-tabs {
    gap: 6px;
    padding-bottom: 4px;      /* 見やすさUP */
    margin-bottom: 26px;
    max-width: 100vw;
  }
}


/* フォーム全体 */
.wpcf7 {
  max-width: 480px;
  margin: 40px auto;
  padding: 36px 26px 30px 26px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 32px #16336f22;
  border: 1px solid #e7eaf3;
}

/* ラベル */
.wpcf7 label {
  display: block;
  font-size: 1em;
  font-weight: bold;
  color: #16336f;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* テキストボックス・テキストエリア */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  border: 1.7px solid #b3cdfa;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 1.02em;
  margin-bottom: 24px;
  background: #f7fafd;
  color: #16336f;
  box-sizing: border-box;
  transition: border 0.19s;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: #0263ea;
  outline: none;
  background: #e7f2fe;
}

/* セレクト */
.wpcf7 select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.7px solid #b3cdfa;
  background: #f7fafd;
  font-size: 1em;
  color: #16336f;
  margin-bottom: 24px;
}

/* チェックボックス、ラジオ */
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] {
  accent-color: #0263ea;
  margin-right: 7px;
  margin-bottom: 3px;
  transform: scale(1.15);
}

/* 送信ボタン */
.wpcf7 input[type="submit"] {
  background: linear-gradient(90deg, #0263ea 0%, #16336f 100%);
  color: #fff;
  font-size: 1.13em;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  padding: 16px 45px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 3px 18px #0263ea1a;
  letter-spacing: 0.03em;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
}
.wpcf7 input[type="submit"]:hover {
  background: #16336f;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 28px #16336f22;
}

/* エラー・サクセスメッセージ */
.wpcf7-response-output {
  padding: 15px;
  border-radius: 8px;
  margin-top: 18px;
  font-size: 1em;
  background: #e9f1ff;
  color: #0263ea;
  border: 1.5px solid #b3cdfa;
}
.wpcf7-mail-sent-ok {
  background: #e4faf2;
  color: #22995b;
  border: 1.5px solid #35e9aa;
}
.wpcf7-not-valid-tip,
.wpcf7-validation-errors {
  background: #ffefef;
  color: #d0323a;
  border: 1.5px solid #f7b0b0;
}

/* 入力必須ラベルカスタム */
.wpcf7 label .required {
  color: #e0134b;
  font-size: 0.98em;
  font-weight: bold;
  margin-left: 5px;
}

.wpcf7 .wpcf7-form-control.wpcf7-submit {
  display: block;
  margin: 22px auto 0 auto; 
}

.consent-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  font-size: 0.95em;
  color: #16336f;
  gap: 8px;
}

.consent-wrapper input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: #0263ea;
  margin-right: 6px;
}

/* 教育・コミュニティページCSS */

.page-about {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.8;
  font-size: 1.05em;
  color: #333;
}

.page-about h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #0263ea;
  padding-left: 12px;
  color: #102b62;
}

.page-about h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 36px;
  margin-bottom: 14px;
  color: #16336f;
  border-bottom: 2px solid #eee;
  padding-bottom: 6px;
}

.page-about p {
  margin-bottom: 24px;
}

.page-about ul {
  padding-left: 1.5em;
  margin-bottom: 24px;
}

.page-about ul li {
  margin-bottom: 10px;
}

.page-about strong {
  font-weight: 700;
  color: #111;
}

@media screen and (max-width: 768px) {
  .page-about {
    padding: 32px 16px;
    font-size: 1em;
	margin-top: 133px;
  }

  .page-about h1 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
  }

  .page-about h2 {
    font-size: 1.25rem;
    margin-top: 28px;
    margin-bottom: 12px;
  }

  .page-about ul {
    padding-left: 1.2em;
  }
}
