﻿/*---------------------------------------
  Section Style (800px固定版)
----------------------------------------*/
/* 全体を800pxに固定し、中央に寄せる */
.tabs {
  width: 100%; 
  margin: 20px auto;
  font-size: 0; /* ラベル同士の隙間を消す */
}

/* ラジオボタン：完全に非表示 */
.tabs input[type="radio"] {
  display: none;
}

/* ラベル：120px * 6個 = 720px なので余裕を持って収まります */
.tabs label {
  display: inline-block;
  vertical-align: bottom;
  width: 120px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: linear-gradient(to bottom, #5ba4a4 0%, #4e8c8a 100%);
  color: #fff;
  font-size: 13px; /* 800px内に収まるよう微調整 */
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  margin-right: 3px;
  box-shadow: 2px 0 2px rgba(0,0,0,0.1);
  transition: all 0.2s;
}

.tabs label:hover {
  background: #cfc;
  color: #036;
}

/* 選択されたタブ */
.tabs input:checked + label {
  background: #fff;
  color: #036;
  height: 41px;
  position: relative;
  z-index: 10;
}

/* コンテンツエリア：ここも800pxに固定 */
.content {
  display: block;
  width: 800px;
  min-height: 500px; /* 縦の表示域が低い場合はここを大きくする */
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0 5px 5px 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  position: relative;
  z-index: 5;
  margin-top: -1px;
  font-size: 16px; /* 中身の文字サイズを戻す */
}

/* 各コンテンツの表示切り替え */
.content > div {
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
  display: none; /* 通常は非表示 */
}

/* 選択時の挙動 */
#tab1:checked ~ .content .content1,
#tab2:checked ~ .content .content2,
#tab3:checked ~ .content .content3,
#tab4:checked ~ .content .content4,
#tab5:checked ~ .content .content5,
#tab6:checked ~ .content .content6 {
  display: block; /* absoluteを使わずblockにすることで縦幅を確保 */
}