@import url("https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* ==================== */
/* リセット & 基本設定 */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #404040;
  background-color: #fff;
}

a {
  color: #3120bf;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==================== */
/* ヘッダー */
/* ==================== */
.header {
  background: linear-gradient(to bottom, #ffe7ee, #eae6ff);
}

.header-top {
  background-color: #f5f5f5;
  padding: 8px 0;
  text-align: right;
}

.header-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 12px;
}

.header-nav a {
  margin-left: 16px;
  color: #666;
  transition: color 0.3s;
}

.header-nav a:hover {
  color: #333;
}

.header-nav a:first-child {
  margin-left: 0;
}

.header-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.logo {
  margin-bottom: 8px;
  line-height: 1;
}

.logo a {
  display: inline-block;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.header-title {
  font-size: 20px;
  color: #404040;
  font-weight: 700;
}

/* ==================== */
/* メインコンテンツ */
/* ==================== */
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 400px);
}

/* ==================== */
/* 検索セクション */
/* ==================== */
.search-section {
  margin-bottom: 40px;
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  padding: 12px 20px 12px 50px;
  font-size: 16px;
  border: 2px solid #404040;
  border-radius: 25px;
  outline: none;
  transition: border-color 0.3s;
}

.search-box input:focus {
  border-color: #404040;
}

.search-box::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("../images/search.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 検索サジェスト */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  margin-top: 8px;
  z-index: 1000;
  display: none;
}

.search-suggestions.active {
  display: block;
}

.search-suggestion-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item:hover {
  background-color: #f9f9f9;
}

.search-suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.search-suggestion-category {
  font-size: 12px;
  color: #999;
}

.search-suggestions-count {
  padding: 8px 20px;
  font-size: 12px;
  color: #666;
  background-color: #f9f9f9;
  border-bottom: 1px solid #f0f0f0;
}

/* ==================== */
/* カテゴリーセクション */
/* ==================== */
.category-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 600;
}

.category-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-btn {
  padding: 14px 20px;
  font-size: 15px;
  border: 2px solid #3120bf;
  color: #3120bf;
  background-color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.category-btn:hover {
  background-color: #f5f5f5;
}

.category-btn.active {
  background: linear-gradient(90deg, #f76cb4 0%, #e969db 38%, #8d82eb 77%, #6184f9 100%);
  background-clip: padding-box;
  color: #fff;
  border: 2px solid transparent;
}

/* ==================== */
/* FAQ一覧セクション */
/* ==================== */
.faq-list-section {
  margin-bottom: 40px;
}

.faq-list {
  border-top: 1px solid #d9d9d9;
}

.faq-item {
  border-bottom: 1px solid #d9d9d9;
  display: none; /* ページネーションで表示制御 */
}

.faq-item.visible {
  display: block;
}

.faq-item a {
  display: block;
  padding: 20px 0;
  transition: background-color 0.3s;
}

.faq-item a:hover {
  background-color: #f9f9f9;
}

/* ==================== */
/* ページネーション */
/* ==================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 40px;
}

.pagination-btn {
  min-width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background-color: transparent;
  color: #3120bf;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled):not(.active) {
  text-decoration: underline;
}

.pagination-btn.active {
  background-color: transparent;
  color: #3120bf;
  font-weight: bold;
}

.pagination-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination-ellipsis {
  padding: 0 4px;
  color: #3120bf;
  font-size: 14px;
}

.pagination-arrow {
  background-color: #3120bf;
  color: #fff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.pagination-arrow:hover:not(:disabled) {
  background-color: #5039d4;
  text-decoration: none;
}

.pagination-arrow:disabled {
  background-color: #ccc;
  opacity: 1;
}

/* ==================== */
/* FAQ詳細ページ */
/* ==================== */
.faq-detail {
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.breadcrumb a {
  color: #3120bf;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #5039d4;
}

.breadcrumb-separator {
  margin: 0 8px;
}

.faq-article {
  padding: 40px 0;
}

.faq-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d9d9d9;
}

.faq-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.faq-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 20px;
}

.faq-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 30px 0 15px;
}

.faq-content p {
  margin-bottom: 20px;
}

.faq-content ul,
.faq-content ol {
  margin-bottom: 20px;
  padding-left: 25px;
}

.faq-content ul {
  list-style: disc;
}

.faq-content ol {
  list-style: decimal;
}

.faq-content li {
  margin-bottom: 10px;
}

.faq-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.faq-content th,
.faq-content td {
  border: 1px solid #d9d9d9;
  padding: 12px;
  text-align: left;
}

.faq-content th {
  background-color: #f5f5f5;
  font-weight: 600;
}

.faq-content strong {
  font-weight: 600;
}

/* ==================== */
/* フッター */
/* ==================== */
/* .footer {
  background-color: #8d82eb;
  color: #fff;
  padding: 40px 20px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin-bottom: 20px;
  line-height: 1;
}

.footer-logo img {
  height: 45px;
  width: auto;
  display: inline-block;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  transition: opacity 0.3s;
  padding: 0 12px;
  position: relative;
}

.footer-nav a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -2px;
  color: #fff;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-copyright {
  font-size: 12px;
  opacity: 0.9;
} */
.view-18 {
  width: 100%;
  background: #8d82eb;
  padding: 80px 40px;
  display: grid;
  place-items: center;
  color: #fff;
}

