/* ベース設定 */
:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #99f6e4;
  --color-primary-bg: #f0fdfa;
  --color-secondary: #f8fafc;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
  --radius-sm: 0.25rem;

  /* Bootstrap変数のオーバーライド */
  --bs-primary: #0d9488;
  --bs-primary-rgb: 13, 148, 136;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
}

/* ナビゲーションバー */
.navbar {
  box-shadow: var(--shadow);
}

.navbar-brand,
.navbar-brand img{
 padding-top:0px;
 padding-bottom:0px;
}

.navbar-spacer {
  height: 76px; /* ナビバーの高さ分の余白 */
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--color-primary), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar .nav-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.navbar .nav-link:hover {
  color: var(--color-primary);
}

/* パンくずリストのスタイル */
.breadcrumb-container {
  padding: 0 0 10px 0;
}

.breadcrumb {
  margin-bottom: 0;
  padding: 0;
  background-color: transparent;
}

.breadcrumb-item {
  font-size: 0.75rem;
}

.breadcrumb-item a {
  color: #3b82f6;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #a777e3;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}

/* モバイルメニューのカスタマイズ */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: white;
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-top: 0.5rem;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .nav-buttons .btn {
    width: 100%;
  }
}

/* ボタンのカスタマイズ */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-primary:active {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ヒーローセクション */
.hero {
  padding: 5rem 0 7rem;
  background: linear-gradient(to bottom, var(--color-primary-bg), var(--color-white));
}

.hero-grid {
  display: grid;
  gap: 3rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--color-primary), #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.hero-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.icon-right {
  margin-left: 0.5rem;
}

/* ファーストビューポイント */
.first-view {
  padding: 4rem 0;
  background-color: var(--color-white);
}

.point-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.point-card {
  background-color: var(--color-primary-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid #ccfbf1;
}

.point-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary-dark);
}

.point-text {
  font-size: 1rem;
}

/* セクション共通 */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  max-width: 48rem;
  margin: 0 auto;
}

/* 特徴セクション */
.features {
  padding: 5rem 0;
  background-color: var(--color-secondary);
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.feature-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-text {
  color: var(--color-text-light);
}

/* 料金/機能セクションのチェックマークスタイル */
.feature-check {
  font-size: 1.5rem;
  display: inline-block;
}

.feature-check.available {
  color: #28a745; /* 緑色 */
}

.feature-check.unavailable {
  color: #adb5bd; /* グレー色 */
}

/* アイコンのサイズ調整 */
.feature-check i {
  vertical-align: middle;
}

/* メリットセクション */
.benefits {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.benefits-grid {
  display: grid;
  gap: 2rem;
}

.benefits-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.benefits-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
}

.benefit-icon {
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: var(--color-primary);
}

.benefit-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.benefit-text {
  color: var(--color-text-light);
}

/* 使い方セクション */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--color-primary-bg);
}

.how-it-works-grid {
  display: grid;
  gap: 3rem;
}

