:root {
    --base-text: #232323;
    --bg: #fff;
    --primary-color: #27b66e;
    --secondary-color: #f87851;
}
body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--base-text);
    background: #fff;
    line-height: 1.9;
    padding-top: 84px;
}
@media (min-width: 768px) {
  body {
    padding-top: 0; /* ← PC用 */
  }
}
html, body {
    overflow-x: hidden;
}
header, .navbar {
    position: relative;
    overflow: visible !important;
}


.navbar-nav {
    position: relative;
}
/* Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(6px);
    transition: box-shadow .2s ease;
}
.navbar-custom.scrolled {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
}
.navbar-brand img {
    height: 46px;
}
.menu-center .navbar-nav {
    flex-direction: row;
    gap: .25rem .5rem;
}
.menu-center .nav-link {
    padding: .5rem .9rem;
    font-weight: 500;
    color: var(--base-text);
}
.menu-center .nav-link:hover {
    color: var(--primary-color);
}
#siteHeader {
    position: fixed;
    width: 100%;
}
/* ▼ PC だけ hover で開く */
@media (min-width: 1200px) {
    .hover-dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
.navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 220px;
    /* 好みで調整可能 */
    width: auto;
    /* 親要素に引っ張られない */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
@media (min-width: 1200px) {
    .hover-dropdown:hover>.dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .hover-dropdown .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all .15s ease;
    }
}
.navbar-nav .nav-item {
    position: relative;
}
.navbar-nav .nav-link {
    white-space: nowrap;
}
.dropdown-item {
    padding: .55rem 1.2rem;
}
.dropdown-item:hover {
    background: #f5fbf4;
    color: var(--primary-color);
}
/* Buttons */
.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .9rem 1.5rem;
}
.btn .bi {
    line-height: 0;
    vertical-align: -.125em;
}
.btn .bi+span {
    margin-left: .6rem;
}
.cta-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bi-primary {
  color: var(--primary-color);
}
/* =========================
   ボタン共通スタイル（統一版）
   ========================= */
.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .9rem 1.8rem;
    transition: all .25s ease;
}
/* メインCTA（緑） */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background: #2EB874;
    border-color: #2EB874;
    transform: translateY(-2px);
}
/* サブCTA（オレンジ） */
.btn-secondary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background: #E96D46;
    border-color: #E96D46;
    transform: translateY(-2px);
}
/* アウトライン（白 × 緑 / 弱CTA） */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}
/* サイズ調整 */
.btn-lg {
    padding: 1rem 2.4rem;
    font-size: 1rem;
}
.btn-sm {
    padding: .55rem 1.2rem;
    font-size: .85rem;
}
/* Offcanvas */
.offcanvas-full {
    --bs-offcanvas-width: 80vw;
    background: #fff;
}
.offcanvas-nav .list-group-item {
    border: 0;
    font-weight: 500;
    color: var(--base-text);
}
.offcanvas-nav .list-group-item:hover {
    color: var(--primary-color);
}
/* Hero */
.hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
    text-align: center;
}
@media(min-width:768px) {
    .hero {
        margin-top: 100px;
    }
}
.hero-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 600;
    color: #232323;
    font-size: 2rem;
    letter-spacing: .01em;
}
.hero-lead {
    color: var(--primary-color);
    font-size: .9rem;
    font-weight: 600;
}
@media(min-width:768px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-lead {
        font-size: 1rem;
    }
}
/* Hero section 専用の DL ボタン色変更 */
.hero #dlBtn {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}
/* Hero background shape */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50%;
    background: var(--primary-color);
    border-radius: 50px;
    z-index: -1;
    margin: auto;
    width: 1400px;
    max-width: 100%;
}
/* IPO / Pマーク：右上に配置 */
.hero-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-badges img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
}
/* スマホでは少し小さめに */
@media (max-width: 576px) {
    .hero-badges img {
        height: 28px;
    }
    .hero-badges {
        top: 10px;
        right: 10px;
    }
}
/* Hero 背景 */
.system-hero {
  position: relative;
}

