﻿/* ==========================================================================
   FullBetManagement コーポレートサイト 共通スタイル
   配色方針: ロゴのクリムゾンレッド (#AA0012) とブラックを主軸に、
   温かみのあるゴールドと淡いグリーングレーを組み合わせる。
   ========================================================================== */

:root {
  --navy-900: #170004;
  --navy-800: #AA0012;
  --navy-700: #C0182A;
  --navy-600: #7F000D;
  --gold-500: #AA0012;
  --gold-400: #E05260;
  --gold-100: #F7E7E9;
  --brand-red: #AA0012;
  --bg-soft: #FAF4F5;
  --text-main: #171717;
  --text-sub: #666064;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-mincho {
  font-family: 'Noto Sans JP', Arial, sans-serif;
}

button,
input,
select,
textarea {
  font-family: 'Noto Sans JP', Arial, sans-serif;
}

/* ---------- 共通パーツ ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-500);
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -10px rgba(170, 0, 18, 0.45);
}
.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold-500);
  color: #fff;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px -10px rgba(170, 0, 18, 0.45);
}
.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid var(--navy-800);
  color: var(--navy-800);
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.btn-outline:hover {
  background: var(--navy-800);
  color: #fff;
}

/* ---------- ヘッダー ---------- */
#site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#site-header.is-scrolled {
  box-shadow: 0 4px 20px -8px rgba(64, 0, 7, 0.22);
}

/* ロゴは左、主要ナビゲーションは右に固定 */
#site-header > div:first-child > nav {
  margin-left: auto;
}
#site-header > div:first-child > nav + div {
  display: none !important;
}

.nav-link {
  position: relative;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gold-500);
  transition: width 0.25s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.is-current {
  color: var(--navy-800);
}
.nav-link.is-current::after {
  width: 100%;
}

/* ヘッダーの「お問い合わせ」をCTAとして強調 */
#site-header nav a[href="contact.html"] {
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(170, 0, 18, 0.58);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
#site-header nav a[href="contact.html"]::after {
  display: none;
}
#site-header nav a[href="contact.html"]:hover {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(170, 0, 18, 0.62);
}
#mobile-nav a[href="contact.html"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
}

/* ---------- フェードインアニメーション ---------- */
.fade-in-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ヒーロー ---------- */
.hero-overlay {
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.38) 58%, rgba(0, 0, 0, 0.12) 100%);
}

/* ---------- カード ---------- */
.card-shadow {
  box-shadow: 0 20px 45px -25px rgba(64, 0, 7, 0.28);
}

.number-badge {
  font-family: 'Noto Sans JP', Arial, sans-serif;
  font-weight: 900;
  color: var(--gold-500);
  line-height: 1;
}

/* ---------- 5つのポイント詳細モーダル ---------- */
.point-detail-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.55rem;
  color: var(--navy-800);
  font-size: 0.875rem;
  font-weight: 700;
  transition: color 0.2s ease, gap 0.2s ease;
}
.point-detail-btn:hover {
  color: var(--navy-700);
  gap: 0.8rem;
}
.point-detail-btn:focus-visible,
.point-modal-close:focus-visible {
  outline: 3px solid rgba(170, 0, 18, 0.32);
  outline-offset: 4px;
  border-radius: 0.25rem;
}
.point-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.point-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.point-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 0, 4, 0.76);
  backdrop-filter: blur(4px);
}
.point-modal-panel {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100svh - 2.5rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 30px 80px -25px rgba(23, 0, 4, 0.52);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
}
.point-modal.is-open .point-modal-panel {
  transform: translateY(0) scale(1);
}
.point-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--navy-800);
  font-size: 1.15rem;
}
.point-modal-body {
  border-top: 1px solid #e4ebe7;
  padding-top: 1.25rem;
  color: var(--text-main);
  font-size: 0.925rem;
  line-height: 1.9;
}
.point-modal-body h4 {
  margin-bottom: 0.5rem;
  color: var(--navy-800);
  font-weight: 700;
}
.point-modal-body ul {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}
body.modal-open {
  overflow: hidden;
}

