/* 全体 */
body {
    font-family: 'Noto Sans JP', sans-serif;
	background-color: #EBF5FF;
	opacity: 50;
	max-width: 100%;
	overflow-x: hidden;
	touch-action: pan-y;
	overscroll-behavior-x: none;
}

.fixed-image {
  max-width: 100%;
  max-height: 100%;
}

.block a {
	cursor: pointer;
}

#loading,
#support-result {
	display: none;
}

/* ヘッダー */
.header-background {
	padding: 5px 0;
	position: relative;
	width: 100%;
	font-weight: 800;
	color: #000000;
	letter-spacing: 0;
	line-height: normal;
	background-color: #EBF5FF;
	opacity: 50;
	display: flex;
}

.header-img {
	margin: 8px 0 8px 0;
	height: 18px;
	object-fit: cover;
}

@media (max-width: 768px) {
	.header-img {
		height: 15px;
	}
}

.support-logo {
	width: 960px;
	border: 8px solid rgba(118, 182, 221, 0.5);
	border-radius: 12px;
}

@media (max-width: 992px) {
	.support-logo {
		width: 760px;
	}
}

@media (max-width: 768px) {
	.support-logo {
		width: 100%;
		border: none;
		border-radius: 0px;
	}
}

@media (max-width: 768px) {
	#support-result {
		width: 90vw;
	}
}

.container {
	width: 760px;
	--bs-gutter-x: 0;
	--bs-gutter-y: 0;
}

@media (max-width: 992px) {
	.container {
		width: 760px;
	}
}

@media (max-width: 768px) {
	.container {
		width: 100vw;
	}
}

.description {
	color: #164572;
	font-weight: bold;
	margin-top: 10px;
}

@media (max-width: 768px) {
	.description {
		font-size: 0.9rem;
	}
}

.main-contents {
	width: 768px;
	background-color: white;
	border-radius: 12px;
}

@media (max-width: 992px) {
	.main-contents {
		width: 768px;
	}
}

@media (max-width: 768px) {
	.main-contents {
		width: 90vw;
	}
}

.support-form {
	max-width: 35%;
}

@media (max-width: 768px) {
	.support-form {
		max-width: 80%;
	}
}

.support-form-select {
	width:99%;
	text-align:-webkit-center;
	text-align-last: center;
	padding:0.375rem 0;
	font-weight: bold;
	color: #1a1a1a;
}

.support-form-input {
	width: 99%;
	font-weight: bold;
	color: #1a1a1a;
}

select {
	text-align: center;
	text-align-last: center;
}

option {
	text-align: center;
}

.license-code {
	margin-bottom: 15px;
}

.heading {
	color: #164572;
	font-size: 32px;
	font-weight: bold;
	margin: 20px 0;
	padding-top: 10px;
}

@media (max-width: 768px) {
	.heading {
		font-size: 26px;
	}
}

.form-label {
	color: #164572;
	font-weight: bold;
}

.unit {
	margin-left: 4px;
	width: 1%;
	text-align: center;
	padding-top: 6px;
}

.icon-text{
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 0;
	background: none;
	border: 0;
	color: #164572;
	cursor: pointer;
}
.icon-plus{
	color: #164572;
	width: 20px;
	height: 20px;
	position: relative;
	display: inline-block;
	vertical-align: middle;
	top: -7px;
}
/* プラス記号（中央配置で安定） */
.icon-plus::before,
.icon-plus::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	width: 18px;
	height: 4px;
	background: currentColor;
	transform: translateY(-50%);
}
.icon-plus::after{ transform:translateY(-50%) rotate(90deg); }

/*
.icon-plus {
	color: #164572;
	width: 20px;
	height: 20px;
	position: relative;
	margin: 0 0 15px 0;
}
.icon-plus:before,
.icon-plus:after {
	content: "";
	position: absolute;
	top: 10px;
	width: 20px;
	height: 4px;
	background-color: currentColor;
}
.icon-plus:after {
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
}

.icon-minus {
	color: #164572;
	width: 20px;
	height: 20px;
	position: relative;
	margin-top: 20px;
}
.icon-minus:before,
.icon-minus:after {
	content: "";
	position: absolute;
	top: -1px;
	width: 20px;
	height: 4px;
	background-color: currentColor;
	display: inline-block;
}
.icon-minus:before {
	-webkit-transform: rotate(45deg);
	transform: rotate(45deg);
}
.icon-minus:after {
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
*/

.submit-button {
	margin: 25px 0 10px 0;
	background: #7ED321;
	border: none;
	width: 35%;
	height: 80px;
}

@media (max-width: 992px) {
	.submit-button {
		width: 60%;
	}
}

@media (max-width: 768px) {
	.submit-button {
		width: 80%;
	}
}

.submit-text {
	font-weight: bold;
	font-size: 2rem;
}