.how-it-works-steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.step {
  display: flex;
  gap: 1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(13, 148, 136, 0.1);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-icon {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-text {
  color: var(--color-text-light);
}

.how-it-works-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* 事例セクション */
.case-studies {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.case-studies-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
  max-width: 64rem;
  margin: 0 auto;
}

.case-card {
  background-color: var(--color-secondary);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.case-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.case-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
}

.case-company {
  font-weight: 500;
  font-size: 1.125rem;
}

.case-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.case-text {
  color: var(--color-text-light);
}

/* CTA セクション */
.cta {
  padding: 5rem 0;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* フッター */
.footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-secondary);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-description {
  color: var(--color-text-light);
  max-width: 20rem;
}

.footer-heading {
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--color-text-light);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.copyright {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-link {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.legal-link:hover {
  color: var(--color-primary);
}

/* テンプレートセクション */
.templates {
  padding: 5rem 0;
  background-color: var(--color-primary-bg);
}

.templates-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.template-card {
  background-color: var(--color-white);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.template-card-header {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 0.5rem;
}

.template-icon {
  color: var(--color-primary);
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  padding-top: 0.175rem;
}

.template-icon i {
  font-size: 1.25rem;
}

.template-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-text);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-title:hover {
  -webkit-line-clamp: unset;
  overflow: visible;
  z-index: 1;
  position: relative;
}

.template-card-body {
  padding: 0.5rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.template-description {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.template-image {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.template-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
  object-fit: cover;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.meta-item i {
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: 0.5rem;
}

.template-card-footer {
  padding: 1rem 1.25rem 1.25rem;
  margin-top: auto;
}

.template-card-footer .btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .template-card {
    height: auto;
  }

  .template-card-header {
    padding: 1rem 1rem 0.5rem;
  }

  .template-card-body {
    padding: 0.5rem 1rem;
  }

  .template-card-footer {
    padding: 0.75rem 1rem 1rem;
  }
}

/* コンテンツ配置と間隔調整 */
.templates-section .row {
  margin-bottom: -1.5rem;
}

.templates-section .col-md-6,
.templates-section .col-lg-4 {
  margin-bottom: 1.5rem;
}

/* 料金セクション */
.pricing {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
  grid-template-columns: repeat(1, 1fr);
}

.pricing-card {
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
  border: 2px solid var(--color-primary);
  position: relative;
}

.pricing-header {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.pricing-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
}

.price {
  font-size: 2rem;
}

.pricing-features {
  padding: 2rem;
}

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

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-icon-check {
  color: var(--color-primary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.pricing-action {
  padding: 0 2rem 2rem;
}

.btn-primary-full {
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary-full:hover {
  background-color: var(--color-primary-dark);
}


/* 料金/機能セクションのスタイル */
.pricing-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.pricing-table-container {
  overflow-x: auto;
  margin-top: 40px;
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.pricing-table th,
.pricing-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #e9ecef;
  background-color: white;
}

.pricing-table th {
  font-weight: 700;
  background-color: #f8f9fa;
}

.feature-column {
  text-align: left;
  font-weight: 600;
  background-color: #f8f9fa !important;
}

.plan-column {
  width: 25%;
}

.highlight {
  background-color: #f0f7ff !important;
  position: relative;
}

.highlight::before {
  content: "おすすめ";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.text-success {
  color: #28a745;
}

.text-danger {
  color: #dc3545;
}

.price-row td {
  padding-top: 30px;
  padding-bottom: 30px;
}

.price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  display: block;
}

.period {
  font-size: 0.9rem;
  color: #6c757d;
  display: block;
  margin-top: 5px;
}

.action-row td {
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: none;
}

@media (max-width: 768px) {
  .pricing-table th,
  .pricing-table td {
    padding: 15px 10px;
  }

  .price {
    font-size: 1.4rem;
  }
}

/* こんな人におすすめセクション */
.recommended {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.recommended-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}

.recommended-card {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--color-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.recommended-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.check-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.recommended-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.recommended-text {
  color: var(--color-text-light);
}

/* AIレポート・レビュー機能セクション */
.ai-features {
  padding: 5rem 0;
  background-color: var(--color-primary-bg);
}

.ai-features-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(1, 1fr);
}

.ai-features-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-features-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.ai-features-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ai-feature-item {
  display: flex;
  gap: 1.5rem;
}

.ai-feature-icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.ai-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ai-feature-text {
  color: var(--color-text-light);
}

/* レスポンシブ対応 */
@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .cta-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .point-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-studies-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer-legal {
    flex-direction: row;
    gap: 1.5rem;
  }

  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .point-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .how-it-works-steps {
    order: 1;
  }

  .how-it-works-image {
    order: 2;
  }

  .templates-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .recommended-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .recommended-card {
    flex-direction: column;
  }

  .ai-features-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}


/* 個別ページ用のスタイル */
.page-header {
  padding: 3rem 0;
  background-color: var(--color-primary-bg);
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
}

.page-content {
  padding: 4rem 0;
}

.content-wrapper {
  max-width: 48rem;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 2rem;
}

.content-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.policy-date {
  margin-top: 3rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* 会社概要ページ */
.company-table-wrapper {
  margin-bottom: 2rem;
}

.company-table th {
  width: 25%;
  background-color: var(--color-primary-bg);
}

.message-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
}

.history-timeline {
  position: relative;
  padding-left: 2rem;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-primary-light);
}

.history-item {
  position: relative;
  margin-bottom: 2rem;
}

.history-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.history-year {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.map-responsive {
  overflow: hidden;
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* お問い合わせページ */
.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-options {
  margin-bottom: 4rem;
}

.contact-card {
  background-color: var(--color-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-text {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-note {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.contact-form-section {
  background-color: var(--color-secondary);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-form {
  max-width: 36rem;
  margin: 0 auto;
}

.required {
  color: #e53e3e;
}

.faq-section {
  max-width: 42rem;
  margin: 0 auto;
}

/* 特定商取引法ページ */
.legal-table {
  margin-bottom: 2rem;
}

.legal-table th {
  width: 30%;
  background-color: var(--color-primary-bg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .content-wrapper {
    padding: 0 1rem;
  }

  .company-table th,
  .legal-table th {
    width: 35%;
  }
}


/* クイックスタートセクション */
.quick-start {
  padding: 5rem 0;
  background-color: var(--color-primary-bg);
  text-align: center;
}

.quick-start-content {
  max-width: 48rem;
  margin: 0 auto;
}

.quick-start-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.quick-start-text {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.quick-start-action .btn {
  padding: 1rem 3rem;
  font-size: 1.25rem;
  font-weight: 500;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .quick-start {
    padding: 4rem 0;
  }

  .quick-start-title {
    font-size: 2rem;
  }

  .quick-start-text {
    font-size: 1.125rem;
  }
}

/* テンプレートページ用の追加スタイル */

/* テンプレートヒーローセクション */
#template-hero {
  background-color: var(--gray);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}

/* カテゴリ・業種セクション */
#category {
  background-color: white;
}

.category-wrapper {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 30px;
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.category-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(106, 61, 232, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon i {
  font-size: 25px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.category-content h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--primary);
}

.category-content p {
  margin-bottom: 0;
  font-weight: 500;
}

/* 特徴カード */
.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-dark);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  z-index: -1;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.feature-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

/* 目的カード */
.purpose-card {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-dark);
}

.purpose-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.purpose-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(106, 61, 232, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.purpose-icon i {
  font-size: 35px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purpose-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.purpose-card p {
  color: var(--dark);
  opacity: 0.8;
  margin-bottom: 0;
}

/* 対象・実施時間セクション */
#target-time {
  padding: 100px 0;
}

.target-card {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.target-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.target-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.target-list li:last-child {
  margin-bottom: 0;
}

.target-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(106, 61, 232, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.target-icon i {
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.target-content h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.target-content p {
  margin-bottom: 0;
  color: var(--dark);
  opacity: 0.8;
}

.time-card {
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.time-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.time-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(106, 61, 232, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.time-icon i {
  font-size: 25px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.time-header h3 {
  font-size: 2rem;
  margin-bottom: 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.time-content {
  margin-bottom: 20px;
}

.time-content p {
  margin-bottom: 10px;
  color: var(--dark);
  opacity: 0.8;
}

.time-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 設問構成セクション */
#questions {
  padding: 100px 0;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--dark);
  opacity: 0.8;
}

.questions-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.question-card {
  background-color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-dark);
}

.question-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.question-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(106, 61, 232, 0.3);
}

.question-card p {
  margin-bottom: 0;
  font-weight: 500;
}

.questions-scale {
  margin-top: 50px;
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.scale-title {
  text-align: center;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary);
}

.scale-items {
  display: flex;
  justify-content: space-between;
}

.scale-item {
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scale-item span {
  font-size: 0.8rem;
  font-weight: 400;
  margin-top: 5px;
  color: var(--dark);
  opacity: 0.8;
}

/* レポート例セクション */
#report {
  padding: 100px 0;
}

.report-image {
  position: relative;
}

.report-features {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.report-feature {
  display: flex;
  align-items: flex-start;
}

.report-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, rgba(106, 61, 232, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}

.report-icon i {
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.report-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

.report-content p {
  margin-bottom: 0;
  color: var(--dark);
  opacity: 0.8;
}

/* 運用イメージセクション */
#workflow {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.workflow-timeline {
  position: relative;
  z-index: 1;
}

.workflow-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50px;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0.3;
}

.workflow-item {
  position: relative;
  padding-left: 120px;
  margin-bottom: 60px;
  display: flex;
  flex-wrap: wrap;
}

.workflow-item:last-child {
  margin-bottom: 0;
}

.workflow-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(106, 61, 232, 0.3);
}

.workflow-content {
  flex: 1;
  padding-right: 30px;
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.workflow-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.workflow-content p {
  color: var(--dark);
  opacity: 0.8;
}

.workflow-image {
  flex: 0 0 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

/* 背景・根拠セクション */
#background {
  padding: 100px 0;
}

.background-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.background-item {
  display: flex;
  align-items: flex-start;
}

.background-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(106, 61, 232, 0.1), rgba(0, 212, 255, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.background-icon i {
  font-size: 16px;
  color: var(--primary);
}

.background-item p {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.background-quote {
  background-color: rgba(106, 61, 232, 0.05);
  padding: 25px;
  border-radius: 15px;
  position: relative;
  margin-top: 20px;
}

.background-quote i {
  position: absolute;
  top: -15px;
  left: 20px;
  font-size: 30px;
  color: var(--primary);
  opacity: 0.3;
}

.background-quote blockquote {
  margin-bottom: 10px;
  font-style: italic;
  font-size: 1.1rem;
}

.background-quote cite {
  display: block;
  text-align: right;
  font-weight: 600;
  font-style: normal;
  color: var(--primary);
}

/* よくある質問セクション */
#faq {
  padding: 100px 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: none;
  margin-bottom: 15px;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-button {
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  background-color: white;
  color: var(--dark);
}

.accordion-button:not(.collapsed) {
  background-color: white;
  color: var(--primary);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(106, 61, 232, 0.1);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236a3de8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  padding: 20px 25px;
  color: var(--dark);
  opacity: 0.8;
}

/* レスポンシブ対応 */
@media (max-width: 991.98px) {
  .workflow-item {
    padding-left: 80px;
  }

  .workflow-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .scale-items {
    flex-direction: column;
    gap: 15px;
  }

  .scale-item {
    flex-direction: row;
    justify-content: space-between;
  }

  .scale-item span {
    margin-top: 0;
    margin-left: 10px;
  }
}

@media (max-width: 767.98px) {
  #template-hero, #category, #features, #purpose, #target-time, #questions, #report, #workflow, #background, #faq {
    padding: 80px 0;
  }

  .category-wrapper {
    margin-top: -30px;
  }

  .workflow-timeline::before {
    left: 30px;
  }

  .workflow-item {
    padding-left: 60px;
    flex-direction: column;
  }

  .workflow-number {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .workflow-content {
    padding: 20px;
    margin-bottom: 20px;
  }

  .workflow-image {
    flex: 0 0 100%;
  }
}

@media (max-width: 575.98px) {
  .category-item {
    flex-direction: column;
    text-align: center;
  }

  .category-icon {
    margin: 0 auto 15px;
  }

  .target-list li {
    flex-direction: column;
    text-align: center;
  }

  .target-icon {
    margin: 0 auto 15px;
  }

  .time-header {
    flex-direction: column;
    text-align: center;
  }

  .time-icon {
    margin: 0 auto 15px;
  }

  .report-feature {
    flex-direction: column;
    text-align: center;
  }

  .report-icon {
    margin: 0 auto 15px;
  }

  .background-item {
    flex-direction: column;
    text-align: center;
  }

  .background-icon {
    margin: 0 auto 15px;
  }
}

/* 1. 浮動カードのスタイル修正 */
.floating-card {
  position: absolute;
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 150px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border-radius: 50%;
  margin-bottom: 10px;
}

.card-icon i {
  color: white;
  font-size: 24px;
}

.card-text {
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

/* 2. カテゴリ・業種セクションのポイントカード修正 */
.point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.point-card {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.point-card:hover {
  transform: translateY(-5px);
}

.point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border-radius: 50%;
  margin-bottom: 20px;
}

.point-icon i {
  color: white;
  font-size: 28px;
}

/* 3. 回答スケールのレイアウト修正 */
.scale-info {
  margin-top: 50px;
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.scale-info h3 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.scale-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.scale-item {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px 10px;
  background-color: #f8f9fa;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.scale-item span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  margin-top: 5px;
}

/* 4. 運用イメージセクションのケースカード修正 */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.case-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
}

.case-header {
  margin-bottom: 20px;
}

.case-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6e8efb, #a777e3);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

/* レスポンシブ対応のためのメディアクエリ */
@media (max-width: 768px) {
  .scale-items {
    flex-direction: column;
  }

  .scale-item {
    flex-basis: 100%;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .point-grid {
    grid-template-columns: 1fr;
  }
}


/* テンプレート紹介セクション */
.templates-section {
  padding: 80px 0;
  background-color: #fff;
}

.template-card {
  background-color: var(--color-white);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s, transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.template-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.template-card-header {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 0.5rem;
}

.template-icon {
  color: var(--color-primary);
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  padding-top: 0.175rem;
}

.template-icon i {
  font-size: 1.25rem;
}

.template-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-text);
  line-height: 1.4;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-title:hover {
  -webkit-line-clamp: unset;
  overflow: visible;
  z-index: 1;
  position: relative;
}

.template-card-body {
  padding: 0.5rem 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.template-description {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.template-image {
  margin-bottom: 1rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.template-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
  object-fit: cover;
}

.template-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: auto;
}

.meta-item {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.meta-item i {
  font-size: 1rem;
  color: var(--color-primary);
  margin-right: 0.5rem;
}

.template-card-footer {
  padding: 1rem 1.25rem 1.25rem;
  margin-top: auto;
}

.template-card-footer .btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  .template-card {
    height: auto;
  }

  .template-card-header {
    padding: 1rem 1rem 0.5rem;
  }

  .template-card-body {
    padding: 0.5rem 1rem;
  }

  .template-card-footer {
    padding: 0.75rem 1rem 1rem;
  }
}

.point-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.point-card .fas {
  color: var(--color-primary);
  margin-right: 0.5rem;
}

/* Templates List Page Styles */
.hero-content.text-center {
    padding: 3rem 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-title i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

/* Accordion Styles for FAQ */
.accordion {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.accordion-button {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--color-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.accordion-body {
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
}


/* Media queries for templates list */
@media (max-width: 767.98px) {
    .category-title {
        font-size: 1.3rem;
    }
}

/* セレクトボックス内のテキストが切れないようにするスタイル */
.form-control.template-select,
select.form-control {
    text-overflow: ellipsis;
}

select.form-control option {
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    padding: 8px 12px;
    line-height: 1.5;
    min-height: 40px;
    display: flex;
    align-items: center;
}

/* モバイルデバイス用のセレクトスタイル調整 */
@media (max-width: 768px) {
    select.form-control option {
        font-size: 16px; /* iOSでのズームを防止 */
    }

    .form-control.template-select,
    select.form-control {
        max-width: 100%;
        padding-right: 30px; /* 矢印アイコン用のスペース */
        background-position: right 10px center;
    }
}

/* 特に長いテキストを持つセレクトボックス用のスタイル */
.long-text-select {
    height: auto !important;
    min-height: 38px;
}

/* セレクトメニューのドロップダウン表示を改善 */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    select.form-control {
        text-indent: 1px;
        text-overflow: '';
    }

    select.form-control:focus {
        outline: none;
    }
}




.cta4-section p{
padding: 0 ;
}

/* サーベイ柔軟性セクションのスコープ付きCSS */
.cta4-section {
  /* 変数定義 */
  --color-primary: #0d9488;       /* ティール */
  --color-primary-dark: #0f766e;  /* 濃いティール */
  --color-primary-light: #99f6e4; /* 薄いティール */
  --color-primary-bg: #f0fdfa;    /* 背景色 */
  --color-text: #334155;          /* テキスト色 */
  --color-text-light: #64748b;    /* 薄いテキスト色 */
  --color-white: #ffffff;         /* 白色 */
  --color-border: #e2e8f0;        /* ボーダー色 */
  --color-accent: #f59e0b;        /* アクセント色（オレンジ） */
  --color-accent-dark: #d97706;   /* 濃いアクセント色 */
  --color-type-1: #0ea5e9;        /* 単発サーベイ色 */
  --color-type-2: #8b5cf6;        /* パルスサーベイ色 */
  --color-format-1: #10b981;      /* 実名形式色 */
  --color-format-2: #f43f5e;      /* 匿名形式色 */
  --radius-sm: 0.25rem;           /* 小さい角丸 */
  --radius: 0.5rem;               /* 角丸 */
  --radius-lg: 0.75rem;           /* 大きい角丸 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease;

  /* ベーススタイル */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  line-height: 1.5;

  /* セクション自体のスタイル */
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
  background-color: #f8fafc;
}

.cta4-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--color-primary-bg) 0%, rgba(240, 253, 250, 0.8) 100%);
  z-index: -1;
}

.cta4-container {
  max-width: 1100px;
  margin: 0 auto;
}

.cta4-header {
  text-align: center;
  margin-bottom: 3rem;
}

.cta4-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-primary-dark);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.cta4-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* マトリックスグリッド */
.cta4-matrix-container {
  position: relative;
  margin-bottom: 3rem;
  padding: 3rem 2rem;
}

.cta4-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

/* マトリックスの背景線（モバイルでは非表示） */
.cta4-matrix-bg {
  display: none;
}

/* マトリックスヘッダー */
.cta4-matrix-header {
  display: none; /* モバイルでは非表示 */
}

.cta4-axis-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  text-align: center;
  padding: 0.75rem;
  background-color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cta4-axis-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* モバイル用のタイプラベル */
.cta4-mobile-type-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.5rem;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta4-mobile-type-1 {
  border-color: var(--color-type-1);
}

.cta4-mobile-type-2 {
  border-color: var(--color-type-2);
}

/* マトリックスアイテム */
.cta4-matrix-item {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border: 2px solid transparent;
}

.cta4-matrix-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.cta4-matrix-item:focus-within {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.3);
}

.cta4-item-header {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(to right, rgba(240, 253, 250, 0.5), rgba(255, 255, 255, 0.8));
}

.cta4-item-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cta4-badge-container {
  display: flex;
  gap: 0.5rem;
}

.cta4-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-white);
  gap: 0.25rem;
}

.cta4-badge-type-1 {
  background-color: var(--color-type-1);
}

.cta4-badge-type-2 {
  background-color: var(--color-type-2);
}

.cta4-badge-format-1 {
  background-color: var(--color-format-1);
}

.cta4-badge-format-2 {
  background-color: var(--color-format-2);
}

.cta4-item-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-primary-bg);
  color: var(--color-primary);
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.cta4-matrix-item:hover .cta4-item-icon {
  transform: scale(1.1);
  background-color: var(--color-primary-light);
}

.cta4-item-content {
  padding: 1.25rem;
}

.cta4-item-description {
  margin: 0 0 1rem;
  color: var(--color-text-light);
}

.cta4-item-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta4-item-feature {
color: var(--color-text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
}

.cta4-item-feature:last-child {
  margin-bottom: 0;
}

.cta4-check-icon {
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0.25rem;
}

/* 選択ボタン */
.cta4-select-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-primary-bg);
  color: var(--color-primary-dark);
  text-align: center;
  font-weight: 600;
  border: none;
  border-top: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.cta4-matrix-item:hover .cta4-select-button {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* CTA部分 */
.cta4-action {
  text-align: center;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.cta4-message {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cta4-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  letter-spacing: 0.02em;
  min-width: 200px;
  color:#fff;
}

.cta4-button::after {
  content: '\f061'; /* Font Awesome の矢印アイコン */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
  color:#fff;
}

.cta4-button:hover {
  color:#fff;
  background-color: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.cta4-button:hover::after {
  transform: translateX(4px);
}

.cta4-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.3);
}

a.cta4-button{
text-decoration:none;
color:#fff;
}

a.cta4-button:hover{
color:#fff;
}




/* レスポンシブ対応 */
@media (min-width: 768px) {
  .cta4-matrix {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta4-matrix-header {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1rem;
  }

  .cta4-axis-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .cta4-mobile-type-2 + .cta4-matrix{
//    margin-top:4px;
  }

  .cta4-axis-labels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cta4-mobile-type-label {
    display: none;
  }

  /* マトリックスの背景線 */
  .cta4-matrix-bg {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
  }

  .cta4-matrix-bg-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: rgba(13, 148, 136, 0.1);
    transform: translateY(-50%);
  }

  .cta4-matrix-bg-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgba(13, 148, 136, 0.1);
    transform: translateX(-50%);
  }

  .cta4-matrix-bg-label {
    position: absolute;
    background-color: var(--color-primary-bg);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cta4-matrix-bg-label-top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .cta4-matrix-bg-label-bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .cta4-matrix-bg-label-left {
left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .cta4-matrix-bg-label-right {
right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 1024px) {
  .cta4-title {
    font-size: 1.5rem;
  font-weight: 700;
  }

  .cta4-subtitle {
    font-size: 1.25rem;
  }

  .cta4-matrix-container {
    padding: 3rem 2rem;
  }
}

/* 2つ目のマトリックスに上部マージンを追加 */
.cta4-mobile-type-2 + .cta4-matrix {
margin-top: 4rem; /* 左右のマスと同じGAP */
}

.cta4-section .fas{
line-height:1.5;
}


@media (max-width: 767.98px) {
  .cta4-matrix-container {
    padding: 0rem 0rem;
  }
    .cta4-mobile-type-2 + .cta4-matrix{
      margin-top:0rem;
    }
}
