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;
}
br{display:none;}

/* ヘッダーを左右に分ける */
.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 {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}

/* 親メニューに相対位置 */
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 suto;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.submenu li a:hover {
  background: rgba(255,255,255,0.1);
}
/* ホバー時に表示 */
.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: 50px 0;
}

.contact-banner p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.contact-banner .btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff7f50, #ff4500);
  color: #fff;
  font-size: 1.4rem;   /* 大きめ文字 */
  font-weight: bold;
  padding: 20px 40px;  /* ボタンを大きく */
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.contact-banner .btn:hover {
  background: linear-gradient(90deg, #ff9966, #ff5e00);
  transform: scale(1.05);
}


/* 当社について（トップページ用） */
.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;
  }
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  table-layout: fixed;
  word-wrap: break-word;
  background: #fff;
}

.company-table th,
.company-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

/* プラン紹介 */
.top-plan-section {
  background: linear-gradient(135deg, #ffebee, #ffe0b2); /* グラデーション */
  color: #333;
  padding: 60px 20px;
  border-radius: 10px;
  margin: 60px auto;
}

.top-plan-section h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
}
.top-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.top-plan-banner {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  color: #fff;
}
.top-plan-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s;
}
.top-plan-banner:hover img {
  transform: scale(1.05);
}
.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 h4 {
  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;
}


/* --- バナー --- */
.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%; /* 画面幅いっぱい */
  }
}


/* ブログセクション全体 */
.blog-section {
  background: linear-gradient(135deg, #fffde7, #e6f4fa); /* グラデーション */
  padding: 60px 20px;
  text-align: center;
  margin: 60px auto 0 auto;
}

.blog-section h3 {
  text-align: center;
  font-size: 2rem;
  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;
}
@media (max-width: 768px) {
  .blog-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .blog-box {
    min-width: 80%; /* スマホで見やすい大きさ確保 */
    scroll-snap-align: start;
  }
}

.blog-box:hover {
  transform: translateY(-5px);
}

.blog-box img {
  width: 100%;
  height: 220px; /* 大きめに */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.blog-box h4 {
  font-size: 1.4rem; /* 少し大きく */
  margin-bottom: 10px;
}

.blog-box p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.blog-box a {
  color: #3498db;
  font-weight: bold;
  text-decoration: none;
}

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

/* フッター */
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-column h4 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #fff;
}
.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;
}

/* スマホ用：非表示 */
@media (max-width: 768px) {
  .fixed-buttons {
    display: none;
  }
}

/* スマホ用：画面下にフローティングボタン */
@media (max-width: 768px) {
  .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-container  {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}
.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-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;
}
.even-section {
  background: #fafcff; /* 青みがほんのり */
  padding: 30px 20px;
  border-radius: 10px;
  justify-content: center;
  margin-top: 40px;
}
.even-section p {
  margin: 0;
}
/* こんな方におすすめ セクション */
.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-recommend-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.plan-recommend-list li {
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  padding-left: 25px;
  text-align: left;
}

/* アイコン風チェックマーク */
.plan-recommend-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #007BFF;
  font-weight: bold;
}


.contact-banner {
  text-align: center;
  margin: 20px 0;
}

.contact-banner .btn {
  display: inline-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);
}

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

/* --- スマホ表示時（幅768px以下） --- */
@media (max-width: 768px) {
  .plan-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;
  }
}

.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;
}
/* こんな方におすすめ */
.recommended {
  max-width: 1000px;
  margin: 0 auto; /* 中央寄せ */
  padding: 50px 20px;
  background-color: #ecf0f1;
}
.recommended h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
}
.recommended ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 1.1em;
  list-style: disc inside;
}
.recommended ul li {
  margin-bottom: 10px;
}
.plan-name {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 250px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.plan-name .plan-price {
  font-size: 1.5rem;
  color: #007bff;
  margin: 1rem 0;
}


/* 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;}
}

/* 制作の流れ */
.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;
}
.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;
}


.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%; /* 画面幅いっぱい */
  }
}
