/* --------------------------------------------------
 * コンテンツページ・メイン画像エリア (ヒーローエリア)
 * -------------------------------------------------- */
.sub-hero-area {
  position: relative;
  width: 100%;
  height: 160px;
  /* 天地幅をすっきりスリムに */
  margin-bottom: 35px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #002060;
  /* 万が一画像が読み込まれない場合の背景色 */
}

/* メイン画像（head01.jpg） */
.sub-hero-area img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 画像の上に半透明の暗い膜を重ねて文字を見やすくする */
  filter: brightness(0.65);
  z-index: 1;
}

/* タイトル文字（画像の上に中央配置） */
.sub-hero-area h1,
.sub-hero-title {
  position: relative;
  z-index: 2;
  /* 画像より前面に表示 */
  margin: 0;
  padding: 0 0 10px 0;
  color: #ffffff !important;
  /* くっきり白い文字 */
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-align: center;
  white-space: nowrap;

  /* 文字下にスマートなアクセント白線 */
  border-bottom: 3px solid #ffffff;

  /* 文字の影で可読性を補強 */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}


/* --------------------------------------------------
 * 本文内の見出しデザイン（h2, h3, h4）
 * -------------------------------------------------- */

/* 大見出し (h2) : テーマカラー（紺）の左太線 ＋ 淡い背景ベタ */
.main-container h2,
.content-area h2 {
  font-size: 22px;
  font-weight: bold;
  color: #002060;
  background-color: #f0f4f8;
  /* 淡いブルーの背景 */
  padding: 12px 18px;
  border-left: 6px solid #002060;
  /* 左側に濃い紺のアクセント */
  border-bottom: 1px solid #d0d7de;
  border-radius: 0 4px 4px 0;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

/* 中見出し (h3) : 下線 ＋ アンダースコア */
.main-container h3,
.content-area h3 {
  font-size: 19px;
  font-weight: bold;
  color: #002060;
  padding-bottom: 8px;
  border-bottom: 2px solid #002060;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 小見出し (h4) : アイコン風ドット付き */
.main-container h4,
.content-area h4 {
  font-size: 17px;
  font-weight: bold;
  color: #333333;
  padding-left: 12px;
  border-left: 4px solid #c00000;
  /* 赤のアクセント */
  margin-top: 0px;
  margin-bottom: 10px;
}

/* ==================================================
   3. 下層ページ共通設定（ページヘッダー・パンくず）
   ================================================== */
.page-header {
  width: 100%;
  background-color: #002060;
  margin-bottom: 25px;
  overflow: hidden;
}

.page-header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.page-header-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-title {
  position: absolute;
  bottom: 15px;
  left: 30px;
  color: #ffffff;
  font-size: 26px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  border-left: 5px solid #c00000;
  padding-left: 12px;
  margin: 0;
}

/* パンくずリスト */
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li::after {
  content: ">";
  margin-left: 8px;
  color: #888888;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: #002060;
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: #c00000;
}

/* セクション間隔 */
.content-section {
  margin-bottom: 45px;
}

/* セクション大見出し */
.section-heading {
  font-size: 22px;
  color: #002060;
  border-bottom: 3px solid #002060;
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: bold;
}

/* ==================================================
   4. リード文エリア
   ================================================== */
.lead-box {
  background-color: #fdfbf7;
  border: 2px solid #002060;
  border-radius: 8px;
  padding: 24px 30px;
}

.lead-text {
  font-size: 18px;
  line-height: 1.8;
  color: #222222;
  margin: 0;
}

/* ==================================================
   5. 提供サービス（カードグリッド）
   ================================================== */
.service-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-card-header {
  background-color: #f0f4f8;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.service-num {
  background-color: #002060;
  color: #ffffff;
  font-weight: bold;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.service-card-header h3 {
  font-size: 18px;
  color: #002060;
  margin: 0;
  font-weight: bold;
}

.service-card-body {
  padding: 18px 20px 0px;
  text-align: left;
}

.service-card-body code {
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #c00000;
}

/* 有料オプション強調 */
.option-card {
  border-color: #d9822b;
}

.option-card .service-card-header {
  background-color: #fff8f0;
}

.badge-option {
  font-size: 13px;
  color: #c00000;
  margin-left: 8px;
  font-weight: bold;
}

/* ==================================================
   6. 注意事項
   ================================================== */
.notice-box {
  background-color: #fff9f9;
  border: 2px solid #d9534f;
  border-radius: 8px;
  padding: 24px;
  margin-top: 25px;
  margin-bottom: 40px;
}

.notice-title {
  font-size: 19px;
  color: #c00000;
  margin-bottom: 12px;
  font-weight: bold;
  border-bottom: 1px dashed #d9534f;
  padding-bottom: 8px;
}

.notice-intro {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.notice-item {
  background-color: #ffffff;
  border: 1px solid #f2dede;
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.notice-item h3 {
  font-size: 16px;
  color: #222222;
  margin-top: 0;
  margin-bottom: 6px;
  font-weight: bold;
}

.notice-item p {
  font-size: 14px;
  color: #555555;
  line-height: 1.6;
  margin: 0;
}

.notice-note {
  margin-top: 10px;
  border-left: 2px solid #002060;
  padding: 0px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #002060;
}

/* ==================================================
   7. こんな支部におすすめ＆ステップ
   ================================================== */
.recommend-box {
  background-color: #f4f8fb;
  border-radius: 8px;
  padding: 24px 30px;
  border: 1px solid #d0e1f9;
}

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

.recommend-list li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 12px;
}

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

.recommend-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #002060;
  font-size: 18px;
  font-weight: bold;
}

/* ステップフロー */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.step-item {
  border: 1px solid #cccccc;
  border-radius: 8px;
  background-color: #ffffff;
  padding: 18px 22px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.step-badge {
  background-color: #c00000;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.step-header h3 {
  font-size: 17px;
  color: #002060;
  margin: 0;
  font-weight: bold;
}

.step-body p {
  font-size: 15px;
  line-height: 1.6;
  margin: 4px 0 0;
  color: #333333;
}

/* お問い合わせアクションエリア */
.action-area {
  text-align: center;
  margin-top: 35px;
}

.btn-primary {
  display: inline-block;
  background-color: #c00000;
  color: #ffffff !important;
  font-size: 18px;
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(192, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #a00000;
  transform: translateY(-2px);
}

/* レスポンシブ調整 (スマホ表示時) */
@media (max-width: 768px) {
  .page-header-img {
    height: 120px;
  }

  .page-title {
    font-size: 20px;
    bottom: 10px;
    left: 15px;
  }

  .lead-box {
    padding: 18px 20px;
  }

  .lead-text {
    font-size: 16px;
  }

  .btn-primary {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
}

/* ==========================
   FAQ Q・A バッジ
   ========================== */

.q-badge,
.a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Qは青 */
.q-badge {
  background: #1A2B4C;
}

/* Aは緑 */
.a-badge {
  background: #B51024;
}

/* ==========================
   汎用箇条書きリストスタイル
   ========================== */
ul.list-disc,
.notice-box ul,
.service-card-body ul {
  margin: 12px 0 16px 0;
  padding-left: 1.5em;
}

ul.list-disc li,
.notice-box ul li,
.service-card-body ul li {
  list-style-type: disc;
  list-style-position: outside;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 8px;
}

ul.list-disc li:last-child,
.notice-box ul li:last-child,
.service-card-body ul li:last-child {
  margin-bottom: 0;
}

/* ==================================================
   カード内リンク・赤丸矢印アイコン設定
================================================== */
.card-links {
  margin-top: 20px;
  margin-bottom: 40px;
  padding: 16px 20px 16px 50px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #f9f9f9;
  list-style: none;
  padding-left: 0;
}

.card-links li {
  margin-bottom: 10px;
  margin-left: 20px;
}

.card-links li:last-child {
  margin-bottom: 0;
}

.card-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-left: 26px; /* アイコンの幅＋余白確保 */
  color: #002060;     /* リンク文字色（テーマカラーの紺） */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* 赤い円 */
.card-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-color: #c00000; /* 赤色 */
  border-radius: 50%;        /* 正円 */
  transition: background-color 0.2s ease;
}

/* 赤丸の中の白三角形（右向き矢印） */
.card-links a::after {
  content: '';
  position: absolute;
  left: 7px;                 /* 赤丸内の位置調整 */
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px; /* 右向きの三角形を作成 */
  border-color: transparent transparent transparent #ffffff; /* 白色の三角形 */
}

/* ホバー時の装飾 */
.card-links a:hover {
  color: #c00000;
  text-decoration: underline;
}

.card-links a:hover::before {
  background-color: #e00000; /* ホバー時に赤丸を少し明るく */
}

/* リンク下の注釈テキスト */
.card-links .link-note {
    font-size: 13px;       /* 少し小さめの文字サイズ */
    color: #666666;        /* 落ち着いたグレー */
    margin-top: 4px;       /* リンクとの間の空き */
    margin-bottom: 0;
    line-height: 1.4;
    font-weight: normal;   /* 通常の太さ */
}

/* ==================================================
   料金リスト全体・各項目の余白調整
================================================== */
.price-list {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.price-list li {
  margin-bottom: 15px; /* 項目同士の間隔を少し広めに設定 */
  line-height: 1.4;     /* 行間を広げて見やすく調整 */
}

/* price-label の先頭に丸アイコン（●）を配置 */
.price-label {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  color: #333333;
}

.price-label::before {
  content: "";
  display: inline-block;
  width: 8px;            /* 丸の大きさ（横幅） */
  height: 8px;           /* 丸の大きさ（高さ） */
  background-color: #B51024; /* 丸の色（サイトテーマの紺色） */
  border-radius: 50%;   /* 正円にする */
  margin-right: 8px;     /* 文字との間のすき間 */
  flex-shrink: 0;       /* 文字が折り返しても丸が潰れない設定 */
}

/* 補足テキスト（price-note）の余白・文字調整 */
.price-note {
  display: block;
  font-size: 13px;
  color: #666666;
  margin-top: 4px;       /* ラベル・価格からの上の間隔 */
  padding-left: 16px;    /* ●アイコンの分だけインデントを下げて揃える */
}

.service-box-title{
  padding-top: 20px;
}

/* ==========================================================================
   メール設定マニュアル（第3階層ページ）用スタイル
   ========================================================================== */

.manual-lead {
  font-size: 16px;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 30px;
}
.manual-lead code {
  background-color: #f0f4f9;
  color: #002060;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* 各ブロックの枠 */
.manual-block {
  margin-bottom: 40px;
}

.manual-sub-title {
  font-size: 19px;
  font-weight: bold;
  color: #002060;
  border-left: 5px solid #002060;
  padding-left: 12px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.manual-desc {
  font-size: 15px;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 15px;
}

/* 設定情報テーブル */
.manual-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
}

.manual-table th,
.manual-table td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  vertical-align: middle;
}

.manual-table thead th {
  background-color: #002060;
  color: #ffffff;
  font-weight: bold;
  text-align: center;
}

.manual-table tbody th {
  background-color: #f8f9fa;
  color: #002060;
  font-weight: bold;
  text-align: left;
}

.manual-table code {
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

.text-navy {
  color: #002060;
  font-family: monospace;
  font-size: 15px;
}

.text-accent {
  color: #c00000;
  font-weight: bold;
}

.manual-note {
  font-size: 13px;
  color: #666666;
  margin-top: 8px;
}

/* 3ステップの流れ */
.step-flow-wrapper {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.step-item {
  flex: 1;
  background-color: #fdfbf7;
  border: 2px solid #002060;
  border-radius: 8px;
  padding: 18px 15px;
  box-sizing: border-box;
}

.step-num {
  display: inline-block;
  background-color: #002060;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.step-body strong {
  display: block;
  font-size: 16px;
  color: #002060;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: #444444;
  line-height: 1.6;
  margin: 0;
}

/* 端末別マニュアルリンクカード */
.manual-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.link-card {
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.link-card-header {
  background-color: #f0f4f9;
  color: #002060;
  font-weight: bold;
  padding: 12px 16px;
  font-size: 15px;
  border-bottom: 1px solid #dcdcdc;
}

/* 赤丸＋白矢印リンク */
.card-links-red {
  list-style: none;
  padding: 15px 16px;
  margin: 0;
}

.card-links-red li {
  margin-bottom: 12px;
  line-height: 1.5;
}
.card-links-red li:last-child {
  margin-bottom: 0;
}

.card-links-red a {
  position: relative;
  padding-left: 24px;
  color: #002060;
  font-size: 14px;
  font-weight: bold;
  text-decoration: underline;
  display: inline-block;
  transition: color 0.2s;
}

.card-links-red a:hover {
  color: #c00000;
}

.card-links-red a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: #c00000;
  border-radius: 50%;
}

.card-links-red a::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3.5px 0 3.5px 5.5px;
  border-color: transparent transparent transparent #ffffff;
}

/* 転送サービスおすすめ枠 */
.manual-recommend-box {
  background-color: #fff9e6;
  border: 2px solid #e6a100;
  border-radius: 8px;
  padding: 24px 20px;
  margin: 35px 0;
}

.recommend-badge {
  display: inline-block;
  background-color: #e6a100;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.recommend-title {
  font-size: 18px;
  color: #805b00;
  font-weight: bold;
  margin-bottom: 10px;
}

.recommend-text {
  font-size: 15px;
  line-height: 1.7;
  color: #444444;
  margin-bottom: 18px;
}

.recommend-btn-wrap {
  text-align: center;
}

.btn-recommend {
  display: inline-block;
  background-color: #c00000;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(192, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.btn-recommend:hover {
  background-color: #900000;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(192, 0, 0, 0.35);
}

/* トラブル時の枠 */
.manual-trouble-box {
  background-color: #fef3f3;
  border: 1px solid #c00000;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.trouble-title {
  font-size: 16px;
  color: #c00000;
  font-weight: bold;
  margin-bottom: 12px;
}

.trouble-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.trouble-list li {
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 8px;
}

.trouble-list a {
  color: #c00000;
  font-weight: bold;
  text-decoration: underline;
}

.trouble-foot {
  font-size: 14px;
  color: #555555;
  margin: 0;
}

/* サポート一覧へ戻るボタン */
.page-back-wrapper {
  text-align: center;
  margin: 40px 0 20px;
}

.btn-page-back {
  display: inline-block;
  background-color: #f0f4f9;
  color: #002060;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 24px;
  border: 1px solid #002060;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-page-back:hover {
  background-color: #002060;
  color: #ffffff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .step-flow-wrapper {
    flex-direction: column;
  }
  
  .manual-table th,
  .manual-table td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
  
  .manual-table thead {
    display: none;
  }
  
  .manual-table tbody th {
    border-bottom: none;
    padding-bottom: 4px;
    background-color: #f0f4f9;
  }
  
  .manual-table tbody td {
    border-top: none;
    padding-top: 4px;
    padding-bottom: 10px;
  }
  
  .btn-recommend {
    display: block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 8px;
    box-sizing: border-box;
  }
}