/* --- 共通リセット・基本定義 --- */
 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ページ全体の高さ設定 */
body, html {
  height: 100%;
}

/* --- ナビゲーション（タブ） --- */
header {
  background-color: #a63b2a; /* 朱色系 */
}
nav ul.tabs {
  list-style: none;
  display: flex;
}
nav ul.tabs li {
  padding: 1em;
  color: white;
  cursor: pointer;
  flex: 1;
  text-align: center;
}
nav ul.tabs li.active {
  background-color: #d04a36; /* アクティブタブ色 */
}

/* --- メイン領域とタブ内容 --- */
main {
  position: relative;
  height: calc(100% - 60px); /* ヘッダー高さ仮定 */
}
.tab-content {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 3em 2em;
  overflow-y: auto;
}

/* アクティブページだけ表示 */
.tab-content.active {
  display: block;
}

/* --- 背景画像設定 --- */
.tab-content {
  position: relative; 
  background-size: cover;
  background-position: center;
}

/* 各ページの背景画像 */
#tab-top { background-image: url('images/bg-top.jpg'); }
#tab-philosophy { background-image: url('images/bg-philosophy.jpg'); }
#tab-news { background-image: url('images/bg-news.jpg'); }
#tab-company { background-image: url('images/bg-company.jpg'); }
#tab-contact { background-image: url('images/bg-contact.jpg'); }

/* 背景のオーバーレイ */
.tab-content::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(166,59,42,0.4); /* 朱色の半透明フィルター */
  z-index: 0;
}
.tab-content * {
  position: relative;
  z-index: 1;
}

/* --- 全ページ共通の白いカード背景 --- */
.tab-content .content-box,
{
  background-color: rgba(255, 255, 255, 0.92);
  color: #000;
  border-radius: 12px;
  padding: 2em;
  margin-bottom: 2em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* タイトルなどを白背景に自然に統合 */
.tab-content h1, 
.tab-content h2, 
.tab-content h3 {
  color: #a63b2a;
  margin-bottom: 0.6em;
}

/* 引用部分の調整 */
.tab-content blockquote {
  border-left: 4px solid #a63b2a;
  padding-left: 1em;
  font-style: italic;
  color: #333;
  background-color: rgba(255,255,255,0.8);
  margin: 1.5em 0;
}

/* リストや本文 */
.tab-content ul {
  margin-left: 1.5em;
  line-height: 1.8;
}
.tab-content p {
  line-height: 1.8;
}

/* --- ニュースリスト --- */
#news-list {
  margin-top: 1em;
}
.news-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.news-item a {
  color: #a63b2a;
  text-decoration: none;
}
.news-item a:hover {
  text-decoration: underline;
}

/* --- 共通カード背景スタイル（.news-item と同様） --- */
.content-box {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2em;
  margin: 2em auto;
  border-radius: 12px;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 900px; /* 読みやすく中央寄せ */
}

/* タイトル調整 */
.content-box h1 {
  color: #a60000; /* ブランドカラー */
  margin-bottom: 1em;
  text-align: center;
}

/* 本文 */
.content-box p {
  line-height: 1.8;
  font-size: 1.1em;
}