/* メインコンテンツのレイアウト */
.main-container {
  display: flex;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0 60px 0; /* 左側のパディングを削除 */
  gap: 40px;
  align-items: flex-start; /* 上端揃え */
}

/* サイドバー */
.sidebar {
  flex-shrink: 0;
  width: 340px; /* サイドメニューのテキストが改行されないように調整 */
  background-color: #fff;
  padding: 20px;
  border-radius: 12px; /* orca.htmlのサイドバーに合わせた角丸 */
  height: fit-content; /* コンテンツの高さに合わせる */
}

/* サイドバーのタイトル ("商品・サービス") */
.sidebar-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 3px solid #38a6cc; /* 下線 */
  padding-bottom: 15px;
}

.sidebar nav li a.active,
.sidebar nav li a:hover {
  background-color: #f0f0f0;
}
.sidebar nav li a.active::before {
  content: '▶';
  position: absolute;
  left: 5px;
  color: #007bff;
}

/* プライバシーポリシーコンテンツ */
.privacy-policy {
  flex-grow: 1;
  max-width: 1000px; /* サイドバーの幅とギャップを考慮した最大幅 */
}

.privacy-policy h1 {
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #38a6cc;
  padding-bottom: 10px;
}

.privacy-policy p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.privacy-policy ol {
  list-style: none;
  padding-left: 0;
  counter-reset: policy-counter;
}

.privacy-policy ol li {
  padding-left: 2em;
  margin-bottom: 20px;
  position: relative;
  line-height: 1.8;
}

.privacy-policy ol li::before {
  counter-increment: policy-counter;
  content: counter(policy-counter) '. ';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.signature {
  text-align: right;
  margin-top: 40px;
  line-height: 1.8;
}

.signature p {
  margin-bottom: 5px;
}

.privacy-mark-section {
  margin-top: 40px;
  display: flex;
  align-items: center;
}

.privacy-mark-image {
  margin-right: 20px;
}

.privacy-mark-image img {
  width: 80px;
  height: auto;
}

.privacy-mark-text p {
  margin: 0;
  line-height: 1.8;
}

/* 追加情報セクション */
.additional-info {
  margin-top: 40px;
  font-size: 16px;
  line-height: 1.8;
}

.additional-info h2 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: 15px;
  }

  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .sidebar h2 {
    font-size: 16px;
  }

  .privacy-policy h1 {
    font-size: 20px;
  }

  .privacy-policy p,
  .privacy-policy ol li,
  .privacy-mark-text p {
    font-size: 14px;
  }

  .privacy-mark-section {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-mark-image {
    margin-bottom: 10px;
  }
}

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

/* サイドバーの各メニュー項目 */
.sidebar-item {
  display: block;
  padding: 15px 45px 15px 15px;
  font-size: 16px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative; /* アイコンの配置基準 */
  border-radius: 8px;
  border: none;
  outline: none;
}

/* ホバー時のスタイル */
.sidebar-item:hover {
  background-color: #e0f7fa;
  color: #0f789c;
}

/* 現在表示しているページのメニュー項目 (アクティブ状態) */
.sidebar-item.active {
  background-color: #38a6cc;
  color: white;
  font-weight: bold;
}

/* メニュー項目右側のアイコン (>) */
.sidebar-icon {
  position: absolute;
  right: 15px;
  height: 22px;
  background-image: url('img/circleright-b.svg'); /* アイコン画像 */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: filter 0.3s ease;
}

/* アクティブ状態のアイコンを白に変更 */
.sidebar-item.active .sidebar-icon {
  filter: brightness(0) invert(1);
}

/* サイドバーのリンク */
a.sidebar-link {
  text-decoration: none;
  color: inherit;
}

/* レスポンシブ対応 */
/* --- 3.1. 詳細ページ レスポンシブ対応 (1024px以下) --- */
@media (max-width: 1024px) {
  /* サイドバーとメインコンテンツを縦並びに変更 */
  .main-container {
    flex-direction: column;
    gap: 30px;
  }

  .sidebar {
    flex: none;
    width: 100%; /* 幅を100%に */
    order: 2; /* 表示順をメインコンテンツの後に */
  }
  .sidebar-sp {
    display: none;
  }
}
