﻿/* タブ全体のレイアウト */
.tabs {
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/* タブのボタンコンテナ */
.tab-buttons {
  display: flex;
  background-color: #f1f1f1;
  border-bottom: 1px solid #ccc;
}

/* 各タブボタンのスタイル */
.tab-button {
  flex-grow: 1;
  padding: 5px 10px;
  border: none;
  background-color: #f1f1f1;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

  .tab-button:hover {
    background-color: #ddd;
  }

  /* アクティブなタブボタンのスタイル */
  .tab-button.active {
    background-color: #fff;
    border-bottom: 2px solid #007bff;
    font-weight: bold;
  }

/* タブの中身のコンテナ */
.tab-content-container {
  padding: 20px;
  background-color: #fff;
  width: 100%; /* 親要素(max-width: 600px)に合わせる */
  min-width : 320px;
  min-height : 320px;

  box-sizing: border-box; /* paddingを含めたサイズ計算 */
}

/* 各タブの中身のスタイル */
.tab-content {
  display: none; /* 初期状態では非表示 */
}

  /* アクティブなタブの中身を表示 */
  .tab-content.active {
    display: block; /* activeクラスが付いたものだけ表示 */
  }

/* フォームのスタイル（任意） */
form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

form input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
}
