@charset "utf-8";

/* ===== リセット・共通スタイル ===== */
body {
	margin: 0;
	padding: 0;
}

a {
	text-decoration: none;
}

/* ===== 見出しスタイル ===== */
.pt_h1 {
	font-size: 40px !important;
}

.pt_h2 {
	font-size: 36px !important;
}

.pt_h3 {
	font-size: 24px !important;
}

.pt_h4,
.pt_h5,
.pt_h6 {
	font-size: 16px !important;
}

.pt_h5 {
	margin: 0 0 10px 0;
}

/* ===== メインセクション ===== */
#pt_mainsection {
	position: relative;
}

.l-content {
	overflow-x: hidden;
}

/* ===== ボタン共通スタイル ===== */
.btn-common {
	display: inline-block;
	border: none;
	border-radius: 6px;
	padding: 10px 30px;
	color: white !important;
	font-weight: 700;
	background-color: #333333;
	cursor: pointer;
	transition: 0.5s;
	white-space: nowrap;
}

.btn-common::after {
	display: inline-block;
	content: '';
	width: 10px;
	height: 10px;
	border-top: 3px solid #ffffff;
	border-right: 3px solid #ffffff;
	transform: rotate(45deg);
	vertical-align: baseline;
	margin-left: 9px;
}

/* 進めるボタン共通 */
#btn_result,
.pt-rescopy,
.pt_inquiry-a {
	width: 300px;
	background-color: #2b373f;
	margin: 30px 0 20px 0;
	padding: 9px 6px;
	color: white;
	border-radius: 3px;
	font-weight: 600;
}

/* ===== メインコンテンツエリア ===== */
.pt_wrapper {
	display: flex;
	justify-content: center;
}

.pt_outerbox {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	width: 90%;
	height: 100%;
	background-color: #FFFFFF;
	box-shadow: black 0.1px 0.1px 6px 0.1px;
	z-index: 9;
	margin: 20px 0 20px;
}

.pt_innerbox {
	text-align: center;
	margin-top: 10px;
	margin-bottom: 10px;
	width: 40%;
}

/* ===== 通知エリア ===== */
#pwrnotice,
#alarmnotice,
#rebootnotice,
#Initializationnotice {
	display: none;
}

#pwrnotice a,
#alarmnotice a,
#rebootnotice a,
#Initializationnotice a {
	color: #1d3994;
	font-weight: 600;
}

#pwrnotice.active,
#alarmnotice.active,
#rebootnotice.active,
#Initializationnotice.active {
	display: block;
	color: rgb(201, 0, 0);
	text-align: justify;
	margin: 0px 20px 6px 20px;
}

/* ===== ONUランプセクション ===== */
.pt_onulamparea {
	margin: 10px 0 30px 0;
	display: block;
}

.pt_onulamp {
	display: flex;
	justify-content: center;
	width: 100%;
}

.pt_onulamp>form {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 500px;
}

.pt_item-title {
	margin-top: 30px;
	background-color: #202020;
	border-radius: 3px;
	color: white;
	letter-spacing: 0.2em;
	padding: 6px;
	width: 500px;
}

.onulamp-btn_ul {
	display: flex;
	flex-flow: wrap;
}

.lamp-btn {
	border: none;
	border-radius: 3px;
	width: 238px;
	height: 60px;
	background-color: #c8cfdb;
	margin: 6px !important;
	font-size: 18px;
	position: relative;
	box-shadow: 0.1px 0.1px 4px 1px #ccc;
	transition: all 0.3s ease;
}

/* 接続構成スタイル */
.connection-config {
	width: 500px;
	margin: 10px 0;
}

.config-item {
	display: flex;
	align-items: center;
	margin: 8px 0;
}

.config-item label {
	width: 80px;
	text-align: left;
	font-weight: 600;
	margin-right: 10px;
}

.config-item input[type="text"] {
	flex: 1;
	padding: 8px 12px;
	border: 2px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}

.config-item input[type="text"]:focus {
	border-color: #0078d4;
	outline: none;
}

/* ラジオボタンスタイル */
input[type=radio] {
	display: none;
}

input[type="radio"]:checked+label {
	background: white;
	transition: 0.2s;
}

label {
	display: block;
	border-radius: 6px;
	width: 100%;
	height: 100%;
	padding: 11px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
}

/* ランプカラー - 選択時のみ発光 */
.pt_green input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(0, 128, 0, 0.6), 0 0 25px 5px rgba(0, 128, 0, 0.3);
	border: 2px solid green;
}

.pt_orange input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(255, 165, 0, 0.6), 0 0 25px 5px rgba(255, 165, 0, 0.3);
	border: 2px solid orange;
}

.pt_yellow input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(255, 255, 0, 0.6), 0 0 25px 5px rgba(255, 255, 0, 0.3);
	border: 2px solid yellow;
}

.pt_blue input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(0, 0, 255, 0.6), 0 0 25px 5px rgba(0, 0, 255, 0.3);
	border: 2px solid blue;
}

.pt_red input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(255, 0, 0, 0.6), 0 0 25px 5px rgba(255, 0, 0, 0.3);
	border: 2px solid red;
}

