body {
  margin: 0;
  font-family: 'Yu Gothic', 'Hiragino Kaku Gothic Pro', sans-serif;
  background: #fafafa;
  color: #333;
}

header {
  background: linear-gradient(90deg, #800000, #b45f06);
  padding: 10px 20px;
  color: #fff;
}

.bold{
font-weight:bold;
}
.under_yellow{
  background: linear-gradient(transparent 60%, yellow 30%);
  display: inline-block;}

/* ヘッダーを左右に分ける */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1{
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}
header h1 a{
  color:#fff;
  font-weight: bold;
  text-decoration:none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}
nav a:hover {
  opacity: 0.7;
}
/* 親メニューに相対位置 */
nav ul li {
  position: relative;
}

/* サブメニュー初期非表示 */
.submenu {
  display: none;
  position: absolute;
  top: 100%; /* 親メニューの下に表示 */
  left: 0;
  background: #800000;
  padding: 10px 0;
  border-radius: 5px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 100;
}
/* サブメニューリンク */
.submenu li {
  width: 200px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.submenu li:last-child {
  border-bottom: none;
}
.submenu li a {
  display: block;
  padding: 10px;
  margin: 0 auto;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.submenu li a:hover {
  background: rgba(255,255,255,0.1);
}
.submenu.open {
  display: block;
}
/* ホバー時に表示 */
.has-submenu:hover .submenu {
  display: block;
}
.has-submenu li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}


@media (max-width: 768px) {
  nav ul li.has-submenu .submenu {
    position: relative; /* ドロワー内に収まる */
    background: #800000;
    display: none; /* デフォルトは閉じる */
    padding-left: 15px; 
  }
  nav ul li.has-submenu.active .submenu {
    display: block; /* クリック時に表示 */
  }
  nav ul li.has-submenu > a::after {
    content: "▼";
    float: right;
    margin-left: 5px;
  }
  nav ul li.has-submenu.active > a::after {
    content: "▲";
  }
}

/* ハンバーガー初期非表示 */
.hamburger {
  display: none; /* PCでは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1100; /* ドロワーより上にする */
}
.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}
/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 900; /* ドロワーより下 */
}
.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ドロワーメニュー */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -250px; /* 初期は画面外 */
  width: 250px;
  height: 100%;
  background: #800000;
  color: #fff;
  transition: right 0.3s;
  padding-top: 60px;
  z-index: 1000;
  overflow-y: auto; /* 縦スクロールできるように */
}
/* 縦並びリスト */
.nav-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;   /* 横並びを防ぐ */
}
.nav-drawer li {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.nav-drawer a {
  display: block;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  /* 万一縦書きが残っている場合のリセット */
  writing-mode: horizontal-tb;
  transform: none;
}
.nav-drawer a:hover {
  background: rgba(255,255,255,0.1);
}
/* ドロワー開いた時 */
.nav-drawer.open {
  right: 0;
}

/* ハンバーガーアニメーション */
/* アクティブ状態（×に変形） */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .nav-pc {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}



/* お知らせバー */
.news-bar {
  background: #f9f9f9; /* 明るい背景 */
  padding: 14px 20px; 
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 16px; 
}

.news-date {
  color: #666;
  font-weight: bold;
  font-size: 15px;
  min-width: 100px; /* 日付部分を固定幅にして整列 */
}
.news-title {
  color: #007BFF;  /* 青系 */
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: 0.2s;
}
.news-title:hover {
  text-decoration: underline;
}



/* ヒーローセクション */
.hero {
  background: url('../img/hp-bg.png') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h2 {
  font-size: 2.5rem;
  color: #000;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 背景とのメリハリを強調 */
}

.hero-text p{
  font-size: 1.5rem;
  color: #000;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  background: #800000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
}

.main_h2{
  text-align:center;
  margin-bottom: 10px;
}


/* お問合せボタン */
.contact-banner {
  text-align: center;
  margin: 20px 0;
}
.contact-banner p {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.contact-banner .btn {
  display: block;
  background: linear-gradient(90deg, #ff7f50, #ff4500);
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}
.contact-banner .btn:hover {
  background: linear-gradient(90deg, #ff9966, #ff5e00);
  transform: scale(1.05);
}

/* お問合せボタン */
.contact-banner-v2 {
  text-align: center;
  margin: 20px auto;
}
.contact-banner-v2 p {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
.contact-banner-v2 .btn {
  display: block;
  margin: auto;
  max-width:500px;
  background: linear-gradient(90deg, #ff7f50, #ff4500);
  color: #fff;
  font-size: 1.5rem; /* 大きめ文字 */
  font-weight: bold;
  padding: 20px 40px; /* ボタンを大きく */
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}
.contact-banner-v2 .btn:hover {
  background: linear-gradient(90deg, #ff9966, #ff5e00);
  transform: scale(1.05);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .contact-banner p, .contact-banner-v2 p {
    font-size: 1.0rem;
    font-weight: bold;
  }
  .contact-banner .btn, .contact-banner-v2 .btn {
  font-size: 1.2rem; /* 大きめ文字 */
  }
}


/* 当社について（トップページ用） */
.top-about-section {
  margin: 60px auto;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.about-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.about-image img {
  max-width: 100%;
  height: auto;
  display: block;
}
.about-text {
  flex: 1;
}
.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}
.about-text .btn {
  display: inline-block;
  padding: 10px 20px;
  background: #800000;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}
.about-text .btn:hover {
  background: #a00000;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-text {
    margin-top: 20px;
  }
}


/* 当社について */
.about-section h2 {
  margin-bottom: 40px;
  text-align: center;
  font-size: 1.8rem;
}
/* 理念セクション */
.philosophy-section {
  margin-top: 40px;
  padding: 40px 20px;
  background-color: #fffaf2;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.philosophy-section h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  display: inline-block;
}
.philosophy-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #f1b100;
  margin: 8px auto 0;
  border-radius: 2px;
}
.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1rem;
  color: #444;
}
.philosophy-content strong {
  color: #c85a00;
}
/* 当社の特徴セクション */
.features-section {
  margin-top: 40px;
  padding: 40px 20px;
  background-color: #f4f9ff;
  border-radius: 12px;
}
.features-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #333;
  position: relative;
}
.features-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #0078d4;
  margin: 8px auto 0;
  border-radius: 2px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}
.feature-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0078d4;
}
.feature-item p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #444;
}
/* 制作者紹介セクション */
.creator-section {
  margin-top: 0px;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}
.creator-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
}
.creator-profile {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.creator-image {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eee;
}
.creator-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
}
.creator-text h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}
.creator-sns a {
  color: #0078d4;
  text-decoration: none;
  margin-right: 10px;
}
.creator-sns a:hover {
  text-decoration: underline;
}
/* 事業概要セクション */
.company-section {
  margin-top: 0px;
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-radius: 12px;
}
.company-section h2 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: #333;
}
.company-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.company-table th,
.company-table td {
  border: 1px solid #ddd;
  padding: 10px 15px;
}
.company-table th {
  background-color: #f0f0f0;
  width: 30%;
  text-align: left;
}
/* スマホ対応 */
@media (max-width: 768px) {
  .philosophy-section {
    padding: 40px 15px;
  }
  .philosophy-section h2 {
    font-size: 1.6rem;
  }
  .features-section {
    padding: 40px 15px;
  }
  .features-section h2 {
    font-size: 1.6rem;
  }
  .creator-profile {
    flex-direction: column;
    text-align: center;
  }
  .creator-image {
    margin-bottom: 20px;
  }
}