/* ---------- セミナー一覧 ---------- */
.seminar-filter-btn {
  border: 1px solid #dce5e0;
  border-radius: 999px;
  background: #fff;
  padding: 0.55rem 1rem;
  color: var(--text-sub);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.seminar-filter-btn:hover,
.seminar-filter-btn.is-active {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}
.seminar-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  align-items: stretch;
  height: 100%;
  border: 1px solid #edf1ef;
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 16px 40px -28px rgba(64,0,7,.32);
}
.seminar-card.hidden { display: none; }
.seminar-date {
  border-left: 4px solid var(--gold-500);
  margin-top: 1rem;
  padding-left: 1rem;
}
.seminar-datetime { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem .75rem; margin-top: .75rem; }
.seminar-date p { font-size: 1.15rem; font-weight: 800; }
.seminar-date small { color: var(--text-sub); }
.seminar-status {
  display: inline-flex;
  border-radius: 999px;
  background: #f1e8e9;
  padding: .35rem .7rem;
  color: #665a5d;
  font-size: .7rem;
  font-weight: 700;
}
.seminar-image { overflow: hidden; border-radius: .75rem; background: var(--bg-soft); }
.seminar-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.seminar-image:hover img { transform: scale(1.04); }
.seminar-info h2 { margin-top: .8rem; font-size: 1.1rem; font-weight: 800; line-height: 1.55; }
.seminar-info p { margin-top: .75rem; color: var(--text-sub); font-size: .8rem; line-height: 1.75; }
.seminar-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.seminar-tags span { border-radius: 999px; background: var(--bg-soft); padding: .3rem .65rem; color: var(--navy-800); font-size: .68rem; font-weight: 700; }
.seminar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  gap: .55rem;
  border-radius: 999px;
  background: var(--navy-800);
  padding: .75rem 1.2rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all .2s ease;
}
.seminar-link:hover { background: var(--navy-700); transform: translateY(-2px); }

@media (min-width: 768px) {
  .seminar-card { padding: 1.5rem; }
}

@media (min-width: 768px) {
  .point-modal-panel {
    padding: 3rem;
  }
}

/* ---------- 比較表 ---------- */
.compare-table th, .compare-table td {
  border: 1px solid #e3e7ec;
}
.compare-table thead th {
  background: var(--navy-800);
  color: #fff;
}
.compare-table .col-fbm {
  background: var(--gold-100);
}
.compare-table td.check {
  color: var(--navy-700);
  font-weight: 700;
}
.compare-table td.cross {
  color: #b0b8c1;
}
.compare-table th:nth-child(6),
.compare-table td:nth-child(6) {
  border-left: 3px solid var(--brand-red);
  border-right: 3px solid var(--brand-red);
}
.compare-table thead th:nth-child(6) {
  border-top: 3px solid var(--brand-red);
}
.compare-table tbody tr:last-child td:nth-child(6) {
  border-bottom: 3px solid var(--brand-red);
}
@media (min-width: 768px) and (max-width: 1023px) {
  .compare-table th,
  .compare-table td {
    padding: 0.75rem;
  }
}

/* ---------- フッター ---------- */
footer a:hover {
  color: var(--gold-400) !important;
}

/* ---------- カウンター ---------- */
.counter-num {
  font-family: 'Noto Sans JP', Arial, sans-serif;
}