.pt_cyan input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(0, 255, 213, 0.6), 0 0 25px 5px rgba(0, 0, 0, 0.3);
	border: 2px solid black;
}

.pt_none input[type="radio"]:checked+label {
	box-shadow: 0 0 15px 3px rgba(0, 0, 0, 0.6), 0 0 25px 5px rgba(0, 0, 0, 0.3);
	border: 2px solid black;
}

/* 点滅ボタン専用のフェードアニメーション */
#line_blink:checked+label {
	box-shadow: 0 0 15px 3px rgba(0, 128, 0, 0.6), 0 0 25px 5px rgba(0, 128, 0, 0.3);
	border: 2px solid green;
	animation: fadeFlash-green 1.5s ease-in-out infinite;
}

/* 緑色のフェード点滅アニメーション */
@keyframes fadeFlash-green {

	0%,
	100% {
		box-shadow: 0 0 8px 2px rgba(0, 128, 0, 0.3), 0 0 15px 3px rgba(0, 128, 0, 0.15);
		opacity: 0.6;
	}

	50% {
		box-shadow: 0 0 20px 4px rgba(0, 128, 0, 0.8), 0 0 35px 8px rgba(0, 128, 0, 0.5);
		opacity: 1;
	}
}

/* ホバー時の軽い発光効果 */
.pt_green:hover {
	box-shadow: 0 0 8px 2px rgba(0, 128, 0, 0.3);
}

.pt_orange:hover {
	box-shadow: 0 0 8px 2px rgba(255, 165, 0, 0.3);
}

.pt_yellow:hover {
	box-shadow: 0 0 8px 2px rgba(255, 255, 0, 0.3);
}

.pt_blue:hover {
	box-shadow: 0 0 8px 2px rgba(0, 0, 255, 0.3);
}

.pt_red:hover {
	box-shadow: 0 0 8px 2px rgba(255, 0, 0, 0.3);
}

.pt_cyan:hover {
	box-shadow: 0 0 8px 2px rgba(0, 255, 213, 0.3);
}

.pt_none:hover {
	box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.3);
}

/* ===== 結果セクション ===== */
.pt_resultbtnarea {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 10px 0 16px 0;
}

.pt_result-box {
	display: none;
}

.pt_result-box.active {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.pt_result-box>.addtext {
	margin: 0 20px;
}

.pt_resultarea {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: auto;
}

.pt_outer-resltarea {
	display: flex;
	justify-content: center;
	text-align: center;
	width: auto;
}

.result-area {
	text-align: start;
	font-weight: 900;
	margin: 2em auto;
	background-color: #FFFFFF;
	padding: 3em 2em 2em;
	position: relative;
	border-radius: 3px;
	border: 2px solid #333333;
}

.result-area .result-frame {
	background-color: #333333;
	font-size: 1em;
	color: #fff;
	padding: 7px 10px;
	line-height: 1;
	position: absolute;
	top: -10px;
	left: 20px;
}

.pt_inquiry-name {
	text-align: center;
	margin-top: 0px !important;
}

.resultlamp {
	width: 330px;
}

/* ===== ボタンスタイル ===== */
#btn_result {
	width: auto;
	margin-top: 10px;
}

.pt-rescopy {
	margin: 10px 0 -6px 0;
}

.pt-rescopy>img {
	height: 20px;
	padding: 0 0 0 10px;
	vertical-align: middle;
}

.pt-rescopy-outer {
	margin: -30px 0 50px 0;
}

.pt-rescopy-inner {
	margin: 0 0 15px 0;
}

/* ===== 問い合わせセクション ===== */
.pt_inquiry {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin-bottom: 30px;
}

.pt_inquiry p {
	font-size: 14px;
	font-weight: 600;
}

.pt_inquiry>.addtext {
	display: flex;
	text-decoration: none;
	margin: 10px 10px 0 10px;
	font-weight: 600;
}

.pt_inquiry>.addtext>ul>li>span {
	position: absolute;
}

.pt_inquiry>.addtext>ul>li>div {
	margin-left: 1.5em !important;
}

.pt_inquiry-a {
	margin: 10px 0 -6px 0;
}

.addtext {
	width: auto;
	text-align: justify;
	text-decoration: underline;
	text-decoration-color: rgb(127, 164, 175);
	transition: 2s;
	font-weight: 600;
	font-size: 14px;
}

/* ===== フォーカススタイル ===== */
:focus {
	outline: 2px solid #0078d4;
	outline-offset: 2px;
	border-radius: 2px;
	transition: outline 0.2s ease;
}

:focus-visible {
	outline: 3px solid #0078d4;
	outline-offset: 2px;
	box-shadow: 0 0 0 1px white;
}

:focus:not(:focus-visible) {
	outline: 1px solid rgba(0, 120, 212, 0.5);
	outline-offset: 1px;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
	outline: 2px solid #0078d4;
	box-shadow: 0 0 4px rgba(0, 120, 212, 0.5);
}

a:focus {
	text-decoration: underline;
	text-underline-offset: 2px;
}