/* バッジ */
.system-badge {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: .45rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

/* タイトル */
.system-title {
  color: #232323;
}

/* リード文 */
.system-lead {
  max-width: 760px;
  font-size: 1rem;
  color: #444;
}

@media (min-width: 768px) {
    .system-hero {
        margin-top: 100px;
    }
}

/* Form controls spacing & placeholder */
.form-floating-group {
    position: relative;
    margin-bottom: .75rem;
}
.form-floating-group label {
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: .75rem;
    color: #232323;
    pointer-events: none;
}
.form-floating-group input,
.form-floating-group select {
    padding-top: 1.65rem;
    padding-bottom: .5rem;
    font-size: .9rem;
}
::placeholder {
    color: #aaa !important;
    opacity: 1;
}
/* Hamburger label under icon */
.navbar-toggler.toggler-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.toggler-label {
    font-size: .65rem;
    line-height: 1;
    color: var(--base-text);
    opacity: .75;
    margin-top: 2px;
}
/* Lead section */
.lead-section {
    background: #fff;
    margin-top: -70px;
    box-shadow: 0px -22px 22px -22px rgba(0, 0, 0, .2);
}
.lead-section h2 {
    margin-bottom: 3rem;
}
.feature-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
    height: 100%;
    background: #fff;
    text-align: left;
}
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    /* ← アイコンブロック自体をセンタリング */
    background: rgba(51, 199, 129, .12);
}
.feature-icon .bi {
    font-size: 1.4rem;
    color: var(--primary-color);
}
.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.feature-icon {
    margin-bottom: 1rem;
    text-align: center;
}
.lead-section .feature-icon {
    width: 180px;
    height: 180px;
    background: none;
}
.lead-section .feature-icon img {
    width: 160px !important;
    height: auto !important;
}
.feature-card h3 {
    margin-bottom: .5rem;
}
.feature-card p {
    margin: 0;
    line-height: 1.9;
    color: #232323;
    font-size: .95rem;
}
/* クリッカブルなカードだけホバーエフェクトを適用 */
.feature-card--clickable {
    transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.feature-card--clickable:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    opacity: 0.96;
}
/* スマホは hover 無効 */
@media (hover: none) {
    .feature-card--clickable:hover {
        transform: none;
        box-shadow: none;
        opacity: 1;
    }
}
.point-bubble {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .75rem;
    border-radius: 999px;
    margin-bottom: .8rem;
    letter-spacing: .5px;
}
.point-bubble {
    position: relative;
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .4rem .9rem;
    border-radius: 12px;
    margin-bottom: .9rem;
    letter-spacing: .5px;
}
/* 吹き出しのしっぽ */
.point-bubble::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 18px;
    /* ←お好みで調整可能 */
    width: 0;
    height: 0;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}
/* セクション背景：primary-colorの超淡いトーン */
.bg-primary {
    background-color: var(--primary-color)!important;
}
.bg-soft-primary {
    background-color: #f5fbf4;
}
/* 比較表デザイン */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .95rem;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}
.comparison-table th,
.comparison-table td {
    padding: 1rem .75rem;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
}
.comparison-table th {
    background: #f5fbf4;
    /* 淡いグリーン */
    font-weight: 700;
}
.comparison-table tr:last-child td {
    border-bottom: 0;
}
.comparison-table td.symbol {
    font-size: 1.3rem;
    /* ←お好みで 1.2〜1.5rem */
    font-weight: 700;
    /* ←視認性UP（不要なら削除OK） */
}
.comparison-badge {
    display: inline-block;
    font-weight: 700;
    border-radius: 6px;
    padding: .2rem .6rem;
    font-size: .85rem;
    color: #fff;
}
/* 比較表：会社名の補足テキスト */
.compare-subtext {
    font-size: .75rem;
    margin-top: .3rem;
    white-space: nowrap;
}
.bg-wte {
    background: var(--primary-color);
}
.bg-a {
    background: #FFC20F;
}
.bg-b {
    background: #6877CE;
}
.bg-c {
    background: #ff7f58;
}
/* 補足ボックス */
.compare-note {
    background: #f5fbf4;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    font-size: .85rem;
    /* ← 全体を少し小さく */
    line-height: 1.7;
    /* ← 読みやすさ確保 */
}
.compare-note h4 {
    font-size: 1rem;
    /* ← タイトルも控えめに */
    margin-bottom: .8rem;
}
.case-label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: .05em;
    margin-bottom: .3rem;
}
.lead-case {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.8;
    color: #232323;
}
.case-row img {
    height: 300px;
    object-fit: cover;
}
/* Card layout */
.case-card {
    border-radius: 16px;
    background: #fff;
}
.case-card.bg-soft-primary {
    background-color: #f5fbf4;
}
/* 写真の統一感 */
.case-photo {
    max-height: 260px;
    object-fit: cover;
}
/* Caseバッジ（Pointと同じ吹き出しデザイン） */
.case-badge {
    display: inline-block;
    position: relative;
    background: var(--primary-color);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .45rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    letter-spacing: .5px;
}
.case-badge::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 18px;
    width: 0;
    height: 0;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}