/* スクロールトップボタン */
#scroll-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -10px rgba(170,0,18,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 40;
}
#scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Legacy inline colors mapped to the logo palette. */
[style*="background:#006039"], [style*="background: #006039"] { background: #AA0012 !important; }
[style*="background:#003d27"], [style*="background: #003d27"] { background: #170004 !important; }
[style*="background:#f3f7f5"], [style*="background: #f3f7f5"] { background: #FAF4F5 !important; }
[style*="background:#f4e8c8"], [style*="background: #f4e8c8"] { background: #F7E7E9 !important; }
[style*="color:#006039"], [style*="color: #006039"] { color: #AA0012 !important; }
[style*="color:#c79a3b"], [style*="color: #c79a3b"] { color: #AA0012 !important; }
[style*="color:#e0b85c"], [style*="color: #e0b85c"] { color: #E05260 !important; }
[style*="border-color:#006039"], [style*="border-color: #006039"] { border-color: #AA0012 !important; }
[style*="border-color:#c79a3b"], [style*="border-color: #c79a3b"] { border-color: #AA0012 !important; }
[style*="--tw-ring-color:#006039"] { --tw-ring-color: #AA0012 !important; }
[style*="linear-gradient(120deg,#006039,#08734a)"] {
  background: linear-gradient(120deg, #8F0010, #C92A3A) !important;
}



.points-document-link {
  background: #fff !important;
  color: #AA0012 !important;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #170004;
}

.points-document-link:hover {
  background: #F7E7E9 !important;
  color: #AA0012 !important;
  box-shadow: 2px 2px 0 #170004;
  transform: translate(2px, 2px);
}

/* Common issues: improve scanning without changing the section content. */
#issues {
  background-image:
    radial-gradient(circle at 12% 12%, rgba(170, 0, 18, .22), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(255, 255, 255, .08), transparent 30%) !important;
}
#issues .section-label::before {
  background: #E05260;
}
.news-hero .section-label::before,
.case-hero .section-label::before,
.company-hero .section-label::before,
.document-hero .section-label::before,
.trial-hero .section-label::before,
.contact-hero .section-label::before {
  background: #E05260;
}
#issues .grid > div {
  position: relative;
  min-height: 92px;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border: 2px solid transparent;
  border-left: 5px solid #e0b85c;
  background: #fff;
  color: #111;
  box-shadow: 0 10px 26px rgba(0, 25, 16, .24);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
#issues .grid > div:hover {
  transform: translateY(-4px);
  border-color: #e0b85c;
  box-shadow: 0 14px 32px rgba(0, 25, 16, .32);
}
#issues .grid i {
  display: none;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-top: 0;
  place-items: center;
  border-radius: 50%;
  background: #AA0012;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(170, 0, 18, .25);
  font-size: 1rem;
}
#issues .grid p {
  color: #111;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
}
#issues .fade-in-section.text-center.mt-16 {
  margin-top: 3.5rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

@media (min-width: 1024px) {
  #issues .grid > div { padding-right: 1rem; padding-left: 1rem; }
  #issues .grid p { font-size: clamp(.78rem, 1.05vw, .92rem); white-space: nowrap; }
}

@media (max-width: 767px) {
  #issues .max-w-3xl > p:last-child {
    font-size: .8125rem;
    letter-spacing: -.015em;
    text-wrap: balance;
  }
  #issues .grid > div { min-height: 0; padding: 1rem; }
  #issues .fade-in-section.text-center.mt-16 { margin-top: 2.5rem; padding: 1.25rem .25rem; }
}

/* Contact CTA: keep the desktop row and emphasize the free trial on mobile. */
.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.contact-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 1rem 2rem;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.contact-cta-button:hover { background: #fff; color: #AA0012; transform: translateY(-2px); }

@media (max-width: 639px) {
  .contact-cta-actions { flex-direction: column; }
  .contact-cta-button {
    position: relative;
    width: 100%;
    min-height: 58px;
    padding: .9rem 3rem;
  }
  .contact-cta-button::after {
    content: "\f054";
    position: absolute;
    right: 1.25rem;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
  }
  .contact-cta-trial {
    order: 1;
    background: #fff;
    color: #AA0012;
    box-shadow: 0 10px 24px rgba(64, 0, 7, .24);
    font-size: 1.05rem;
  }
  .contact-cta-document { order: 2; }
  .contact-cta-contact { order: 3; }
}
