 * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Noto Sans JP", sans-serif;
  }

  body {
	background: linear-gradient(135deg, #0c1e3e 0%, #152c57 100%);
	color: #fff;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 15px;
	font-size: 14px;
  }
.container {
	width: 375px;
	height: 667px;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border-radius: 25px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.1);
	position: relative;
	/* overflow-y: auto; */
  }

  .screen {
	padding: 25px 20px;
	display: none;
  }

  .screen.active {
	display: block;
  }

  .header {
	text-align: center;
	margin-bottom: 20px;
  }

  .header h1 {
	font-size: 22px;
	font-weight: 700;
	background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 20px;
	letter-spacing: 0.5px;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
  }

  .content {
	background: rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 20px 15px;
	margin-bottom: 20px;
	box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .input-section {
	text-align: center;
  }

  .input-section p {
	margin-bottom: 15px;
	color: #c5d5ff;
	line-height: 1.6;
	font-size: 15px;
	min-height: 5em;
  }

  /* ロボットGIFを動画に置き換え */
  .robot-container {
	width: 120px;
	height: 120px;
	margin: 0 auto 15px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
	background: linear-gradient(135deg, #1a3a75 0%, #2a4a95 100%);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }

  .robot-container video {
	width: 100%;
	height: 108%;
	object-fit: cover;
  }

  .input-container {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 15px;
	padding: 12px;
	margin-bottom: 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .input-container label {
	display: block;
	text-align: left;
	margin-bottom: 8px;
	color: #a0b9e6;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	font-size: 13px;
	line-height: 1.4;
  }

  .input-container input {
	width: 100%;
	padding: 12px;
	border-radius: 12px;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	font-size: 14px;
	outline: none;
  }

  .input-container input::placeholder {
	color: #8a9cc5;
  }

  .analyze-btn {
	display: block;
	width: 100%;
	padding: 15px;
	border-radius: 15px;
	border: none;
	background: linear-gradient(90deg, #00c6ff 0%, #0072ff 100%);
	color: white;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
	position: relative;
	margin-top: 5px;
  }

  .analyze-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 114, 255, 0.6);
  }

  /* 呼吸灯效果 */
  .breathing {
	animation: breathing 2.5s infinite ease-in-out;
  }

  @keyframes breathing {
	0% {
	  box-shadow: 0 0 0 0px rgba(0, 198, 255, 0.5);
	}
	70% {
	  box-shadow: 0 0 0 15px rgba(0, 198, 255, 0);
	}
	100% {
	  box-shadow: 0 0 0 0px rgba(0, 198, 255, 0);
	}
  }

  .stats {
	display: flex;
	justify-content: space-between;
	margin-top: 15px;
  }

  .stat-item {
	text-align: center;
	flex: 1;
	min-width: 0;
	padding: 0 4px;
  }

  .stat-value {
	font-size: 16px;
	font-weight: 700;
	color: #00c6ff;
	margin-bottom: 3px;
	white-space: nowrap;
  }

  .stat-label {
	font-size: 11px;
	color: #a0b9e6;
	white-space: nowrap;
  }

  /* 分析画面 */
  .result-section {
	text-align: center;
	padding: 20px 0;
  }

  .result-section h3 {
	font-size: 20px;
	margin-bottom: 12px;
	color: #fff;
  }

  .result-section p {
	color: #c5d5ff;
	margin-bottom: 20px;
	line-height: 1.6;
	font-size: 14px;
  }

  .line-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #06c755;
	color: white;
	padding: 13px 20px;
	border-radius: 15px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(6, 199, 85, 0.4);
	animation: breathing 2.5s infinite ease-in-out;
	white-space: nowrap;
	border: none;
	cursor: pointer;
  }

  .line-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(6, 199, 85, 0.6);
  }

  .disclaimer {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 15px;
	padding: 15px;
	font-size: 10px;
	color: #8a9cc5;
	line-height: 1.6;
	margin-top: 20px;
  }

  .footer {
	text-align: center;
	padding: 15px 0 5px;
	font-size: 10px;
	color: #8a9cc5;
  }

  .footer-links {
	margin-bottom: 10px;
  }

  .footer-links a {
	color: #a0b9e6;
	text-decoration: none;
	margin: 0 8px;
	font-size: 11px;
  }

  /* モーダルスタイル */
  .modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	justify-content: center;
	align-items: center;
	backdrop-filter: blur(5px);
  }

  .modal-content {
	background: rgba(30, 40, 80, 0.95);
	border-radius: 25px;
	padding: 25px;
	width: 90%;
	max-width: 350px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	position: relative;
  }

  .loading-animation {
	margin: 20px auto;
	width: 65px;
	height: 65px;
	position: relative;
  }

  .loading-circle {
	position: absolute;
	width: 100%;
	height: 100%;
	border: 3px solid transparent;
	border-top-color: #00c6ff;
	border-radius: 50%;
	animation: spin 1.5s linear infinite;
  }

  .loading-circle:nth-child(2) {
	border: 3px solid transparent;
	border-top-color: #0072ff;
	animation: spin 1.2s linear infinite;
	width: 70%;
	height: 70%;
	top: 15%;
	left: 15%;
  }

  .loading-circle:nth-child(3) {
	border: 3px solid transparent;
	border-top-color: #00c6ff;
	animation: spin 0.8s linear infinite;
	width: 50%;
	height: 50%;
	top: 25%;
	left: 25%;
  }

  @keyframes spin {
	0% {
	  transform: rotate(0deg);
	}
	100% {
	  transform: rotate(360deg);
	}
  }

  .modal h3 {
	font-size: 20px;
	margin-bottom: 12px;
	color: #00c6ff;
  }

  .modal p {
	color: #c5d5ff;
	margin-bottom: 20px;
	font-size: 14px;
  }

  .modal-result {
	display: none;
	animation: fadeIn 0.5s ease-in-out;
  }

  @keyframes fadeIn {
	from {
	  opacity: 0;
	  transform: translateY(20px);
	}
	to {
	  opacity: 1;
	  transform: translateY(0);
	}
  }

  .analysis-complete {
	margin: 12px 0;
	color: #00c6ff;
	font-size: 16px;
	font-weight: 500;
  }

  .analysis-steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
  }

  .step {
	text-align: center;
	position: relative;
	flex: 1;
	min-width: 0;
  }

  .step-icon {
	width: 45px;
	height: 45px;
	margin: 0 auto 8px;
	background: linear-gradient(135deg, #0c1e3e 0%, #1a3a75 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #00c6ff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }

  .step-label {
	font-size: 12px;
	color: #a0b9e6;
	min-height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
  }

  .step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 22px;
	right: -15%;
	width: 30%;
	height: 2px;
	background: rgba(160, 185, 230, 0.3);
  }

  .completed .step-icon {
	background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
	color: white;
  }

  .completed .step-label {
	color: #fff;
  }

  /* 375px以上の画面サイズで特定の調整 */
  @media (min-width: 375px) {
	.container {
	  width: 100%;
	  height: 100%;
	  max-width: 375px;
	  /* max-height: 667px; */
	}

	.header h1 {
	  font-size: 22px;
	}

	.input-container label {
	  font-size: 13px;
	}

	.input-section p {
	  font-size: 15px;
	}
  }

  /* 414px以上の画面サイズ用 */
  @media (min-width: 414px) {
	.container {
	  max-width: 414px;
	  /* max-height: 736px; */
	}

	.header h1 {
	  font-size: 24px;
	}

	.input-container label {
	  font-size: 15px;
	}

	.input-section p {
	  font-size: 16px;
	}
  }

  /* 小さい画面サイズ用の調整 */
  @media (max-width: 320px) {
	.input-section p {
	  font-size: 14px;
	}

	.input-container label {
	  font-size: 12px;
	}
  }