/*****************************
必須の表示
******************************/
.hissu {
    padding: 3px;
    color: #d70303;
    font-size: 9px;
    border: 1px solid #d70303;
    border-radius: 5px;
    vertical-align: middle;
}

.block,
.block-start {
	margin: 10px;
	background: white;
	padding: 10px;
	border-radius: 10px;
}

/*****************************
input textとtextareaの設定
******************************/
textarea {
    line-height: 16px;
}

.input-container,
.textarea-container {
	position: relative;
	width: 100%;
	display: flex;
    margin-top: 2px;
	padding: 10px 0;
	gap: 4px;
	border: none;
	border-bottom: 1px solid #ccc;
}

/* 入力フィールドの基本スタイル */
.input-container input[type="text"],
.textarea-container textarea {
	width: 100%;
	border: none;
	resize: none;
	flex: 1;
	padding: 4px 0;
	font-size: 16px;
	outline: none;
	background-color: transparent;
}

/* 中央から広がるアニメーション */
.input-container::after,
.textarea-container::after {
	content: "";
	position: absolute;
	bottom: -2px;
	left: 50%;
	width: 0%; 
	height: 2px;
	background-color: #5B33AA;
	transition: width 0.3s ease-in-out, left 0.3s ease-in-out, opacity 0s linear 0.3s;
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
}

/* フォーカス時に中央から左右に広がる */
.input-container:focus-within::after{
	width: 100%; 					/* 全体に広がる */
	left: 0; 						/* 左端に移動 */
	transform: translateX(0);
	opacity: 1; 					/* フォーカス時に表示 */
	visibility: visible; 			/* 表示 */
	transition: width 0.3s ease-in-out, left 0.3s ease-in-out, opacity 0s linear;
}

/* 中央から広がるアニメーション */
.textarea-container::after {
	content: "";
	position: absolute;
	bottom: 0px;
	left: 50%; 						/* 初期状態は中央 */
	width: 0%; 						/* 初期状態では非表示 */
	height: 2px;
	transition: width 0.3s ease-in-out, left 0.3s ease-in-out, opacity 0s linear 0.3s;
	transform: translateX(-50%);
	opacity: 0; 					/* 初期状態で透明 */
	visibility: hidden; 			/* 完全に隠す */
}

/* フォーカスが外れたら中央に戻しつつ透明にする */
.input-container:not(:focus-within)::after {
	width: 0%; 						/* 幅をゼロにする */
	left: 50%; 						/* 中央に戻す */
	transform: translateX(-50%);
	opacity: 0; 					/* 透明にする */
	visibility: hidden; 			/* 完全に消す */
	transition: width 0.3s ease-in-out, left 0.3s ease-in-out, opacity 0s linear 0.3s;
}

/* フォーカス時に中央から左右に広がる */
.textarea-container:focus-within::after{
	width: 100%; 					/* 全体に広がる */
	left: 0; 						/* 左端に移動 */
	bottom: -1px;
	transform: translateX(0);
	opacity: 1; 					/* フォーカス時に表示 */
	visibility: visible; 			/* 表示 */
	transition: width 0.3s ease-in-out, left 0.3s ease-in-out, opacity 0s linear;
}

/*****************************
プレースホルダーの色 
*******************************/
::placeholder {
	color: #aaabac;
}

/*****************************
タイトルの大きい文字
*******************************/
.title {
	font-size: 20px;
	line-height: 20px;
	margin: 0;
	margin-top: 10px;
	padding: 0;
}

/*****************************
エラーメッセージ
*******************************/
.error {
	position: relative;
	color: red;
	font-size: 14px;
	border-top: 1px solid red;
	display: none;
	width: 100%;
	height: auto;
}

/********************************
ラジオボタンの設定
*********************************/
.radio-container {
	display: flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	gap: 8px; 				/* ボタンとラベルの間のスペース */
	margin-top: 6px; 
    margin-bottom: 12px; 
	overflow: hidden;
}

input[type="radio"] {
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	accent-color: #5B33AA;
}

.radio-group{
	margin: -5px;
	padding: 5px;
	margin-bottom: -1px;
	padding-bottom: 1px;

}

/* ラジオボタンのフォーカス時の枠 */
.radio-group:focus-within {
	outline: none; 
}

/********************************
チェックボックスの設定
*********************************/
.checkbox-container {
	display: flex;
	align-items: center;
	cursor: pointer;
	position: relative;
	gap: 10px; 				/* チェックボックスと文字の間を広げる */
	margin-bottom: 10px; 	
}

input[type="checkbox"] {
	width: 20px;
	height: 20px;
	border: 2px solid #ccc;
	flex-shrink: 0; /* チェックボックスは絶対縮まない */
}

.checkbox-group {
	margin: -5px;
	padding: 5px;
	margin-bottom: -1px;
	padding-bottom: 1px;
}

/* フォーカス時の枠 */
.checkbox-container:focus-within {
  outline: none; 
}

.send-container  {
	position: relative;
	width: 120%;
	border: none;
	text-align: left;
}

#confirm{
	width: 150px;
	height: 40px;
	line-height: 30px;
	margin-bottom: 10px;
	background: #5B33AA;
	border-radius: .5rem;
	color: white;
	border: none;
	cursor: pointer;
}

#kakunin {
	display: none;
}

.hidden {
    display: none;
}


#form-view,
#sended {
	position: absolute;
	left: calc(100vw - 500px);
	width: 500px;
	height: 100vh;
	overflow: scroll;
	background: #3c01ff18;
	color: black;
	text-align: left;
	padding: 10px;
}

#sended {
	display: none;
}

#sended table,
#sended table tr,
#sended table tr th,
#sended table tr td{
	border: 1px solid gray;
	color: black;
}

#sended table {
	width: 100%;
}

#sended table tr th {
	background: white;
	width: 25%;
	padding: 5px;
	font-weight: normal;
	text-align-last: justify;
	text-align:justify;
	padding-left: 15px;
	padding-right: 15px;
}

#sended table tr td {
	background: white;
	width: 75%;
	padding: 5px;
	padding-left: 15px;
}

#content-application table tr td{
	padding: 5px;
	border-top: 1px solid gray;
	border-bottom: 1px solid gray;
}

#sended-btn {
	position: relative;
	display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: center;
	width: 100%;
    padding-top: 10px;
}

.btn {
	display: flex;
  	align-items: center;
	gap: .5rem;
	padding: 5px 1.2rem;
	border-radius: .5rem;
	border: none;
	background: #5B33AA;
	color: #fff;
	font-weight: bold;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn .icon {
    width: 1.2em;
    height: 1.2em;
    fill: currentColor; /* ボタンの文字色に追随＝オレンジ */
}