/* 名前表記 */
.case-name {
    font-size: .95rem;
}
/* 白地 × primary-color の弱めボタン */
.btn-outline-wte {
    display: inline-block;
    padding: .55rem 1.2rem;
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: all .2s ease;
}
.btn-outline-wte:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
}
/* 導入事例ボタン（無料相談ボタンと統一） */
.case-more-btn {
    padding: 1rem 2.2rem;
    font-weight: 700;
    border-radius: 999px;
    font-size: 1rem;
    transition: all .25s ease;
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.case-more-btn:hover {
    background-color: #2EB874;
    /* 少し濃いprimary */
    border-color: #2EB874;
    transform: translateY(-2px);
}
/* ▼▼ mini case (下の横スクロール事例) 専用CSS ▼▼ */
/* セクション背景（薄い緑） */
.mini-cases-section {
    background: #f5fbf4;
}
/* スクロールバーを消す */
.mini-cases-slider::-webkit-scrollbar {
    display: none;
}
/* カード本体 */
.mini-case-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    flex: 0 0 180px;
    padding: 0;
    overflow: hidden;
    transition: transform .3s ease;
}
.mini-case-card:hover {
    transform: translateY(-3px);
}
.mini-case-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 15px;
}
/* 正方形画像 */
.mini-case-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.mini-case-card h4,
.mini-case-card p {
    white-space: nowrap;
    /* ← 改行しない */
    overflow: hidden;
    /* ← はみ出しを隠す */
    text-overflow: ellipsis;
    /* ← … をつける */
    width: 100%;
    /* ← 安定表示 */
    display: block;
}
/* タイトル（サイト名） */
.mini-case-card h4 {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 10px 0 2px;
    padding: 4px 8px;
    /* ← 微調整（省略が安定する） */
    display: block;
}
/* URL */
.mini-case-card p {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 0.65rem;
    color: #878787;
    margin: 0;
    padding: 0 8px;
    display: block;
}
.mini-cases-carousel .swiper-slide {
    width: 180px !important;
    /* ← これが必須 */
}
/* カードの基本形 */
.flow-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.4rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    height: 100%;
}
/* STEP */
.flow-step {
    font-size: .85rem;
    font-weight: 700;
    color: #ff7f58;
    /* 旧サイト赤系 */
    margin-bottom: .8rem;
    text-align: center;
}
.flow-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: .9rem;
}
.flow-icon img {
    display: block;
    margin: 0 auto;
}
/* アイコン */
.flow-icon img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: .9rem;
    opacity: .9;
}
/* タイトル */
.flow-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
/* テキスト */
.flow-text {
    font-size: .9rem;
    line-height: 1.7;
    margin: 0;
}
/* 右の白い三角（STEP1〜3のみ）*/
.flow-arrow {
    position: absolute;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 18px 0 18px 18px;
    border-color: transparent transparent transparent #fff;
    border-radius: 2px;
}
/* SP表示では矢印を下方向へ変更 */
@media (max-width: 768px) {
    .flow-arrow {
        right: 50%;
        left: 50%;
        top: auto;
        bottom: -22px;
        transform: translateX(-50%) rotate(90deg);
    }
    .col-md-3 {
        margin-bottom: 2.5rem;
    }
}
/* FAQ セクション */
.faq-section {
    padding: 60px 0;
    background: #ffffff;
}
/* タイトル */
.faq-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
}
/* アイテム枠 */
.faq-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin: 0 auto 16px;
    max-width: 880px;
    overflow: hidden;
}
/* 質問ボタン */
.faq-question {
    width: 100%;
    background: #f5fbf4;
    border: none;
    padding: 18px 20px 18px 65px;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}
/* 吹き出し風 Q バッジ */
.faq-q-badge {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #3bb27e;
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 吹き出しの三角 (左側に小さく出す) */
.faq-q-badge::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #3bb27e;
}
/* ＋ アイコン */
.faq-question::after {
    content: "＋";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.4rem;
    color: #3bb27e;
    /* primary-color */
    transition: transform .2s ease;
}
.faq-item.open .faq-question::after {
    content: "−";
}
/* 回答 */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 24px 20px;
}
.faq-answer p {
    margin: 0;
    line-height: 1.7;
    font-size: 0.95rem;
    padding: 10px 0;
}
/* 開くボタン（右下） */
#wte-chatbot-open {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #3bb27e;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    z-index: 999;
}
/* チャット本体 */
#wte-chatbot {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 400px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 15px rgba(0, 0, 0, .2);
    display: none;
    flex-direction: column;
    z-index: 999;
}
/* ヘッダー */
#wte-chatbot-header {
    background: #3bb27e;
    color: #fff;
    padding: 12px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
