/* common.css */

/* ページ全体の基本スタイル */
body {
  background-color: #f8f9fa; /* ページ全体の背景をとても薄いグレーに */
  font-family: sans-serif;   /* 基本フォント（適宜変更してください） */
  line-height: 1.6;        /* 基本の行間 */
  color: #333;              /* 基本の文字色 */
  margin: 0;
  padding: 0;
}

/* 各記事を囲むコンテナのスタイル */
.microcms-article {
  background-color: rgb(252, 252, 252); /* 記事エリアの背景は白 */
  max-width: 1000px;       /* コンテンツの最大幅（お問い合わせ先の合計幅など考慮） */
  margin: 30px auto;       /* 上下マージンと左右中央寄せ */
  padding: 25px 30px;      /* 内側の余白 (下部は更新日のために多めに) */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* 軽い影で立体感を出す */
  border-radius: 4px;      /* 角を少し丸める（任意） */
  position: relative;      /* 更新日を絶対配置するための基準点 */
  padding-bottom: 50px;    /* 更新日の表示スペースを確保 */
}

/* ページタイトルのスタイル */
.page-main-title { /* JavaScriptで<h1>に付与したクラス */
  background-color: white; /* 背景は白（記事コンテナと同じ） */
  border-bottom: 3px solid #a0d8ef; /* 水色の下線 (例: 少し落ち着いた水色) */
  padding-bottom: 12px;    /* 下線との間の余白 */
  margin-top: 0;           /* .microcms-articleのpaddingがあるので不要 */
  margin-bottom: 30px;     /* タイトルと本文の間のマージン */
  font-size: 2em;          /* タイトルの文字サイズ */
  color: #222;             /* タイトルの文字色 */
}

/* 更新日のスタイル */
.last-updated {
  position: absolute;       /* .microcms-article基準で絶対配置 */
  bottom: 20px;             /* 親要素の下端からの距離 */
  right: 30px;              /* 親要素の右端からの距離 */
  font-size: 0.85em;        /* 文字サイズを小さめに */
  color: #6c757d;           /* 文字色をグレー系に */
}

/* お問い合わせ先セクションのベーススタイル */
.contact-information {
  border: 1px solid #e0e0e0; /* 枠線の色を少し薄く */
  margin-top: 40px;         /* 上のコンテンツとの間隔 */
  /* margin-bottomは記事のpadding-bottomでカバーされる想定 */
}

/* Flexboxコンテナ (お問い合わせ先用) */
.contact-flex-container {
  display: flex;
}

/* 左カラム（タイトルエリア）のスタイル (お問い合わせ先用) */
.contact-title-area {
  width: 300px;
  background-color: #e0f7fa; /* 薄い水色 */
  padding: 15px 20px;       /* 左右のpaddingも追加 */
  border-right: 1px solid #e0e0e0; /* 区切り線の色 */
  box-sizing: border-box;
  flex-shrink: 0;
}

.contact-title-area h3 {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.1em;
  color: #333;
}

/* 右カラム（詳細情報エリア）のスタイル (お問い合わせ先用) */
.contact-details-area {
  width: 700px;
  padding: 15px 20px; /* 左右のpaddingも追加 */
  box-sizing: border-box;
  flex-shrink: 0;
}

.contact-details-area p {
  margin-top: 0;
  margin-bottom: 0.8em; /* 各情報の間隔を少し広めに */
  line-height: 1.7;
}

.contact-details-area p:last-child {
  margin-bottom: 0;
}

/* 本文エリア (.body-content) 内のテーブルスタイル */
.body-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: 0.9em;
  border: 1px solid #dee2e6; /* テーブル外枠の色を調整 */
}

.body-content th,
.body-content td {
  border: 1px solid #dee2e6; /* セルの枠線色を調整 */
  padding: 12px 15px;     /* セル内余白を調整 */
  text-align: left;
  vertical-align: top;
}

.body-content table thead tr th,
.body-content table thead tr td {
  background-color: #e0f7fa; /* 薄い水色 */
  font-weight: bold;
  border-bottom-width: 2px; /* ヘッダー下の線を少し太く */
}

.body-content table tbody tr:first-child th,
.body-content table tbody tr:first-child td {
  background-color: #e0f7fa; /* 薄い水色 */
  font-weight: bold;
}