.border-1a {
	outline: solid 1px #1a1a1a;
}

.ability-link-btn {
  display: inline-block;
  background: #fff8e6;
  border: 2px solid #164572;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 18px;
  color: #164572;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 320px;
  text-decoration: underline;
}

.ability-link-btn:hover {
  background: #164572;
  color: #fff;
}


/*診断結果*/
.result-window {
  /* 画像サイズとオフセットをまとめて調整できるように変数化 */
  --decor-size: clamp(140px, 28vw, 240px); /* 飾りのサイズ */
  --left-pct: 3%;     /* 左からの基準位置（%） */
  --bottom-pct: 25%;   /* 下からの基準位置（%） */
  --tx: -18%;         /* 画像幅に対するX方向の微調整（左へ） */
  --ty: 22%;          /* 画像高さに対するY方向の微調整（下へ = 少し浮いて見える） */

  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  overflow: hidden;

  /* 文字と重ならないように左下にスペースを確保（サイズに連動） */
  padding-left: calc(var(--decor-size) * 0.75 + max(var(--left-pct), 8px));
  padding-bottom: calc(var(--decor-size) * 0.75 + max(var(--bottom-pct), 8px));
}

/* 飾り画像（左下に置きつつ、%＋transformで”ちょい浮き”） */
.result-image {
  position: absolute;
  left: var(--left-pct);      /* 親の幅に対する% */
  bottom: var(--bottom-pct);  /* 親の高さに対する% */
  transform: translate(var(--tx), var(--ty));
  width: var(--decor-size);
  height: auto;
  object-fit: contain;
  pointer-events: none; /* 飾りならタップ無効が安全 */
}

@media (min-width: 1024px) {
  .result-image {
    left: 10%;             /* ← 左からの距離を広げる */
    transform: translate(-10%, 22%); 
    /* X方向のtranslateを少し減らして、右寄せ感を強調 */
  }
}

/* 任意：狭い端末で少しだけ縮める */
@media (max-width: 480px) {
  .result-window {
    --decor-size: clamp(140px, 24vw, 160px);
  }
}


/*
.result-window {
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	position: relative;
	overflow: hidden;
	min-height: 300px;
	margin-top: 20px;
}

.result-image {
	position: absolute;
	top: 45%;
	left: 60%;
	transform: translate(-150%, -50%);
	width: 250px;
	height: auto;
	object-fit: contain;
}

@media (max-width: 768px) {
	.result-image {
		top: 50%;
		left: 55%;
		width: 140px;
	}
}
*/
.label-result {
	font-weight: 700;
	color: #164572;
	font-size: 28px;
	font-family: "Noto Sans JP", Helvetica;
}

.label-ability {
	font-weight: 700;
	color: #1a1a1a;
	font-size: 24px;
	font-family: "Noto Sans JP", Helvetica;
}

.result-format {
	font-weight: 700;
	color: #164572;
	font-size: 24px;
	font-family: "Noto Sans JP", Helvetica;
}

.label-level {
	color: #164572;
	font-weight: 600;
}

.label-level-brakets {
	color: #164572;
	font-weight: 500;
	font-size: 30px;
}

.level-result {
	color: #ff9900;
	font-size: 36px;
}

.levelup-level {
	color: #ff9900;
	font-weight: 700;
	font-size: 34px;
}

.input-conditions {
	background-color: #ffffff;
	border:3px solid  #164572;
	border-radius: 12px;
	padding: 24px 32px;
	margin-top: 24px;
	font-family: "Noto Sans JP", Helvetica;
}

.label-input-conditions {
	font-weight: 700;
	color: #164572;
	font-size: 28px;
	margin-bottom: 20px;
	text-align: center;
}

.input-conditions-data {
	font-weight: 500;
	color: #1a1a1a;
	font-size: 22px;
	line-height: 1.6;
	margin-bottom: 12px;
	text-align: center;
}

.input-conditions-data span.label-input-conditions-data {
	display: block;
	font-size: 24px;
	color: #333;
	margin-bottom: 4px;
	font-weight: 700;
}

.external-link-sentence {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	font-family: "Noto Sans JP", sans-serif;
}

.external-link-only {
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.external-link-only:hover {
	color: #2a2a2a;
	text-decoration: none;
}

.levelup-conditions {
	background-color: #ffffff;
	border-radius: 12px;
	padding: 24px 12px;
	margin-top: 24px;
	font-family: "Noto Sans JP", Helvetica;
}

.label-levelup-conditions {
	font-weight: 700;
	color: #164572;
	font-size: 28px;
	margin-bottom: 10px;
	text-align: center;
}

.label-levelup-ability {
	font-weight: 700;
	color: #1a1a1a;
	font-size: 25px;
	margin-bottom: 10px;
	text-align: center;
}

.levelup-conditions-ability  {
	font-weight: 500;
	color: #1a1a1a;
	font-size: 22px;
	margin-bottom: 5px;
	text-align: center;
}

.levelup-conditions-data {
	font-weight: 500;
	color: #1a1a1a;
	font-size: 22px;
	line-height: 1.6;
	margin-bottom: 12px;
	text-align: center;
}

.levelup-conditions-data span.label-levelup-conditions-data {
	display: block;
	font-size: 24px;
	color: #333;
	margin-bottom: 4px;
	font-weight: 700;
}

#ability-description {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
}