/* プラン紹介 */
.top-plan-section {
  /* 背景色は既存のデザインに合わせてシンプルに調整、あるいは削除してもOK */
  background: linear-gradient(135deg, #fff9f9, #fff0e0); 
  padding: 40px 20px; /* 余白を調整 */
  margin: 60px 0;    /* 上下の間隔 */
  border-radius: 12px;
}

/* 見出し調整 */
.top-plan-section .section-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 20px;
  color: #800000;
  font-weight: bold;
}

.plan-section-lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* グリッドレイアウト */
.top-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 最小幅を少し小さくして崩れ防止 */
  gap: 25px;
  width: 100%;
  margin-bottom: 40px;
}

/* カード本体 */
.plan-card-box {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #eee;
  box-sizing: border-box; /* 崩れ防止 */
}

.plan-card-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* おすすめバッジ（人気No.1） */
.plan-card-box.recommended {
  border: 2px solid #ff9800;
  position: relative;
  z-index: 1;
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #ff0000;
  color: #fff;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-bottom-right-radius: 10px;
  z-index: 10;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

/* 画像エリア */
.plan-img-area {
  width: 100%;
  height: 250px; /* 高さを少し抑える */
  overflow: hidden;
  border-bottom: 1px solid #f0f0f0;
}

.plan-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block; /* 余白除去 */
}

.plan-card-box:hover .plan-img-area img {
  transform: scale(1.1);
}

/* テキストエリア */
.plan-text-area {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-text-area h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #333;
  font-weight: bold;
}

.plan-price {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.plan-price span {
  font-size: 1.6rem;
  color: #e74c3c;
  font-family: sans-serif;
  margin: 0 5px;
}

.plan-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1; /* ボタンを下揃えにするため */
}


/* スマホ対応 */
@media (max-width: 768px) {
  .top-plan-section {
    padding: 30px 15px;
  }
  .top-plan-grid {
    grid-template-columns: 1fr; /* 1カラム強制 */
    gap: 30px;
  }
  .plan-img-area {
    height: 220px; /* スマホでは少し画像を小さく */
  }
}

/* ボタンエリア */
.plan-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto; /* 強制的に下へ */
}

/* サンプルボタン */
.btn-sample {
  display: block;
  text-align: center;
  background: #fff;
  border: 2px solid #007BFF;
  color: #007BFF;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: 0.3s;
}

.btn-sample:hover {
  background: #007BFF;
  color: #fff;
}

/* 詳細ボタン */
.btn-detail {
  display: block;
  text-align: center;
  background: #800000;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-detail:hover {
  background: #a00000;
  opacity: 0.9;
}

/* --- セクション下部 CTAボタン --- */
.top-plan-btn {
  text-align: center;
  margin-top: 30px;
}
.top-plan-btn p {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #333;
}

.btn-primary-gradient {
  display: inline-block;
  background: linear-gradient(90deg, #ff7f50, #ff4500);
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 69, 0, 0.4);
}
.btn-primary-gradient span {
  margin-left: 8px;
}



.top-plan-section .banner-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(128,0,0,0.8);
  padding: 15px;
}
.top-plan-section .banner-text h3 {
  margin: 0;
  font-size: 1.2rem;
}
.top-plan-section .banner-text p {
  margin: 5px 0 0;
  font-size: 0.9rem;
}
.top-plan-btn{
  text-align: center;
}

.container{
max-width: 1100px;
margin: auto;
padding: 20px;
}

.top-sel-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}
.top-sel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* --- 料金比較への誘導セクション --- */
.top-comparison-guide {
  background: #fff;
  padding: 40px 20px;
  border: 2px solid #007BFF;
  border-radius: 10px;
  margin: 60px auto;
  max-width: 1100px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.comparison-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* gap: 30px; ← PC表示では十分な余白を確保 */
  /* スマホでの上下の余白はメディアクエリで調整 */
}
.comparison-text h2 {
  font-size: 1.6rem;
  color: #800000;
  margin-top: 0;
  border-left: 5px solid #007BFF;
  padding-left: 10px;
}
.comparison-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}
.comparison-button {
  flex-shrink: 0; /* ボタンが縮まないように */
}
.comparison-btn {
  display: block;
  background: linear-gradient(135deg, #007BFF, #0056b3); /* 青系のグラデーション */
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}
.comparison-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}
.comparison-btn span {
  margin-left: 8px;
  font-size: 1.2em;
}

