body {
	height:100%;
	padding: 0px;
	margin: 0px;
	background-color:#FFFFFF;
    font-size: 15px;
}
.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;
}
  .flex-box {
    display: flex;
    gap: 6px;
    padding: 2px;
  } 

#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: #fafafa;    
}

.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-buttons {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  flex: 1;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox対応 */
  -ms-overflow-style: none; /* IE/Edge対応 */
}

.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;
}

.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;
}