input[type="radio"]:focus+label,
input[type="checkbox"]:focus+label {
	background-color: rgba(0, 120, 212, 0.1);
}

@supports selector(:focus-visible) {
	:focus:not(:focus-visible) {
		outline: 1px solid rgba(0, 120, 212, 0.3);
	}

	:focus-visible {
		outline: 3px solid #0078d4;
		outline-offset: 2px;
	}
}

/* ===== レスポンシブデザイン ===== */
@media screen and (max-width: 820px) {
	.pt_outer-resltarea {
		width: 400px;
	}
}

@media screen and (max-width: 768px) {
	.resultlamp {
		width: 240px !important;
	}

	#btn_result {
		width: 260px;
		white-space: normal;
	}
}

@media all and (max-width: 568px) {
	.pt_item-title {
		width: 260px;
	}

	.onulamp-btn_ul {
		flex-direction: column;
	}

	.pt_mediah2 {
		font-size: 20px !important;
	}

	.pt_mediah3 {
		font-size: 15px !important;
		margin-top: 20px !important;
	}

	.pt_outer-resltarea {
		width: 300px;
	}

	.result-area {
		width: 300px;
	}

	.resultlamp {
		width: 250px;
	}

	.pt_innerbox {
		width: 90%;
	}

	.connection-config {
		width: 280px;
	}

	.config-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.config-item label {
		width: 100%;
		margin-bottom: 4px;
	}

	.config-item input[type="text"] {
		width: 100%;
		box-sizing: border-box;
	}
}

@media all and (max-width: 480px) {
	.pt_onulamp>form {
		width: 280px;
	}

	.pt_item-title {
		width: 280px;
	}

	.lamp-btn {
		width: 260px;
	}

	.resultlamp {
		width: 220px;
	}

	.result-area {
		width: 260px;
		padding: 2em 1em 1em;
	}
}

/* ===== カスタムポップアップスタイル ===== */
.custom-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #333333;
	color: white;
	padding: 20px 30px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	z-index: 9999;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.custom-popup.show {
	opacity: 1;
	visibility: visible;
}

.custom-popup.hide {
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) scale(0.9);
}

/* ===== 日付ピッカースタイル ===== */
.date-picker-container {
	width: 500px;
	margin: 10px 0;
	display: flex;
	justify-content: center;
}

.date-picker {
	width: 300px;
	padding: 12px 16px;
	border: 2px solid #ccc;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	background-color: #ffffff;
	color: #333333;
	transition: all 0.3s ease;
	box-shadow: 0.1px 0.1px 4px 1px #ccc;
}

.date-picker:focus {
	border-color: #0078d4;
	outline: none;
	box-shadow: 0 0 8px 2px rgba(0, 120, 212, 0.3);
}

.date-picker:hover {
	border-color: #0078d4;
	box-shadow: 0 0 4px 1px rgba(0, 120, 212, 0.2);
}

/* ===== 症状テキストエリアスタイル ===== */
.symptom-textarea-container {
	width: 500px;
	margin: 10px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.symptom-textarea {
	width: 480px;
	height: 120px;
	padding: 12px 16px;
	border: 2px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 400;
	background-color: #ffffff;
	color: #333333;
	transition: all 0.3s ease;
	box-shadow: 0.1px 0.1px 4px 1px #ccc;
	resize: vertical;
	font-family: 'BIZ UDGothic', sans-serif;
	line-height: 1.5;
}

.symptom-textarea:focus {
	border-color: #0078d4;
	outline: none;
	box-shadow: 0 0 8px 2px rgba(0, 120, 212, 0.3);
}

.symptom-textarea:hover {
	border-color: #0078d4;
	box-shadow: 0 0 4px 1px rgba(0, 120, 212, 0.2);
}

.symptom-textarea.over-limit {
	border-color: #d32f2f;
	box-shadow: 0 0 8px 2px rgba(211, 47, 47, 0.3);
}

.byte-counter {
	width: 480px;
	text-align: right;
	margin-top: 5px;
	font-size: 12px;
	font-weight: 600;
	color: #666;
}

.byte-counter.over-limit {
	color: #d32f2f;
}

/* レスポンシブ対応 */
@media all and (max-width: 568px) {
	.symptom-textarea-container {
		width: 280px;
	}

	.symptom-textarea {
		width: 260px;
	}

	.byte-counter {
		width: 260px;
	}
}

@media all and (max-width: 480px) {
	.symptom-textarea-container {
		width: 280px;
	}

	.symptom-textarea {
		width: 260px;
		font-size: 13px;
	}

	.byte-counter {
		width: 260px;
		font-size: 11px;
	}
}

/* レスポンシブ対応 */
@media all and (max-width: 568px) {
	.date-picker-container {
		width: 280px;
	}

	.date-picker {
		width: 260px;
	}
}

@media all and (max-width: 480px) {
	.date-picker-container {
		width: 280px;
	}

	.date-picker {
		width: 260px;
		font-size: 14px;
	}
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
	.custom-popup {
		padding: 15px 25px;
		font-size: 14px;
		max-width: 280px;
		text-align: center;
	}
}