@media (max-width: 768px) {
  .comparison-grid {
    flex-direction: column;
    text-align: center;
    /* 上下のスペースを詰めるため、ここでの gap や margin-bottom を調整 */
    gap: 15px; /* 上下の間隔を15pxに短縮 */
  }
  .comparison-text {
    margin-bottom: 0px; /* テキスト下の余白を削除 */
  }
  .comparison-text h2 {
    text-align: center; /* タイトル中央寄せ */
    border-left: none;
    padding-left: 0;
    font-size: 1.4rem;
  }
  .comparison-text p {
    font-size: 1rem;
    margin-top: 5px; /* タイトルとテキストの間隔を詰める */
    text-align: left;
  }
  /* ボタンの親要素を中央寄せにする必要はないが、ボタン自体が block なので自動的に中央になる */
  .comparison-button {
    width: 100%; /* 親要素が幅いっぱいになるように */
    display: flex;
    justify-content: center; /* ボタンを中央に配置 */
  }
  .comparison-btn {
    width: 80%; /* ボタン幅を適度に設定 */
    max-width: 300px; /* 大きすぎないように制限 */
    font-size: 1rem;
    text-align: center;
  }
  .pc-only {
    display: none;
  }
}

/* --- バナー --- */
.banner {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.banner-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.banner-item img {
  width: 100%;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s;
}
.banner-item:hover img {
  transform: scale(1.05);
}
.banner-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 1rem;
}

/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: 1fr; /* スマホでは1カラム */
  }
  .banner-item {
    border-radius: 0; /* 画面幅いっぱいに */
  }
  .banner-item img {
    border-radius: 0;
    width: 100%; /* 画面幅いっぱい */
  }
}


/* ブログセクション全体 */
.top-blog-section {
  background: linear-gradient(135deg, #fffde7, #e6f4fa); /* グラデーション */
  padding: 60px 20px;
  text-align: center;
  margin: 60px auto 0 auto;
}
.top-blog-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-top: 0px;
  margin-bottom: 40px;
}
.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 常に3カラム */
  gap: 15px;
  overflow-x: auto; /* 横スクロール可能にすると詰まり防止 */
}
.blog-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 20px;
  transition: transform 0.3s;
}
.blog-box:hover {
  transform: translateY(-5px);
}
.blog-box img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 5px;
}
.blog-box h3 {
  font-size: 1.4rem; /* 少し大きく */
  margin-top: 0px;
  margin-bottom: 10px;
}
.blog-box p {
  font-size: 1rem;
  margin-bottom: 15px;
  text-align: left;
}
.blog-box a {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}
.blog-box a:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .blog-box {
    min-width: 80%; /* スマホで見やすい大きさ確保 */
    scroll-snap-align: start;
  }
  .blog-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
}

/* よくある質問 */
.top-faq-section {
  padding: 60px 20px;
}
.top-faq-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* フッター */
footer {
  background: #222;
  color: #ccc;
  padding: 40px 20px 20px;
  margin-top: 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.footer-h {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
}
.footer-column a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  margin: 2px 6px;
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 6px;
}
.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-column ul li a:hover {
  color: #fff;
}
.footer-column p {
  margin: 5px 0;
}
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 20px;
  padding-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

/* フッターテキストリンク（PC基本） */
.footer-links a,
.footer-center a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  margin: 2px 6px;     /* ← ここを小さく（以前より間隔狭く） */
  display: inline-block;
  transition: 0.2s;
}

.footer-links a:hover,
.footer-center a:hover {
  text-decoration: underline;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffd700;
}

/* スマホ用（幅768px以下） */
@media (max-width: 768px) {
  .footer-links,
  .footer-center {
    display: block;
    text-align: center; /* 中央寄せ */
  }

  .footer-links a,
  .footer-center a {
    font-size: 18px;             
    display: block;              
    width: 100%;                 /* 横幅いっぱい */
    max-width: 100%;             /* はみ出し防止 */
    box-sizing: border-box;      /* padding込みで100% */
    padding: 14px;               
    margin: 8px auto;            /* 中央寄せ */
    text-align: center;          
    background-color: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    transition: all 0.3s;
  }

  .footer-links a:hover,
  .footer-center a:hover {
    background-color: rgba(255,255,255,0.3);
    color: #000; 
  }
}



/* 追従ボタン */
/* 右側追従ボタン（PC用） */
.fixed-buttons {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  gap: 0; /* ボタン間の隙間をなくす */
}

.fixed-buttons a {
  display: block;
  writing-mode: vertical-rl; /* 縦書き */
  text-align: center;
  padding: 20px 15px;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border-radius: 0; /* 初期化 */
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* 立体感 */
  height: 100px; /* 高さを固定して揃える */
}

/* 料金プランボタン（青系） */
.fixed-buttons a:first-child {
  background-color: #3498db; /* 明るい青 */
  border-radius: 10px 0 0 0;
}
.fixed-buttons a:first-child:hover {
  background-color: #21618c; /* 濃い青 */
}
/* お問合せボタン（赤系） */
.fixed-buttons a:last-child {
  background-color: #e74c3c; /* 赤 */
  border-radius: 0 0 0 10px;
}
.fixed-buttons a:last-child:hover {
  background-color: #c0392b; /* 濃い赤 */
}
.fixed-buttons a:hover {
  opacity: 0.9;
  transform: scale(1.05); /* ホバーで少し拡大 */
}
/* くっ付ける */
.fixed-buttons a + a {
  margin-top: 0;
}

 /* スマホ用固定ボタンを非表示 */
.bottom-fixed-buttons {
  display: none;
}

