body {
	height:100%;
	padding: 0px;
	margin: 0px;
	background-color:#FFFFFF;
    font-size: 15px;
}

 .stereo-frame {
  /* 枠のサイズと色 */
  width: 96%;
  height: 15px; /* この高さは例です。内容に応じて調整してください。 */
  background-color: #f0f0f0; /* 枠の背景色 */

  /* 立体感を出すための影 */
  box-shadow: 
    0 0 15px rgba(0,0,0,0.5), /* 外側のやや広がった影 */
    0 0 5px rgba(0,0,0,0.3) inset, /* 内側の細かい影 */
    0 8px 15px rgba(0,0,0,0.3); /* 下側に強めの影を加えて立体感を出す */

  /* その他のスタイリング */
  margin: 0px auto; /* ページ中央に配置 */
  padding-bottom: 20px; /* 内容と枠の間に少しスペースを作る */
  padding-right: 20px;
  padding-top: 5px;
     font-size: 18px;
     margin-bottom: 10px;
}
.keisan{
    color: #0E0387;
    font-weight: bold;
}
#topsen{
	margin:0px;
	height:3px;
	border: 1px solid #999;
	background-color:#666;
}
#haifu{
	width:100%;
	background-color:#FFC;
	border: 2px solid #F90;
	padding-bottom:3px;
}
#sankou{
	width:100%;
	background-color:#CFF;
	border: 2px solid #3F3;
}
#jyuukyo{
	width: 95%;
	background-color: #CFC;
    padding: 10px;
    margin-bottom: 20px;
}
#setai{
	width:100%;
	background-color:#CFF;
}
.bun{
    width: 97%;
}
#container {
	background-color: #FFF;
	text-align: left;
	font-size:14px;
}
.title1{
    font-size: 15px;
}
#header {
	margin:0px;
	width:auto;
	height:24px;
	border: 1px solid #999;
	padding-left:16px;
	font-size:18px;
	background-color:rgba(102,102,102,1);
	color:#FFF;
}
#wrap {
	width:100%;
	padding: 0px;
	margin-bottom: 0px;
	border-style:1px solid;
	border-color: #963;

}
#bmei {
	text-align:center;
	font-size:18px;
	font-weight:800;
	color:#666;
}

#sub {
	text-align: left;
	font-size: 12px;
	line-height:14px;
}
#naiyou {
	padding: 10px;
	font-size:17px;
	line-height:22px;
}
#subbar{
	background-image: url(images/subbar.jpg);
	line-height:30px;
	font-size:15px;
	color:#FFF;
	font-weight:bold;
	text-align:center;
}

/* 非表示のラジオボタン */
.custom-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
   pointer-events: auto; /* ← これが大事！ */  
}
/* ベーススタイル */
.custom-radio {
  position: relative;
  padding-left: 30px;
  margin-right: 12px;
  cursor: pointer;
  display: inline-block;
  line-height: 22px;
    margin-bottom: 10px;
}

/* カスタムラジオボタンのスタイル */
.custom-radio .radio-btn {
  position: absolute;
  left: 0;
  top: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: solid #C0C0C0;
  border-radius: 50%;
}

/* ラジオボタンがチェックされた時のスタイル */
.custom-radio input[type="radio"]:checked + .radio-btn {
  border-color: #2196F3;
}

.custom-radio input[type="radio"]:checked + .radio-btn::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2196F3;
}

/* チェックマークのスタイル (使用するアイコンに応じて変更) */
.icon-check {
  display: none;
}
.scrollable-tabs {
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: 10px;
}

.tab-btn {
  flex: none;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  background-color: #eee;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
    margin-top: 8px;
    margin-bottom: 0px;
}

.tab-btn.active {
  background-color: #007bff;
  color: white;
}

.tab-btn:hover {
  background-color: #dceeff;
}



.tab-content {
  display: none;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 4px;
  background-color: #ffffff;    
}