#wte-chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
/* 本文 */
#wte-chatbot-body {
    padding: 14px;
    max-height: 340px;
    overflow-y: auto;
}
@media (max-width: 768px) {
    #wte-chatbot {
        max-height: 75vh;
    }
}
/* メッセージ */
.chatbot-msg {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.bot {
    background: #f5fbf4;
    border-left: 4px solid #3bb27e;
}
/* 質問ボタン */
.chatbot-q-btn {
    background: #fff;
    border: 1px solid #3bb27e;
    color: #3bb27e;
}
.chatbot-q-btn:hover {
    background: #eafaf3;
}
/* フッターリンク */
.chatbot-footer {
    text-align: right;
    margin-top: 14px;
}
.chatbot-footer a {
    font-size: 0.8rem;
    color: #3bb27e;
    text-decoration: underline;
}
.chat-launcher {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #3bb27e;
    color: #fff;
    padding: 12px 18px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    cursor: pointer;
    z-index: 1000;
    opacity: .95;
    transition: transform .25s ease, opacity .25s ease;
}
.chat-launcher img {
    width: 20px;
    height: 20px;
}
.chat-launcher:hover {
    transform: translateY(-3px);
    opacity: 1;
}
/* --- BOTメッセージ（吹き出し） --- */
.chatbot-msg.bot {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
}
/* アイコン画像 */
.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
/* 吹き出し本体 */
.chatbot-bubble {
    background: #f5fbf4;
    border-left: 4px solid var(--primary-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
}
/* 吹き出しの三角 */
.chatbot-bubble::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 14px;
    border-width: 7px;
    border-style: solid;
    border-color: transparent #f5fbf4 transparent transparent;
}
/* 質問ボタンを小型・横並びに */
.chatbot-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.chatbot-q-btn {
    font-size: 0.78rem;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}
/* スマホは1列 */
@media (max-width: 360px) {
    .chatbot-q-btn {
        flex: 1 1 100%;
    }
}
/* botの吹き出し行全体 */
.chatbot-greet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
/* botアイコン */
.chatbot-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e5e5;
}
/* 吹き出し本体 */
.chatbot-bubble {
    background: #ffffff;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 260px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
/* 吹き出しの三角部分 */
.chatbot-bubble::before {
    content: "";
    position: absolute;
    left: -17px;
    top: 13px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--primary-color);
}
.chatbot-bubble::after {
    content: "";
    position: absolute;
    left: -7px;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 9px solid #fff;
}
/* ボット吹き出し（回答表示用） */
.bot-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.bot-bubble .bot-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bot-bubble .bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid #eee;
    max-width: 75%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}
/* 共通：ボットの吹き出し */
.chat-bubble-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}
.chat-bubble-wrap .bot-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
/* 吹き出し（greeting と完全統一） */
.chat-bubble {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    max-width: 78%;
    position: relative;
}
/* 左に向いた吹き出しの “三角” を再現 */
.chat-bubble::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 14px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}
.chat-input-wrap {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
}
#chatUserInput {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
#chatSendBtn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
/* お問い合わせセクション */
.contact-section {
    background: #f5fbf4;
}
/* 左側チェックリスト */
.contact-features li {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-features i {
    color: var(--primary-color);
    /* ← primary-color を反映 */
    font-size: 1.1rem;
}
/* 2×2 キャプチャ画像 */
.capture-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.capture-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    background: #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}
/* 右側フォームカード（白背景） */
.contact-card {
    background: #ffffff !important;
    border-radius: 16px;
}
.contact-card input,
.contact-card select,
.contact-card textarea {
    border-radius: 8px;
    padding-top: 1.65rem;
    padding-bottom: .5rem;
    font-size: .9rem;
}
.contact-card input[type=checkbox]{
    padding: 0;
}
.contact-card button,
.contact-card .cta-button {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 700;
    padding: 0.9rem;
    border-radius: 999px;
    width: 100%;
}
.contact-card button:hover {
    opacity: 0.9;
}
/* Mautic のフォーム調整 */
.contact-mautic-form .mauticform-input,
.contact-mautic-form .mauticform-selectbox {
    border-radius: 8px !important;
    padding: 0.8rem !important;
}
.contact-mautic-form .mauticform-button {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
    padding: 0.9rem !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
}
.contact-mautic-form .mauticform-button:hover {
    opacity: .9;
}

/* ▼ カードベース */
.sys-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.2rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.04);
  transition: .25s ease;
  position: relative;
}