/* スマホ用：画面下にフローティングボタン */
@media (max-width: 768px) {
  .fixed-buttons { /* PC用固定ボタンを非表示 */
    display: none;
  }
  .bottom-fixed-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.8); /* 背景を浮き出た感じに */
    z-index: 1000;
  }

  .bottom-fixed-buttons a {
    flex: 1; /* 横幅均等 */
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
  }

  .bottom-fixed-buttons a.plan {
    background: #3498db; /* 明るい青 */
  }
  .bottom-fixed-buttons a.plan:hover {
    background: #21618c; /* 濃い青 */
  }

  .bottom-fixed-buttons a.contact {
    background: #e74c3c; /* 赤 */
  }

  .bottom-fixed-buttons a.contact:hover {
    background: #c0392b; /* 濃い赤 */
  }

  .bottom-fixed-buttons a:hover {
    opacity: 0.85;
  }
}

.note-text {
  font-size: 1.0rem;
  font-weight: bold;
  color: #FF0000;
  margin: 5px 0;
}


/* 目次 */
.toc {
  counter-reset: toc-counter;
  padding: 20px;
  background: #f8fbff;
  border: 1px solid #d6e4f5;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin: 20px 0;
}
.toc_h2 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}
.toc li {
  counter-increment: toc-counter;
  margin: 12px 0;
  font-size: 1rem;
  line-height: 1.6;
}
.toc ol {
  list-style: none;  /* ← デフォルト番号を消す */
}
.toc li::before {
  content: counter(toc-counter) ". ";
  color: #3d8bfd;
  font-weight: bold;
  margin-right: 6px;
}
.toc a {
  color: #333;
  text-decoration: none;
  transition: 0.2s;
}
.toc a:hover {
  color: #3d8bfd;
  text-decoration: underline;
}


/* 料金プランページ */
.support-section {
  background: #f9f9f9;
  border-left: 5px solid #ff9900;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.8;
}
.plan-card-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}
.plan-service {
  margin-bottom: 30px;
}
.plan-intro {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #444;
}
.plan-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ddd;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.plan-card .price {
  font-size: 1.5rem;
  color: #e74c3c;
  margin: 10px 0;
}
.plan-table {
  width: 100%;
  border-collapse: collapse;
}
.plan-table th, .plan-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}
.plan-table th {
  background: #f5f5f5;
}
.table-responsive {
  overflow-x: auto;
}
.plan-note {
  font-size: 0.9rem;
  color: #555;
  margin: 5px 0;
}

.plan-case-link {
  margin: 60px auto;
}
.case-link-box {
  background: #f5fbff;
  border-left: 6px solid #0a84ff;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
}
.case-link-box h2 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  font-weight: 700;
}
.case-link-box p {
  margin-bottom: 20px;
  line-height: 1.7;
}
.case-btn {
  display: inline-block;
  background: #0a84ff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: 0.3s;
}
.case-btn:hover {
  opacity: 0.8;
}

/* スマホ用：比較表の完全リセットと再構築 */
@media screen and (max-width: 768px) {
  /* テーブル全体の挙動を「表」から「ただの箱」に変更 */
  .plan-table, 
  .plan-table thead, 
  .plan-table tbody, 
  .plan-table tr, 
  .plan-table th, 
  .plan-table td {
      display: block;
      width: 100%;
      min-width: 0; /* 幅の固定を解除 */
      max-width: none;
      height: auto;
      box-sizing: border-box;
      white-space: normal; /* 改行を許可（文字欠け防止） */
      overflow: visible;   /* はみ出しを隠さない */
      text-align: left;
      border: none;
  }

  /* 横並びのヘッダーを完全に消す */
  .plan-table thead {
    display: none;
  }

  /* 項目名（ページ数など）をカードの「見出し」にする */
  .plan-table tr {
    margin-bottom: 30px;
    border: 2px solid #800000;
    border-radius: 10px;
    background: #fff;
  }

  /* カードの最上部（th：ページ数など） */
  .plan-table th:first-child {
    background: #800000;
    color: #fff;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
  }

  /* 各プラン（スモール、ミディアム、ラージ）の行 */
  .plan-table td {
    display: flex;
    justify-content: flex-start; /* 左から並べる */
    align-items: flex-start;
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
  }

  /* 左側のラベル（スモール等） */
  .plan-table td::before {
    display: inline-block;
    content: attr(data-label); /* ※HTMLの修正が必要です（下記参照） */
    font-weight: bold;
    color: #800000;
    background: #fff5f5;
    padding: 5px 10px;
    margin-right: 15px;
    border-radius: 4px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  /* nth-of-type が効かない場合に備えた代替指定 */
  .plan-table td:nth-of-type(1)::before { content: "スモール　"; }
  .plan-table td:nth-of-type(2)::before { content: "ミディアム"; }
  .plan-table td:nth-of-type(3)::before { content: "ラージ　　"; }

  /* 値（7ページ以内など）のテキスト */
  .plan-table td {
    line-height: 1.5;
    color: #333;
    word-break: break-all; /* 長い単語を途中で折る */
  }

}

/* ボタンスタイル */
.plan-button-wrapper {
  text-align: center;
  margin-bottom: 30px;
}

.plan-button {
  display: inline-block;
  background-color: #007BFF; /* 青系 */
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.plan-button:hover {
  background-color: #0056b3;
}
/* 当プランのポイント セクション */
.plan-points {
  padding: 50px 30px;
  background: #fff;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.plan-points h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--brand-600);
  margin: 15px auto 0;
  border-radius: 2px;
}
.plan-points-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 25px;
}
.plan-points-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 10px;
  background: var(--surface);
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-points-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.point-icon {
  font-size: 2rem;
  color: var(--brand-600);
  flex-shrink: 0;
}
.point-content h3 {
  font-size: 1.2rem;
  margin: 0 0 5px 0;
  color: #333;
}
.point-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
/* こんな方におすすめ セクション */
.plan-recommended {
  background-color: #e6f2ff; 
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.plan-recommended h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #007BFF; /* タイトルもブルーで統一 */
  font-weight: bold;
}
.plan-recommended-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}
.plan-recommended-list li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  text-align: left;
}
/* アイコン風チェックマーク */
.plan-recommended-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #007BFF;
  font-weight: bold;
}
/* デメリット セクション */
.plan-demerit {
  background-color: #FFEEFF; 
  padding: 50px 20px;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.plan-demerit h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #FF0066; /* タイトルもブルーで統一 */
  font-weight: bold;
}
.plan-demerit p {
  font-size: 1.2rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 30px auto;
}