.tab-content.active {
  display: block;
  height: auto;
  overflow: auto;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-scroll-container {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.scroll-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
}    
.tab-btn {
  display: inline-block;
  padding: 6px 16px;
  margin-right: 4px;
  font-size: 14px;
  color: #333;
  background: linear-gradient(#fff, #e0e0e0);
  border: 1px solid #aaa;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.tab-btn:hover {
  background: linear-gradient(#f9f9f9, #d8d8d8);
}

.tab-btn.active {
  background: linear-gradient(#cfe3ff, #a0c7ff);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transform: translateY(2px);
}

.tab-buttons::-webkit-scrollbar {
  display: none; /* Chrome/Safari対応 */
}    


.tab-contents button:hover {
  background: #e6f0ff;
}

.custom-select {
  background-color: #f4f4f4;
  border: 2px solid #038EB8;
  border-radius: 12px;
  padding: 5px 5px 5px 5px; /* 右側を広げて余裕をもたせる */
  font-size: 14px;
  font-weight: 500;
  color: #444;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 25px;
  cursor: pointer;
  margin: 4px;
}
.custom-select1 {
  background-color: #f4f4f4;
  border: 2px solid #ff9326;
  border-radius: 12px;
  padding: 5px 5px 5px 5px; /* 右側を広げて余裕をもたせる */
  font-size: 14px;
  font-weight: 500;
  color: #444;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 25px;
  cursor: pointer;
  margin: 4px;
}
.tab-buttons {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  flex: 1;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* ★ iOS Safari対応 */
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x; /* ★ タッチ操作の横スクロールを許可 */
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.custom-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #292828; /* テキストの色を白に */
  margin-left: 20px;
  position: relative;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.custom-checkbox .checkmark {
  height: 18px;
  width: 18px;
  background-color: #848080;
  border-radius: 4px;
  border: 2px solid #aaa;
  margin-right: 8px;
  transition: background-color 0.2s, border-color 0.2s;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: #007bff;
  border-color: #007bff;
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.custom-checkbox .checkmark::after {
  left: 6px;
  top: 2px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.custom-alert {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(20, 20, 20, 0.95);
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  z-index: 9999;
  display: none;  /* ← これが非表示にする設定！ */
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  text-align: center;
  max-width: 80%;
}

.custom-alert-content button {
  margin-top: 12px;
  padding: 6px 16px;
  background: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}
.custom-alert-content button:hover {
  background: #0056b3;
}
.age-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 15px;
  font-family: sans-serif;
}

.age-checkboxes label {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 1px;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
}

.age-checkboxes input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #038EB8; /* チェック色（青系） */
}
.age-checkboxes label:hover {
  background-color: #f0f8ff;
}

.nensyuu-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  font-size: 15px;
  font-family: sans-serif;
}

.nensyuu-checkboxes label {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
}

.nensyuu-checkboxes input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #F74CD1; /* チェック色（青系） */
}
.nensyuu-checkboxes label:hover {
  background-color: #f0f8ff;
}
/* オーバーレイ全体のスタイル */
#spinner-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: none; /* JSで制御 */
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* スピナー本体 */
.spinner {
  width: 80px;
  height: 80px;
  border: 10px solid #f3f3f3;
  border-top: 10px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* テキスト表示 */
.spinner-text {
  margin-top: 16px;
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 5px #000;
}

/* 回転アニメーション */
@keyframes spin {
  to { transform: rotate(360deg); }
}
    .zone-checkboxes {
      display: flex;
      justify-content: left;
      gap: 6px;
      margin-top: 10px;
    }
    .zone-checkboxes label {
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 2px;
    }
    .zone-checkboxes label span::before {
      content: '';
      display: inline-block;
      width: 14px;
      height: 14px;
      margin-right: 4px;
      vertical-align: middle;
      border-radius: 2px;
    }
    .zone-checkboxes label:nth-child(1) span::before { background-color: red; }
    .zone-checkboxes label:nth-child(2) span::before { background-color: orange; }
    .zone-checkboxes label:nth-child(3) span::before { background-color: green; }
    .zone-checkboxes label:nth-child(4) span::before { background-color: blue; }
    }