/* ベースフォント（Tailwind の上書き） */
body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
}

:root {
  --brand-blue: #1974D2;
}

.bg-brand-blue { background-color: var(--brand-blue); }
.text-brand-blue { color: var(--brand-blue); }
.border-brand-blue { border-color: var(--brand-blue); }

/* ナビリンク共通 */
.nav-link {
	position: relative;
	font-size: 0.9rem;
	color: #4b5563; /* gray-700 */
	padding-bottom: 0.1rem;
}
.nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -0.25rem;
	width: 0;
	height: 2px;
	background-color: var(--brand-blue); /* blue-700 */
	transition: width 0.4s ease;
}
.nav-link:hover {
}
.nav-link:hover::after {
	width: 100%;
}
.nav-link--active {
	color: var(--brand-blue);
	font-weight: 600;
}
.nav-link--active::after {
	width: 100%;
}

/* SP ナビ */
.mobile-nav {
	max-height: 0;
	overflow: hidden;
	border-top: 1px solid rgba(148, 163, 184, 0.4);
	background-color: #ffffff;
	transition: max-height 0.25s ease;
}
.mobile-nav--open {
	max-height: 260px; /* メニューの高さに合わせて調整 */
}
.mobile-nav-link {
	display: block;
	padding: 0.75rem 1.5rem;
	font-size: 0.9rem;
	color: #4b5563;
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.mobile-nav-link:hover {
	background-color: #f1f5f9;
	color: #111827;
}
.mobile-nav-link--active {
	font-weight: 600;
	color: #1d4ed8;
}

/* ハンバーガーアイコン */
.menu-icon {
	position: relative;
	display: inline-block;
	width: 14px;
	height: 11px;
}
.menu-icon span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background-color: #4b5563;
	border-radius: 9999px;
	transition: transform 0.18s ease, top 0.18s ease, opacity 0.18s ease;
}
.menu-icon span:first-child {
	top: 2px;
}
.menu-icon span:last-child {
	top: 8px;
}
.menu-icon--open span:first-child {
	top: 5px;
	transform: rotate(45deg);
}
.menu-icon--open span:last-child {
	top: 5px;
	transform: rotate(-45deg);
}

/* セクション共通タイトル */
.section-title {
	font-size: 1.25rem;
	font-weight: 700;
	text-align: center;
	color: #1e293b;
	position: relative;
	padding-bottom: 0.9rem;
}
.section-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 72px;
	height: 2px;
	border-radius: 9999px;
	background: linear-gradient(to right, var(--brand-blue), #60a5fa);
}

/* カード系コンポーネント */
.theory-card {
	background-color: #ffffff;
	border-radius: 0.75rem;
	padding: 1.5rem 1.6rem;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(148, 163, 184, 0.3);
}
.theory-title {
	font-size: 1.1rem;
	font-weight: 700;
	color: #1d4ed8;
}

.element-card {
	background-color: #f8fafc;
	border-radius: 0.75rem;
	padding: 1.5rem 1.6rem;
	border: 1px solid rgba(148, 163, 184, 0.45);
}
.element-title {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 0.4rem;
}
.element-text {
	font-size: 0.95rem;
	line-height: 1.9;
	color: #374151;
}

/* Hero 部分のちょっとした補正 */
.hero-image-wrapper {
	min-height: 220px;
}
@media (min-width: 768px) {
	.hero-image-wrapper {
		min-height: 260px;
	}
}

.achievement-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 1.5rem;
	border-radius: 0.75rem;
}

.achievement-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1974D2;
}

.achievement-desc {
	margin-top: 0.25rem;
	color: #475569;
	font-size: 0.9rem;
}

.achievement-list {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #334155;
	line-height: 1.5;
}

/* ファイル入力の見た目調整 */
.dbw-form input[type="file"]{
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
  border-radius: 4px;
  border: 1px solid #1974D2;
  padding: 6px 10px;
}

/* ボタン部分のデザイン（モダンブラウザ） */
.dbw-form input[type="file"]::file-selector-button{
  padding: 6px 12px;
  margin-right: 12px;
  border: none;
  border-radius: 9999px;
  background: #1974D2;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.dbw-form input[type="file"]::file-selector-button:hover{
  background: #1d4ed8;
}

/* Safari など旧ブラウザ用フォールバック */
.dbw-form input[type="file"]::-webkit-file-upload-button{
  padding: 6px 12px;
  margin-right: 12px;
  border: none;
  border-radius: 9999px;
  background: #1974D2;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.dbw-form input[type="file"]::-webkit-file-upload-button:hover{
  background: #1d4ed8;
}