.table-contact-row td {
  text-align: center;
  padding: 15px 0;
}

/* --- スマホ表示時（幅768px以下） --- */
@media (max-width: 768px) {
  .plan-card-container  {
    flex-direction: column;
    align-items: center; /* 中央寄せ */
  }
  .plan-card {
    width: 90%;   /* 画面幅のほぼいっぱい */
    max-width:500px;
  }
  .plan-banner .btn {
    width: 100%;
    font-size: 1.2rem;
    padding: 16px;
  }
  .plan-points {
    padding: 30px 15px;
  }
  .plan-points-list li {
    flex-direction: column;
    text-align: left;
  }
  .point-icon {
    margin-bottom: 8px;
  }
}

.table-link {
  color: #ff4500;
  font-weight: bold;
  text-decoration: underline;
  transition: 0.2s;
}
.table-link:hover {
  color: #ff6347;
  text-decoration: none;
}


/* AIコンサル・ブログコンサルページ */
.services, .pricing {
  padding: 3rem 2rem;
}
.services h2, .pricing h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}
.service-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.service-item {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  flex: 1 1 250px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.pricing-table {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* FAQ アコーディオン用スタイル */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}
.faq-question {
  cursor: pointer;
  padding: 15px;
  font-weight: bold;
  background: #f9f9f9;
  position: relative;
}
.faq-question::after {
  content: "＋";
  position: absolute;
  right: 20px;
  font-size: 18px;
  transition: transform 0.3s;
}
.faq-question.active::after {
  content: "－";
}
.faq-answer {
  display: none;
  padding: 15px;
  background: #fff;
  animation: fadeIn 0.3s ease-in-out;
}
.faq-more-contact{
  text-align: center;
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* --- FAQ カテゴリタブ --- */
/* --- FAQ カテゴリタブ (メリハリ強調版) --- */
.faq-category-tabs {
    /* タブエリア全体にメリハリを付ける */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px; /* 間隔を少し広げる */
    margin: 30px auto;
    padding: 20px 15px;
    
    /* 背景をグラデーションにし、目立たせる */
    background: linear-gradient(135deg, #fff0f0, #fff); 
    border-radius: 12px;
    border: 2px solid #e74c3c; /* 赤系のボーダーを強調 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 影を付けて浮き上がらせる */
}

.faq-category-tabs a {
    display: block;
    padding: 10px 18px;
    
    /* タブ個別のデザイン */
    background: #fdfdff; /* タブ自体の背景 */
    color: #333;
    text-decoration: none;
    border-radius: 30px; /* カプセル型に */
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid #ffcccc; /* 薄いボーダー */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-category-tabs a:hover {
    /* ホバー時のデザインを強調 */
    background: #800000; /* ヘッダーのメインカラー */
    color: #fff;
    border-color: #800000;
    transform: translateY(-2px); /* 少し持ち上げる */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* カテゴリセクションの見出しはそのまま維持 */
.faq-category-h {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid #800000;
    color: #800000;
}

/* レスポンシブ対応 (2列表示を維持しつつ調整) */
@media (max-width: 768px) {
    .faq-category-tabs {
        gap: 8px;
        padding: 15px 10px;
        border-width: 1px;
    }
    .faq-category-tabs a {
        flex: 1 1 calc(50% - 16px); /* スマホで2列表示 */
        text-align: center;
        font-size: 0.9rem;
        padding: 10px 5px;
        border-radius: 20px;
    }
    .faq-category-h {
        font-size: 1.2rem;
        margin-top: 30px;
    }
}

/* 制作の流れ */
.flow-page {
  margin-bottom: 40px;
}

.flow-page .lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.flow-step {
  display: flex;
  align-items: center;   /* ← 縦位置を中央に揃える */
  background: #fff9e6; /* 柔らかい黄色ベース */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.flow-step:hover {
  transform: translateY(-3px);
}

.step-icon {
  width: 60px;              /* 横幅を固定 */
  height: 60px;             /* 高さを固定 */
  display: flex;            /* 中央寄せ */
  justify-content: center;
  align-items: center;
  font-size: 28px;          /* アイコンサイズ統一 */
  color: #ff9800;
  background: #fff;
  border-radius: 50%;
  margin-right: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.step-content h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #333;
}

.step-content p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .flow-step {
    flex-direction: row;  /* スマホでも横並び */
    align-items: center;  /* ← テキスト高さに対してアイコン中央寄せ */
  }
  .step-icon {
    margin-right: 15px;   /* アイコンとテキストの余白 */
    font-size: 28px;      /* アイコンサイズ調整（必要に応じて） */
    flex-shrink: 0;       /* アイコンが潰れないように固定 */
  }
  .step-content {
    flex: 1;              /* テキスト部分は残り幅を使用 */
  }
}

/* --- パートナー募集ページ --- */
.partner-page .lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

/* 募集要項カード */
.partner-requirements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.partner-card {
  background: #fffef6;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.partner-card i {
  font-size: 2.5rem;
  color: #ff9800;
  margin-bottom: 15px;
}

.partner-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

.partner-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* 応募方法 */
.partner-apply {
  text-align: center;
  margin-top: 40px;
}

.partner-apply h2 {
  margin-bottom: 15px;
}

.partner-apply p {
  margin-bottom: 20px;
  color: #555;
}

.btn-large {
  display: inline-block;
  background: linear-gradient(90deg, #ff9800, #ff5722);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-large:hover {
  background: linear-gradient(90deg, #ff5722, #e64a19);
}

/* --- ブログ一覧 --- */
.blog-page .lead {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1000px;  /* 横幅制限 */
  margin: 0 auto;     /* 中央寄せ */
}

.blog-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.blog-content {
  padding: 15px;
}
.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.blog-content .date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}
.blog-content .excerpt {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* ページナビ全体 */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  font-size: 14px;
}
/* リンク・ボタン共通 */
.wp-pagenavi a,
.wp-pagenavi span {
  display: inline-block;
  min-width: 36px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  color: #333;
  background: #fff;
  transition: all 0.2s ease;
}
/* ホバー時 */
.wp-pagenavi a:hover {
  background: #f8f8f8;
  border-color: #bbb;
  color: #000;
}
/* 現在ページ */
.wp-pagenavi .current {
  background: #b22222; /* メインカラー（ワインレッド系） */
  border-color: #b22222;
  color: #fff;
  font-weight: bold;
}
/* 前へ・次へ */
.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
  font-weight: bold;
  padding: 8px 14px;
}
/* 省略記号 (…) */
.wp-pagenavi .extend {
  border: none;
  background: none;
  color: #666;
  padding: 8px 10px;
}
/* スマホ対応（768px以下） */
@media (max-width: 768px) {
  .wp-pagenavi {
    display: flex;
    flex-wrap: wrap;           /* 折り返し許可 */
    justify-content: center;   /* 中央寄せ */
    gap: 6px;
  }

  .wp-pagenavi a,
  .wp-pagenavi span {
    flex: 0 1 auto;            /* 幅自動調整 */
    min-width: 32px;
    padding: 6px 10px;
  }
}



/* --- 詳細リンク --- */
.read-more {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: #ff9800;
  color: #fff;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.read-more:hover {
  background: #e68900;
}

/* --- ブログ詳細 --- */
.blog-detail h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.blog-detail .date {
  color: #888;
  margin-bottom: 20px;
}

.blog-main-img {
  width: 100%;
  max-height: auto;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 25px;
}

.blog-detail .content h2 {
  margin-top: 25px;
  font-size: 1.4rem;
  border-left: 5px solid #ff9800;
  padding-left: 10px;
  color: #333;
}

.blog-detail .content p {
  margin: 12px 0;
  line-height: 1.8;
  color: #444;
}

.back-to-blog {
  margin-top: 40px;
  text-align: center;
}

.back-to-blog a {
  color: #ff9800;
  font-weight: bold;
  text-decoration: none;
}

.back-to-blog a:hover {
  text-decoration: underline;
}


/* --- パンくずリスト --- */
.breadcrumb {
  font-size: 0.9rem;
  margin: 20px 0;
  color: #666;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.breadcrumb li::after {
  content: ">";
  margin-left: 5px;
  color: #aaa;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #0073e6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #333;
  font-weight: bold;
}

/* --- お知らせ一覧 --- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}
.news-item {
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}
.news-date {
  font-size: 0.85rem;
  color: #777;
}
.news-title {
  font-size: 1.2rem;
  margin: 5px 0;
}
.news-title a {
  text-decoration: none;
  color: #0073e6;
}
.news-title a:hover {
  text-decoration: underline;
}
.news-link a {
  font-size: 0.9rem;
  color: #0073e6;
  text-decoration: underline;
}

/* --- お知らせ詳細 --- */
.news-detail h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.news-detail-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.news-content p {
  margin: 10px 0;
}

/* --- サイトマップ --- */
.sitemap {
  margin: 40px 0;
}
.sitemap ul {
  list-style: none;
  padding-left: 15px;
}
.sitemap ul li {
  margin: 8px 0;
}
.sitemap ul li a {
  text-decoration: none;
  color: #0073e6;
  font-size: 1rem;
}
.sitemap ul li a:hover {
  text-decoration: underline;
}
.sitemap ul ul {
  margin-left: 20px;
  border-left: 2px solid #eee;
  padding-left: 15px;
}

/* --- お問い合わせフォーム --- */
.contact-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.contact-form p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #444;
}
.form-group .required {
  color: red;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #0073e6;
  outline: none;
}
/* 全体をflex化 */
.checkbox-group .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 10px;
}

/* 各チェックボックスブロック */
.checkbox-group .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafc;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  box-sizing: border-box;
  flex: 1 1 45%;  /* ここで2列化 */
  min-height: 48px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

/* hover効果 */
.checkbox-group .wpcf7-list-item:hover {
  background: #eef4fb;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.08);
}

/* チェックボックス調整 */
.checkbox-group input[type="checkbox"] {
  vertical-align: middle; /* 中央揃え */
  margin: 8px 5px 0 0; 
  width: 20px;
  height: 20px;
  accent-color: var(--brand-600);
}

/* テキスト部分 */
.checkbox-group .wpcf7-list-item-label {
  display: inline-flex;
  align-items: center;    /* テキストを中央揃え */
  font-size: 15.5px;
  color: #333;
  line-height: 1.3;
}

/* テキスト部分 */
.checkbox-group label {
  font-size: 15.5px;
  color: #333;
  line-height: 1.3;
}
.form-privacy {
  margin: 1.5em 0;
  font-size: 0.9rem;
  text-align: center;
}
.form-privacy a {
  color: var(--main-color, #0066cc);
  text-decoration: underline;
}
.form-privacy label {
  cursor: pointer;
}
.form-privacy input[type="checkbox"] {
  margin-right: 0.4em;
  vertical-align: middle;
}
.form-submit {
  text-align: center;
}
.form-submit button {
  background: #0073e6;
  color: #fff;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.form-submit button:hover {
  background: #005bb5;
}
/* --- 確認画面 --- */
.confirm-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.confirm-box dl {
  margin: 0;
}
.confirm-box dt {
  font-weight: bold;
  margin-top: 15px;
  color: #333;
}
.confirm-box dd {
  margin-left: 0;
  padding-left: 10px;
  border-left: 3px solid #0073e6;
  margin-bottom: 10px;
}
.confirm-buttons {
  text-align: center;
}
.confirm-buttons button {
  margin: 10px;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}
.btn-submit {
  background: #0073e6;
  color: #fff;
}
.btn-submit:hover {
  background: #005bb5;
}
.btn-back {
  background: #ccc;
  color: #333;
}
.btn-back:hover {
  background: #aaa;
}
/* --- 送信完了画面 --- */
.btn-home {
  display: inline-block;
  background: #0073e6;
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-home:hover {
  background: #005bb5;
}
/* スマホ対応 */
@media (max-width: 600px) {
  .checkbox-group {
    gap: 10px;
  }
  .checkbox-group label {
    flex: 1 1 100%;          /* 1列で大きくタップ */
    padding: 10px 18px;
    min-height: 25px;
  }
  .checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }

  .checkbox-group label {
    font-size: 16px;
  }
}

.com-banner-links {
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 20px; /* バナー間のスペース */
  margin-top: 40px;
  flex-wrap: wrap; /* スマホでは縦並び対応 */
}
.com-banner-links a {
  display: block;
  width: 100%;   /* PCでの横幅 */
  text-align: center;
}
.com-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.com-banner-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 10px;
}
.com-banner-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s;
}
.com-banner-item:hover img {
  transform: scale(1.05);
}
.com-banner-text {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 1rem;
}
/* --- スマホ対応 --- */
@media (max-width: 768px) {
  .com-banner-grid {
    grid-template-columns: 1fr; /* スマホでは1カラム */
  }
  .com-banner-item {
    border-radius: 0; /* 画面幅いっぱいに */
  }
  .com-banner-item img {
    border-radius: 0;
    width: 100%; /* 画面幅いっぱい */
  }
}