#diagnosis-description {
	color: #1a1a1a;
	font-size: 14px;
	font-weight: 600;
	margin-top: 5px;
}

#diagnosis-description p.result-annotation {
	display: block;
	text-align: center !important;
	color: #1a1a1a;
	font-size: 12px;
	font-weight: 600;
	margin-top: 5px;
	margin-inline: auto;
	width: 65%;
}

@media (max-width: 768px) {
	#diagnosis-description {
		font-size: 12px;
		margin-top: 5px;
	}
}

@media (max-width: 768px) {
	#diagnosis-description p.result-annotation {
		font-size: 10px;
		margin-top: 5px;
		width: 85%;
		text-align: left !important;
	}
}

#result-description {
	color: #1a1a1a;
	font-size: 18px;
	font-weight: 600;
	margin-top: 5px;
}

@media (max-width: 768px) {
	#result-description {
		font-size: 13px;
		margin-top: 25px;
	}
}

#next-description {
	color: #164572;
	font-size: 16px;
	font-weight: 600;
	margin-top: 15px;
}

@media (max-width: 768px) {
	#next-description {
		font-size: 13px;
		margin-top: 15px;
	}
}

#link-label {
	font-weight: 600;
}

/* 職種一覧 */
.ability-info {
	width: 960px;
	margin-bottom:1px;
}

.ability-info-back-color {
  background: #fff8e1;
}

@media (max-width: 992px) {
	.ability-info {
		width: 90vw;
	}
}

@media (max-width: 768px) {
	.ability-info {
		width: 90vw;
	}
}

.ability-midcode {
  font-weight: 800;
  margin-right: 6px;
}
.ability-midname {
  font-weight: 700;
}

.ability-link {
  margin-top: 28px;
}

.ability-list {
  margin-top: 6px;
  margin-bottom: 6px;
  text-align: left;
}

.ability-sub {
  margin: 2px 0;
  font-size: 16px;
  color: #164572;
  text-align: left;
  padding-left: 1.5em;
}

.ability-midcat {
  margin: 10px 0 6px;
  font-weight: 700;
  color: #164572;
  font-size: 20px;
  text-align: left;
}


.custom-card {
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	padding: 5px;
	display: flex;
	gap: 15px;
	margin: 5px 0;
	align-items: center;
	height:50px;
	--bs-gutter-x: 0.8rem important;
}

.custom-card .text-content {
	flex: 1;
}
.custom-card h5 {
	font-weight: bold;
	margin-bottom: 3px;
	text-align: center;
	font-size: 15px;
	color: #164572;
}
.custom-card p {
	font-size: 1rem;
	font-weight: 500;
	color: #164572;
}

@media (max-width: 768px) {
	.custom-card {
		padding: 0 10px;
	}
	.custom-card h5 {
		font-size: 14px;
	}
}

.custom-modal {
	max-width: 400px;
}

.annotation {
	font-size: 18px;
}

.pc-img {
	width: 100%;
}

.mobile-img {
	height: 100px;
}

/* プラスと同じ思想：文字サイズに追従、縦中央、hover/focus 付き */
.remove-license-code{
  display:inline-block; position:relative; vertical-align:middle;
  width:20px; height:20px; line-height:1; cursor:pointer;
  color:#164572;
  margin-left:.5em;
  top: -4px;
}

/* × を描画（2本線） */
.remove-license-code::before,
.remove-license-code::after{
  content:""; position:absolute; left:50%; top:50%;
  width:18px; height:4px;
  background:currentColor;
  transform-origin:center;
}
.remove-license-code::before{ transform:translate(-50%,-50%) rotate(45deg); }
.remove-license-code::after { transform:translate(-50%,-50%) rotate(-45deg); }

/* ホバーやフォーカス時のフィードバック（任意） */
.remove-license-code:hover{ opacity:.85; }
.remove-license-code:focus-visible{ outline:2px solid #99c2e6; outline-offset:2px; }

/* クリックしやすい当たり判定だけ広げたい場合（任意） */
.remove-hit{ padding:.35rem; margin-left:.25rem; }

/* フッター */
.footer {
	color: #1a1a1a;
	font-weight: bold;
	margin: 40px 0 20px 0;
}

@media (max-width: 768px) {
	.footer {
		font-size: 0.8rem;
	}
}
