/* page_styles.css — ページ固有スタイル集約
 * Phase 3 で各 PHP の inline <style> を集約。ブレークポイント 768px 統一。
 *
 * 集約元：
 *   - index.php inline <style>（フッター調整、#no_referer_form 隠し）
 *   - tax.php inline <style>（.area、.pref_list、レスポンシブ）
 *   - about.php inline <style>（.section、装飾）
 *   - cookie_policy.php / terms.php / privacy_policy.php / privacy_center.php /
 *     security.php / operator.php / contact.php / sitemap.php
 *     共通装飾（.sitemap_category、リスト調整）
 *   - side_menu.php 末尾 inline <style>（言語別フォント分岐）
 */

/* ============================================================
   汎用：コンテンツページ装飾（about / cookie_policy / terms 等で使用）
   ============================================================ */

.section {
  margin: 20px 0 30px 0;
}

.section h2 {
  font-size: 20px;
  margin: 25px 0 15px;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(to bottom, #1e90ff, #87cefa);
}

.section h3 {
  font-size: 18px;
  margin: 20px 0 10px 15px;
  font-weight: bold;
  color: #444;
}

.section p,
.section ul {
  margin-left: 15px;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.section ul {
  padding-left: 20px;
  list-style-type: disc;
}

.section li {
  margin-bottom: 10px;
}

/* ============================================================
   .sitemap_category（cookie_policy / terms / privacy_* で使用）
   ============================================================ */

.sitemap_category h2 {
  font-size: 20px;
  margin: 30px 0 15px;
  font-weight: bold;
  color: #333;
  position: relative;
  padding-left: 15px;
}

.sitemap_category h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 6px;
  background: linear-gradient(to bottom, #1e90ff, #87cefa);
}

.sitemap_category p,
.sitemap_category ul,
.sitemap_category ol {
  margin-left: 15px;
  font-size: 16px;
  margin-bottom: 15px;
}

.sitemap_category ul {
  list-style: disc;
  padding-left: 15px;
}

.sub_list {
  list-style: decimal;
  padding-left: 15px;
}

/* ============================================================
   tax.php 専用
   ============================================================ */

.tax_page .container {
  max-width: 1200px;
}

.area {
  margin: 30px 0;
}

.area h2 {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.area h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 6px;
  background-color: #1e90ff;
}

.pref_list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.pref_list a {
  width: 80px;
  background: #e0e0e0;
  color: #111;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.pref_list a:hover {
  background: linear-gradient(to right, #ff4500, #ff6347);
  color: #fff;
}

/* ============================================================
   index.php 補助：noreferrer 用の隠しフォーム
   ============================================================ */

#no_referer_form {
  display: none;
}

/* ============================================================
   サイドメニュー内の言語パネル：言語別フォント分岐
   （side_menu.php inline <style> から移送）
   ============================================================ */

.language_panel {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.language_grid a {
  font-family: inherit;
  font-size: 14px;
  font-weight: normal;
}

/* アラビア語系（ar / ur / fa） */
.language_grid a[href*="ar_SA"],
.language_grid a[href*="ur_PK"],
.language_grid a[href*="fa_IR"] {
  font-family: "Arial Unicode MS", "Segoe UI", Arial, sans-serif;
  font-weight: normal;
}

/* 東アジア言語（zh / ja） */
.language_grid a[href*="zh_CN"],
.language_grid a[href*="ja_JP"] {
  font-family: "Hiragino Sans GB", "Microsoft YaHei", "Meiryo UI", sans-serif;
}

/* キリル系（ru / mn） */
.language_grid a[href*="ru_RU"],
.language_grid a[href*="mn_MN"] {
  font-family: "Arial", "Segoe UI", sans-serif;
}

/* ヒンディー語 */
.language_grid a[href*="hi_IN"] {
  font-family: "Nirmala UI", "Mangal", Arial, sans-serif;
}

/* タイ語 */
.language_grid a[href*="th_TH"] {
  font-family: "Tahoma", "Leelawadee", Arial, sans-serif;
}

.language_grid a.active {
  font-weight: bold;
}

/* ============================================================
   モバイル調整（768px 以下）
   ============================================================ */

@media (max-width: 768px) {

  /* セクション装飾 */
  .section h2 {
    font-size: 18px;
    margin: 20px 0 10px;
    padding-left: 12px;
  }
  .section h2::before {
    width: 4px;
    border-radius: 4px;
  }
  .section h3 {
    font-size: 16px;
    margin-left: 12px;
  }
  .section p,
  .section ul {
    margin-left: 12px;
    font-size: 15px;
  }
  .section ul {
    padding-left: 15px;
  }

  /* .sitemap_category */
  .sitemap_category h2 {
    font-size: 18px;
    margin: 25px 0 10px;
    padding-left: 12px;
  }
  .sitemap_category h2::before {
    width: 4px;
    border-radius: 4px;
  }
  .sitemap_category p,
  .sitemap_category ul,
  .sitemap_category ol {
    margin-left: 12px;
    font-size: 15px;
  }
  .sitemap_category ul {
    padding-left: 12px;
  }

  /* tax.php 都道府県リスト */
  .pref_list a {
    width: 100%;
  }
  .tax_page .container {
    padding: 15px 4%;
  }
  .area h2 {
    font-size: 16px;
  }

  /* 言語パネル：モバイル時のフォントサイズ */
  .language_grid a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tax_page .container {
    padding: 10px 3%;
  }
  .area {
    margin: 20px 0;
  }
  .pref_list {
    gap: 10px;
  }
}