/* プライバシーポリシー */

.policy-section {
  margin-top: 40px;
  padding: 40px 20px;
  line-height: 1.8;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.policy-section h3 {
  margin-top: 40px;
  font-size: 1.2rem;
  color: #333;
  border-left: 4px solid #f1b100;
  padding-left: 10px;
}
.policy-section ul {
  list-style: disc;
  padding-left: 30px;
}
.policy-section address {
  margin-top: 10px;
  font-style: normal;
  line-height: 1.6;
}
/* レスポンシブ */
@media (max-width: 768px) {
  .policy-section {
    padding: 24px 12px;
  }
  .policy-content {
    font-size: 0.98rem;
  }
}


/* --- 上へ戻るボタン（文字入りVer） --- */
.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  /* 幅と高さの固定を削除し、余白で調整 */
  padding: 12px 20px; 
  background: #800000; /* メインカラー */
  color: #fff;
  font-size: 14px;     /* 文字サイズ */
  font-weight: bold;   /* 太字 */
  text-align: center;
  text-decoration: none;
  border-radius: 30px; /* 角丸（カプセル型） */
  z-index: 1050;       /* 固定ボタンより上、ドロワーより下 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  /* 文字が改行しないようにする */
  white-space: nowrap;
}

.page-top:hover {
  background: #a00000;
  transform: translateY(-5px);
}