.view-19 {
  width: min(1200px, 100%);
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.caslive-logo {
  width: 266px;
  aspect-ratio: 266 / 71.04;
}

.view-20 {
  width: min(1144px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.view-21 {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
  align-items: center;
  justify-content: center;
}

.div-wrapper-2 {
  display: inline-flex;
  padding: 10px;
}

.text-wrapper-15 {
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.text-wrapper-16 {
  color: #fff;
  font-size: clamp(12px, 1.6vw, 20px);
  font-family: "Zen Maru Gothic";
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  padding-top: 40px;
}
/* ==================== */
/* サブページ */
/* ==================== */

.article {
  margin-bottom: 24px;
}

.article-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
}
.intro {
  margin-bottom: 32px;
}
.section {
  margin-bottom: 16px;
}

.section-number {
  color: #666;
}

.article-title-sub {
  margin-bottom: 12px;
  text-align: justify;
}

.section-text {
  margin-left: 20px;
  margin-top: 12px;
}
.section-text-sub {
  margin-bottom: 8px;
}
.section-text-sub2 {
  margin-left: 20px;
  margin-top: 8px;
}

.definition-item {
  margin-bottom: 12px;
}

.definition-number {
  color: #666;
}
/* ========================================
   Tokushoho / 特定商取引法ページ
======================================== */
.legal-section-title {
  font-size: 18px;
  color: #1a1a2e;

  margin: 40px 0 20px;
  padding-left: 15px;
  border-left: 4px solid #e94560;
}

.legal-note {
  font-size: 13px;
  color: #777;
  margin-top: 5px;
}

.legal-sub-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

.legal-section {
  padding: 80px 16px 120px;
  background: #fff;
}

.legal-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* breadcrumb */
.legal-breadcrumb {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
}

.legal-breadcrumb a {
  text-decoration: none;
  color: #999;
}

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

/* heading */
.legal-heading {
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #ce5999;
}

/* table-like layout */
.legal-list {
  margin: 0;
  padding: 0;
  border: 1px solid #e498bd;
  background: #fff;
}

.legal-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-top: 1px solid #e498bd;
}

.legal-row:first-child {
  border-top: none;
}

.legal-row dt,
.legal-row dd {
  margin: 0;
}

/* left column (pink label) */
.legal-row dt {
  background: #ffe6f3;
  color: #ce5999;
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  text-align: center;
  border-right: 1px solid #e498bd;
}

.legal-row dd {
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #333;
  padding: 24px 28px;
  background: #fff;
}

.legal-row dd br + br {
  line-height: 1.2;
}

/* ===== Responsive (SPレイアウト) ===== */

@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }
  .legal-section {
    padding: 56px 16px 80px;
  }

  .legal-heading {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .legal-list {
    border: none;
  }

  .legal-row {
    grid-template-columns: 1fr;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e498bd;
    margin-bottom: 16px;
  }

  .legal-row dt {
    border-right: none;
    border-bottom: 1px solid #e498bd;
    padding: 18px 10px;
    font-size: 15px;
  }

  .legal-row dd {
    padding: 18px 16px 22px;
    font-size: 13px;
  }
  .legal-row:first-child dt {
    border-top: 1px solid #e498bd;
  }
}

/* ==================== */
/* レスポンシブ: タブレット */
/* ==================== */
@media (max-width: 768px) {
  .logo img {
    height: 48px;
  }

  .header-title {
    font-size: 14px;
  }

  .main {
    padding: 30px 15px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-content h2 {
    font-size: 20px;
  }
  /* 
  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav a {
    padding: 0;
  }

  .footer-nav a:not(:last-child)::after {
    content: none;
  } */

  /* ========================================
   Footer
======================================== */
  .view-18 {
    padding-left: 16px;
    padding-right: 16px;
  }
  .view-20 {
    gap: 10px;
  }
  .view-21 {
    width: 100%;
    display: contents;
  }
  .text-wrapper-16 {
    padding-top: 80px;
  }
}

/* ==================== */
/* レスポンシブ: スマホ */
/* ==================== */
@media (max-width: 480px) {
  .header-top {
    display: none;
  }

  .header-main {
    padding: 30px 15px;
  }

  .logo img {
    height: 36px;
  }

  .header-title {
    font-size: 13px;
  }

  .main {
    padding: 20px 15px;
  }

  .search-box input {
    padding: 10px 15px 10px 48px;
    font-size: 14px;
  }

  .search-box::before {
    left: 18px;
  }

  .section-title {
    font-size: 16px;
  }

  .category-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-btn {
    padding: 12px 10px;
    font-size: 14px;
  }

  .faq-item a {
    padding: 16px 0;
    font-size: 15px;
  }

  .faq-title {
    font-size: 20px;
  }

  .faq-content {
    font-size: 15px;
  }

  .faq-content h2 {
    font-size: 18px;
  }

  .faq-content h3 {
    font-size: 16px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .footer {
    padding: 30px 15px;
  }

  .footer-logo img {
    height: 32px;
  }
}