.sys-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

/* ▼ feature-icon を上書きせず、必要部分だけ拡張 */
.sys-card .feature-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.sys-card .feature-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* ▼ タイトル・本文・リンク */
.sys-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.sys-text {
  font-size: .8rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: left;
}


/* ▼ 小型ボタン（pill style） */
.sys-btn {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  background: var(--primary-color);
  color: #fff;
  padding: .25rem .8rem;
  border-radius: 999px;
  transition: .2s;
}

.sys-card:hover .sys-btn {
  opacity: .9;
}


/* ▼ カード全体をクリック可能に */
.sys-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.seminar-meta {
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.9rem;
}

.seminar-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.seminar-meta-list li {
  line-height: 1.9;
}

/* カテゴリーカード：ホバーアニメーション */
.category-card-sm {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card-sm:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.badge-primary {
  background-color: var(--primary-color);
  color: #fff;
}

/* =========================
   Whitepaper card hover effect
   ========================= */

/* カード本体 */
.whitepaper-section .card {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

/* hover時 */
.whitepaper-section .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
  opacity: 0.98;
}

/* 画像をほんのり強調 */
.whitepaper-section .card img {
  transition: transform 0.35s ease;
}
/* ボタンを少しだけ主張 */
.whitepaper-section .card:hover .btn {
  background: var(--primary-color);
  color: #fff;
}

/* outline-primary の hover を card hover にも反映 */
.whitepaper-section .card:hover .btn-outline-primary {
  border-color: var(--primary-color);
}
/* =========================
   Seminar card hover
   ========================= */
.seminar-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.seminar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,.14);
}

.seminar-card img {
  transition: transform .35s ease;
}

/* outline-primary の hover を card hover にも反映 */
.seminar-section .card:hover .btn-outline-primary {
  border-color: var(--primary-color);
}

/* SPでは hover 無効 */
@media (hover: none) {
  .seminar-card:hover {
    transform: none;
    box-shadow: none;
  }
  .seminar-card:hover img {
    transform: none;
  }
}

.mauticform-errormsg{
  position: absolute;
  top: 6px;
  color: #f00;
  font-weight: 600;
  font-size: 12px;
  right: 3px;
}

/* 同意チェック：中央寄せ＋間隔調整 */
#mauticform_wteziliaoqingqiufomu_ge_ren_qing_baono_quri_xi {
  display: flex;
  justify-content: center; /* ← 全体をセンターに */
  align-items: center;
  gap: 0.5rem;             /* ← チェックと文字の距離 */
}

/* チェックボックスのズレ防止 */
#mauticform_wteziliaoqingqiufomu_ge_ren_qing_baono_quri_xi
.form-check-input {
  margin: 0;
  position: static;        /* ← 超重要 */
}

/* ラベルの余白リセット */
#mauticform_wteziliaoqingqiufomu_ge_ren_qing_baono_quri_xi
.form-check-label {
  margin: 0;
}
/* お問い合わせフォーム：同意チェック中央寄せ */
#mauticform_wteowenihewasefomu_ge_ren_qing_baono_quri_xi {
  display: flex;
  justify-content: center; /* 全体を中央 */
  align-items: center;
  gap: 0.5rem;             /* チェックと文字の距離 */
  position: relative;
}

/* チェックボックスのズレ防止 */
#mauticform_wteowenihewasefomu_ge_ren_qing_baono_quri_xi
.form-check-input {
  margin: 0;
  position: static;        /* ← absolute を完全にやめる */
}

/* ラベルの余白調整 */
#mauticform_wteowenihewasefomu_ge_ren_qing_baono_quri_xi
.form-check-label {
  margin: 0;
}

/* エラーメッセージも中央に */
#mauticform_wteowenihewasefomu_ge_ren_qing_baono_quri_xi
.mauticform-errormsg {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.footer-link { color:#fff; text-decoration:none; }
.footer-link:hover { color:#fff; text-decoration: underline;}