/* 表示用クラス */
.page-top.show {
  opacity: 1;
  visibility: visible;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .page-top {
    bottom: 90px; /* 下部メニュー(約60-70px)に被らない位置 */
    right: 20px;
    padding: 10px 16px; /* 少し小さめに */
    font-size: 12px;
  }
}


/* --- 制作料金比較 --- */
.comp-table-wrapper {
  overflow-x: auto;
  margin-bottom: 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: relative;
}
.comp-subtitle {
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
  font-size: 1.5em;
  color: #007BFF;
}
/* 比較表スタイル */
.comparison-page { 
  margin-top: 40px;
}
.comparison-page table { 
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  background-color: white;
}
/* th, td 要素にスタイルを適用 */
.comparison-page th, .comparison-page td {
  padding: 15px 12px;
  text-align: center;
  border: none;
  border-right: 1px solid #f0f0f0; 
  border-bottom: 1px solid #f0f0f0; 
  vertical-align: middle;
}
/* ヘッダー行 */
.comparison-page thead th {
  background-color: #f8faff; 
  color: #333;
  font-weight: bold;
  border-bottom: 3px solid #007BFF; 
  position: sticky; 
  top: 0;
  z-index: 1;
}
/* 項目列 (一番左) - 左寄せと背景色を固定 */
.comparison-page th:first-child,
.comparison-page td:first-child {
  text-align: left; 
  background-color: #f8f8f8; 
  font-weight: bold;
  color: #555;
  border-right: 1px solid #ddd; 
}
/* AIプランのセルを最も強調 (2列目の td) */
.comparison-page td:nth-child(2) {
  background-color: #e8f3ff; 
  font-weight: bold;
  color: #0056b3;
  box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.1); 
}
/* AIプランのハイライトクラスをより強力に */
.comp-highlight {
  background-color: #007BFF !important; /* メインカラー */
  color: white !important; 
  font-size: 1.1em;
  padding: 18px 12px;
}
/* AIプランのヘッダー (2列目の th) */
.comparison-page thead th:nth-child(2) {
  background-color: #007BFF;
  color: white;
  font-size: 1.1em;
  border-bottom: 3px solid #0056b3;
}
/* 最終行と右端の罫線調整 */
.comparison-page tr:last-child td {
  border-bottom: none;
}
.comparison-page th:last-child, 
.comparison-page td:last-child {
  border-right: none;
}

.comp-note {
  text-align: left;
  font-size: 0.85em;
  color: #666;
  margin-left: 30px;
  margin-top: 10px;
}
.comp-card-group {
  max-width:1000px;
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  margin-left: auto; 
  margin-right: auto;
}
.comp-card {
  flex: 1;
  min-width: 280px;
  padding: 20px;
  border: 1px solid #FFC107;
  border-radius: 8px;
  background-color: #FFFBE6;
  box-sizing: border-box;
}
.comp-card h4 {
  color: #D39E00;
  margin-top: 0;
  font-size: 1.2em;
}
.comp-solution {
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  color: #007BFF;
  margin-top: 30px;
  margin-bottom: 20px;
}
.comp-testimonial-box {
  background-color: #F0FFF0;
  border-left: 5px solid #28A745;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}
.comp-quote {
    font-style: italic;
    margin-bottom: 10px;
}
.comp-customer-info {
  text-align: right;
  font-weight: bold;
  color: #28A745;
}
.comp-benefit-list {
  list-style-type: none;
  padding-left: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}
.comp-benefit-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 1.1em;
}
.comp-benefit-list li::before {
  content: "✔️";
  margin-right: 10px;
  color: #007BFF;
}
.comp-cta-box {
  text-align: center;
  background-color: #F8F9FA;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-top: 40px;
}
.comp-cta-message {
  font-size: 1.2em;
  margin-bottom: 20px;
}
.comp-button {
  display: inline-block;
  padding: 12px 25px;
  margin: 10px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}
