/* カスタムカラー定義 */
:root {
	--turquoise: #00d1b2;
	--dark-blue: #3273dc;
	--light-turquoise: #e8f8f5;
	--gradient-bg: linear-gradient(135deg, var(--turquoise) 0%, var(--dark-blue) 100%);
}

/* 基本スタイル */
body {
	font-size: normal;
	background-color: #f8fafc;
}

/* コンパクトヒーローセクション */
.hero.is-info {
	background: var(--gradient-bg);
}

.hero.is-small .hero-body {
	padding: 1.5rem 1.5rem;
}

.hero .title {
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	margin-bottom: 0.3rem !important;
	line-height: 1.2;
}

.hero .subtitle {
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
	margin-bottom: 0 !important;
}

.mb-2 {
	margin-bottom: 0.5rem !important;
}

/* コンパクトセクション */
.section.is-small {
	padding: 1.5rem 1.5rem;
}

/* カード */
.card {
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border: 1px solid #e2e8f0;
}

.card-header {
	background: linear-gradient(90deg, var(--light-turquoise) 0%, #f0f9ff 100%);
	border-bottom: 2px solid var(--turquoise);
	padding: 0.75rem 1rem;
}

.card-header-title {
	color: var(--dark-blue);
	font-weight: 600;
	font-size: 1.1rem;
}

.card-content {
	padding: 1rem;
}

/* テキストエリア */
textarea {
	font-size: 80% !important;
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace !important;
	border-radius: 6px;
}

textarea.is-small {
	font-size: 75% !important;
}

/* ドラッグ&ドロップ */
.output_parent { 
	position: relative; 
}

#dnd_output {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	text-align: center;
	display: none;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(5px);
	border-radius: 6px;
	z-index: 10;
}

#dnd_output .output_msg {
	margin-top: 3rem;
	color: var(--turquoise);
	font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
	font-size: 110%;
	font-weight: bold;
}

/* コンパクトステップ表示 */
.steps-compact {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	flex-wrap: wrap;
}

.step-text-small {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--dark-blue);
}

.step-arrow-small {
	font-size: 0.8rem;
	color: var(--turquoise);
	font-weight: bold;
}

/* ボタン */
.button.is-info {
	background: #00d1b2 !important;
	border-color: #00d1b2 !important;
	color: white !important;
}

.button.is-info:hover {
	background: #00c4a7 !important;
	border-color: #00c4a7 !important;
	color: white !important;
}

.button.is-primary {
	background: #3273dc !important;
	border-color: #3273dc !important;
	color: white !important;
}

.button.is-primary:hover {
	background: #2366d1 !important;
	border-color: #2366d1 !important;
	color: white !important;
}

/* 言語切り替えボタンの明るい色 */
.button.is-light {
	background: #f5f5f5 !important;
	border-color: #dbdbdb !important;
	color: #363636 !important;
}

.button.is-light:hover {
	background: #eeeeee !important;
	border-color: #dbdbdb !important;
	color: #363636 !important;
}

/* 通知 */
.notification.is-light {
	background-color: #f8fafc;
	border-left: 4px solid var(--turquoise);
	padding: 0.75rem;
}

.notification.is-small {
	padding: 0.5rem 0.75rem;
}

.notification.is-primary.is-light {
	background-color: #eff6ff;
	border-left: 4px solid var(--dark-blue);
}

/* ラベル */
.label.has-text-info {
	color: var(--turquoise) !important;
}

.label.has-text-primary {
	color: var(--dark-blue) !important;
}

.label.is-size-6 {
	font-size: 0.9rem;
	margin-bottom: 0.3rem;
}

/* アイコン */
.icon.has-text-info {
	color: var(--turquoise) !important;
}

.icon.has-text-primary {
	color: var(--dark-blue) !important;
}

/* 入力フィールド */
.input:focus, .textarea:focus {
	border-color: var(--turquoise);
	box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.input.is-info:focus, .textarea.is-info:focus {
	border-color: var(--turquoise);
	box-shadow: 0 0 0 0.125em rgba(0, 209, 178, 0.25);
}

.input.is-primary:focus, .textarea.is-primary:focus {
	border-color: var(--dark-blue);
	box-shadow: 0 0 0 0.125em rgba(30, 58, 138, 0.25);
}

.input.is-small {
	font-size: 0.85rem;
}

/* ヘルプテキスト */
.help {
	color: #64748b;
	font-size: 0.75rem;
	margin-top: 0.2rem;
}

.help.is-size-7 {
	font-size: 0.7rem;
}

/* コンテンツサイズ */
.content.is-small {
	font-size: 0.85rem;
}

.content.is-small ul {
	margin-left: 1rem;
}

.content.is-small li {
	margin-bottom: 0.2rem;
}

/* 絵文字 */
.emoji {
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.15em;
	display: inline-block;
}

/* フィールド間隔調整 */
.field {
	margin-bottom: 0.75rem;
}

.field.is-grouped .control:not(:last-child) {
	margin-right: 0.5rem;
}

/* 詳細（details）要素 */
details summary {
	font-weight: 600;
	padding: 0.25rem 0;
}

details[open] summary {
	margin-bottom: 0.5rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
	.steps-compact {
		flex-direction: column;
		gap: 0.2rem;
	}
	
	.step-arrow-small {
		transform: rotate(90deg);
	}
	
	.hero .title {
		font-size: 1.3rem !important;
	}
	
	.hero .subtitle {
		font-size: 1rem !important;
	}
	
	.card-content {
		padding: 0.75rem;
	}
	
	.section.is-small {
		padding: 1rem;
	}
}

/* 高さ制限 */
@media screen and (max-height: 1024px) {
	textarea {
		max-height: 200px;
	}
	
	.hero.is-small .hero-body {
		padding: 1rem 1.5rem;
	}
	
	.section.is-small {
		padding: 1rem 1.5rem;
	}
}

/* フォーカス時のアクセシビリティ */
.button:focus, .input:focus, .textarea:focus {
	outline: 2px solid var(--turquoise);
	outline-offset: 2px;
}

/* マージン調整 */
.mb-0 {
	margin-bottom: 0 !important;
}

.mt-3 {
	margin-top: 0.75rem !important;
}

.mb-4 {
	margin-bottom: 1rem !important;
}
