.btn {
  white-space: normal;
}

a {
  color: #333;
}
a:hover {
  opacity: 0.8;
  text-decoration: none;
} /* 修正後：#back-to-top に統一（常時表示・右下固定） */
#back-to-top {
  position: fixed !important;
  right: 16px !important;
  bottom: 16px !important;
  z-index: 9999 !important;

  display: inline-block !important;
  margin: 0 !important;
  text-align: initial !important; /* 親の中央寄せを打ち消し */

  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  opacity: 1; /* 常に表示 */
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#back-to-top img {
  width: 64px !important;
  height: 64px !important;
  max-width: none !important; /* グローバルの max-width:100% を無効化 */
  margin: 0 !important;
  display: block !important;
}

@media (max-width: 480px) {
  #back-to-top img {
    width: 72px !important;
    height: 72px !important;
  }
}
/* Accordion Buttons - 3 Color Variants */
/* Author: 篠山功用テンプレート / Date: 2025-12-22 */

/* ===== ベーススタイル ===== */
.accordion-button {
  --bg: #bee122; /* 背景色（デフォルト：黄緑） */
  --fg: #222; /* 文字色 */
  --bg-hover: #a8cc1d; /* ホバー背景色 */

  width: 100%;
  padding: 8px;
  text-align: left;
  background-color: var(--bg);
  color: var(--fg);
  border: none;
  outline: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  font-size: 18px; /* 初期値18 */
  height: auto;
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.5;
}

/* キーボード操作の視認性 */
.accordion-button:focus-visible {
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 0 6px rgba(0, 0, 0, 0.25);
}

/* 開閉アイコン（＋／−） */
.accordion-button::after {
  content: "+";
  float: right;
  font-weight: 700;
}
.accordion-button.is-open::after {
  content: "−";
}

/* ホバー／フォーカス */
.accordion-button:hover,
.accordion-button:focus {
  background-color: var(--bg-hover);
}

/* ===== バリエーション：3色 ===== */
/* 1) グリーン系（既定） */
.accordion-button.is-green {
  --bg: #bee122;
  --fg: #222;
  --bg-hover: #a8cc1d;
}

/* 2) ブルー系 */
.accordion-button.is-blue {
  --bg: #2b5da8; /* 落ち着いた紺 */
  --fg: #ffffff;
  --bg-hover: #224c8c;
}

/* 3) グレー系 */
.accordion-button.is-gray {
  --bg: #6b7280; /* Slate Gray */
  --fg: #ffffff;
  --bg-hover: #5b6170;
}

/* ===== レスポンシブ配慮（フォントサイズ調整） ===== */
@media (max-width: 480px) {
  .accordion-button {
    font-size: 16px;
    padding: 10px; /* モバイルはタップしやすく */
  }
}

/* ===== アコーディオンの内容（任意） ===== */
.accordion-panel {
  display: none; /* JSで開閉制御する想定 */
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-top: none; /* ボタンと一体感 */
  background-color: #fff;
  color: #111827;
  line-height: 1.7;
}
.accordion-panel.is-open {
  display: block;
}

/* 境界の重なり対策 */
.accordion-item + .accordion-item {
  margin-top: 8px;
}

/* ============================
   ヘッダー全体
============================ */
.ms-header {
  background: #0f3a53;
  color: #fff;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-inner {
  width: 95%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴ */
.header-logo a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

/* PCナビゲーション（横並び） */
.header-nav ul {
  display: flex;
  gap: 25px;
}

.header-nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

/* ============================
   スマホ用ハンバーガー
============================ */
.header-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.header-menu-toggle span {
  background: #fff;
  height: 3px;
  width: 25px;
  border-radius: 3px;
}

/* ============================
   スマホ表示制御
============================ */
@media screen and (max-width: 768px) {
  /* PCナビを非表示 → ハンバーガー表示 */
  .header-nav {
    display: none;
    width: 100%;
    background: #0f3a53;
    padding: 15px 0;
  }

  .header-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .header-menu-toggle {
    display: flex;
  }

  /* 展開時クラス */
  .header-nav.active {
    display: block;
  }
}
/* ============================
   ファーストビュー（hero）
============================ */
.ms-hero {
  background: linear-gradient(180deg, #0f3a53 0%, #19516f 100%);
  color: #fff;
  padding: 70px 20px;
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: auto;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-buttons a {
  display: inline-block;
  background: #ffffff;
  color: #0f3a53;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 17px;
  min-width: 160px;
}

.hero-buttons a:hover {
  background: #e6eef2;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 26px;
  }

  .hero-buttons a {
    width: 100%;
  }
}

.catch {
  text-align: center; /* 中央寄せ */
  font-size: 2rem; /* かなり大きめ（スマホでも見やすい） */
  font-weight: 800; /* 極太 */
  background-color: #003366; /* 濃紺系で業務システムらしい信頼感 */
  color: white; /* 文字は白 */
  padding: 18px 10px; /* 上下しっかり余白 */
  margin: 0 0 20px 0; /* 下に余白 */
  letter-spacing: 2px; /* 文字間を広げて堂々と */
}
.top-menu {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  gap: 12px; /* ボタン間の間隔 */
  margin: 8px 10px;
}

.top-menu a {
  font-size: 0.9rem; /* 小さめ表記 */
  padding: 6px 12px;
  background-color: #0055aa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.top-menu a:hover {
  background-color: #003f7f;
}
/* =========================
   共通 資料請求CTAボタン
   ========================= */

.cta-button {
  display: inline-block;
  background-color: #c40000;
  color: #ffffff;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

/* ホバー */
.cta-button:hover {
  opacity: 0.9;
  color: #ffffff;
}

/* フォーカス（アクセシビリティ） */
.cta-button:focus {
  outline: 2px solid #003366;
  outline-offset: 2px;
}
/* =========================
   ソフト一覧：PC常時表示 / スマホ開閉
   ========================= */

/* summary 基本装飾 */
.footer-accordion summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
  font-weight: bold;
  padding: 8px 0;
}

/* デフォルト三角を消す */
.footer-accordion summary::-webkit-details-marker {
  display: none;
}

/* ＋ − アイコン（スマホ用） */
.footer-accordion summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 8px;
  font-size: 1.1rem;
  color: #003366;
}

.footer-accordion[open] summary::after {
  content: "−";
}

/* =========================
   PCでは常時一覧表示
   ========================= */
@media screen and (min-width: 769px) {
  .footer-accordion {
    pointer-events: none; /* 開閉無効 */
  }

  .footer-accordion summary::after {
    display: none; /* ＋ − 非表示 */
  }

  .footer-accordion > * {
    display: block; /* 常に中身表示 */
  }
}