.comp-primary {
  background-color: #007BFF;
  color: white;
  border: 1px solid #007BFF;
}
.comp-primary:hover {
  background-color: #0056b3;
}
.comp-secondary {
  background-color: white;
  color: #007BFF;
  border: 1px solid #007BFF;
}
.comp-secondary:hover {
  background-color: #f0f8ff;
}

/* FAQセクションのスタイル */
.comp-faq-group {
  margin-top: 20px;
  border-top: 2px solid #007BFF; /* メインカラーで強調 */
}
.comp-faq-item {
  margin-bottom: 10px;
  border: 1px solid #e9e9e9;
  border-top: none;
}
.comp-question {
  background-color: #f0f8ff; /* 薄い青で質問を目立たせる */
  color: #007BFF;
  font-weight: bold;
  padding: 15px 20px;
  border-bottom: 1px solid #e9e9e9;
  cursor: pointer;
}
.comp-answer {
  margin: 0px;
  padding: 15px 20px;
  background-color: white;
  line-height: 1.6;
  color: #333;
}

/* モバイル対応 (CSS Media Queries) */
@media (max-width: 768px) {
  .comp-table-wrapper::after {
    content: "← スクロール可能 →"; /* 案内テキスト */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 120px; /* 影の幅 */
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none; /* 下のテーブル操作を可能にする */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    color: #007BFF;
    text-shadow: 0 0 5px white;
    font-weight: bold;
    opacity: 0.8;
    z-index: 2;
  }
  .comp-card-group {
    flex-direction: column;
    max-width: none; 
  }
  .comp-card {
    width: 100%;
    min-width: unset;
  }
  .comp-button {
    display: block;
    margin: 10px 0;
  }

  .comparison-page th, .comparison-page td {
    padding: 10px 8px;
    font-size: 0.9em;
  }
  .comparison-page th:first-child,
  .comparison-page td:first-child {
    text-align: left;
  }

  .comp-benefit-list li {
    font-size: 1em;
  }
  .comp-cta-message {
     font-size: 1.1em;
  }

}



/* AIサンプル用CSS */
.works {
  margin-bottom: 0px;
}

/* メイン見出し */
.works .main_h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.works-notice {
  background: #f8f8f8;
  border-left: 4px solid #2c3e50;
  padding: 1rem;
  margin: 1rem 0 2rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* カテゴリータグ */
.work-category-tag {
  display: inline-block;
  background-color: #f0f0f0;
  color: #2c3e50;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  cursor: pointer;
}

/* フィルター用タグ */
.filter-tags {
  margin-bottom: 20px;
}
.filter-tags .filter-tag {
  display: inline-block;
  background-color: #3498db;
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 6px;
  margin: 0 6px 6px 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.filter-tags a {
  display: inline-block;
  padding: 8px 16px;
  background: #eee;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
  color: #333;
}
.filter-tags a:hover {
  background: #ddd;
}
.filter-tags a.active {
  background: #333;
  color: #fff;
}

/* グリッドレイアウト */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

/* 各事例ボックス */
.work-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.work-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.work-card:hover {
  transform: translateY(-4px);
}
.work-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.work-img.no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f0f0f0;
  color: #888;
  font-size: 16px;
  height: 200px;
}
.work-content {
  padding: 1rem 1.2rem;
}
.work-category {
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.work-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}
.work-demo a {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}
.work-demo a:hover {
  text-decoration: underline;
}
.work-tools {
  font-size: 0.85rem;
  color: #888;
}

/* CTAエリア（背景色付き） */
.cta-area {
  background: #f3f7ff;
  padding: 30px 20px;
  margin-top: 0px;
  margin-bottom: 30px;
  border-radius: 12px;
}

.cta-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.cta-lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #333;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cta-btn {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

/* プランボタン */
.cta-btn.plan {
  background: #3b6cff;
  color: #fff;
}

.cta-btn.plan:hover {
  opacity: 0.85;
}

/* お問い合わせボタン */
.cta-btn.contact {
  background: #ff784f;
  color: #fff;
}

.cta-btn.contact:hover {
  opacity: 0.85;
}

/* スマホ対応 */
@media screen and (max-width: 600px) {
  .cta-lead {
    font-size: 1.05rem;
  }
  .cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
  .work-img {
    height: 180px;
  }
  .work-content {
    padding: 0.8rem 1rem;
  }
}


/* --- キャンペーン・注目枠の追加 --- */
.campaign-box {
  text-align: center;
  border: 2px solid #e74c3c; /* キャンペーン用の赤 */
  background: #fff5f5;      /* 薄い赤背景 */
  padding: 30px 20px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 10px rgba(231, 76, 60, 0.1);
}

.campaign-title {
  color: #e74c3c;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.campaign-price-large {
  font-size: 2.2rem;
  color: #e74c3c;
  font-weight: bold;
  margin: 0 5px;
}


/* --- お客様の声 --- */
/* 写真がない場合のノーイメージ設定 */
.work-img.no-image {
  background: #f5f5f5;
  background-image: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.work-img.no-image::after {
  content: "NO IMAGE";
  font-size: 13px;
  color: #bbbbbb;
  font-weight: bold;
  letter-spacing: 0.1em;
}

/* アニメーション初期状態：全カードを透明にして少し下に配置 */
.work-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* JSでこのクラスがついた瞬間に表示される */
.work-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}