/*
Theme Name: Xwrite child
Version: 2.1.0
Template: xwrite
Description: 「何でも屋」公式Webサイト専用 Xwrite子テーマ（コーポレートカラー #004B8D・ハイブリッド連携UI）
*/

:root {
	--ndm-blue: #004B8D;
	--ndm-blue-dark: #002F5A;
	--ndm-blue-light: #EFF6FF;
	--ndm-accent: #D97706;
	--ndm-green: #16A34A;
	--ndm-border: #CBD5E1;
	--ndm-text: #1E293B;
}

/* Global typography & readability for all generations */
body {
	color: var(--ndm-text);
	line-height: 1.8;
}

/* Header Mega-Menu / Dropdown enhancement for Xwrite */
.header-nav ul li ul.sub-menu,
.gNavi ul li ul {
	min-width: 270px;
	box-shadow: 0 12px 28px rgba(0, 47, 90, 0.16);
	border-top: 3px solid var(--ndm-blue);
	border-radius: 0 0 10px 10px;
}

/* Hero Banner on Front Page */
.ndm-hero {
	background: linear-gradient(135deg, #003366 0%, #004B8D 60%, #026AA7 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 40px 32px;
	margin: 12px 0 32px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 75, 141, 0.18);
}
.ndm-hero-kicker {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.ndm-hero h1,
.ndm-hero h2 {
	color: #ffffff !important;
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 0 14px !important;
	font-size: 1.95rem !important;
	line-height: 1.38 !important;
}
.ndm-hero p {
	color: #E0F2FE;
	font-size: 1.02rem;
	margin: 0 0 22px;
	max-width: 780px;
}
.ndm-hero-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ndm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 13px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	text-decoration: none !important;
	transition: transform 0.15s ease, opacity 0.15s ease;
	cursor: pointer;
}
.ndm-btn:hover {
	transform: translateY(-2px);
	opacity: 0.95;
}
.ndm-btn-primary {
	background: #F59E0B;
	color: #0F172A !important;
	box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.ndm-btn-white {
	background: #ffffff;
	color: #004B8D !important;
}
.ndm-btn-blue {
	background: linear-gradient(135deg, #004B8D, #0066C0);
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(0, 75, 141, 0.25);
}
.ndm-btn-outline {
	background: #ffffff;
	color: #004B8D !important;
	border: 2px solid #004B8D;
}
.ndm-btn-wa {
	background: #16A34A;
	color: #ffffff !important;
}

/* 1-2 Click Ecosystem Card Grid */
.ndm-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin: 20px 0 28px;
}
.ndm-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin: 20px 0 28px;
}
.ndm-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin: 20px 0 28px;
}
@media (max-width: 960px) {
	.ndm-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.ndm-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.ndm-grid-4, .ndm-grid-3, .ndm-grid-2 { grid-template-columns: 1fr; }
	.ndm-hero { padding: 26px 20px; }
	.ndm-hero h1, .ndm-hero h2 { font-size: 1.48rem !important; }
}

.ndm-card {
	background: #ffffff;
	border: 1.5px solid #dbeafe;
	border-top: 4px solid #004B8D;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 4px 14px rgba(0, 75, 141, 0.05);
	transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
	text-decoration: none !important;
	color: inherit !important;
}
.ndm-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 75, 141, 0.12);
	border-color: #004B8D;
}
.ndm-card-img {
	width: 100%;
	height: 160px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
	background: #f1f5f9;
}
.ndm-card-tag {
	display: inline-block;
	align-self: flex-start;
	background: #EFF6FF;
	color: #004B8D;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 2px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.ndm-card h3,
.ndm-card h4 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	color: #004B8D !important;
	font-size: 1.12rem !important;
	line-height: 1.4 !important;
}
.ndm-card p {
	font-size: 0.9rem;
	color: #475569;
	margin: 0 0 14px;
	line-height: 1.65;
}
.ndm-card-price {
	font-weight: 800;
	color: #B45309;
	font-size: 0.95rem;
	margin-top: auto;
	padding-top: 8px;
	border-top: 1px dashed #e2e8f0;
}

/* Interactive Ecosystem Tabs */
.ndm-eco-tabs {
	margin: 24px 0 32px;
}
.ndm-eco-tab-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 2px solid #004B8D;
	padding-bottom: 0;
}
.ndm-eco-tab-btn {
	padding: 11px 18px;
	border: 1.5px solid #cbd5e1;
	border-bottom: none;
	background: #f1f5f9;
	color: #334155;
	font-weight: 700;
	font-size: 0.94rem;
	border-radius: 10px 10px 0 0;
	cursor: pointer;
}
.ndm-eco-tab-btn.is-active {
	background: #004B8D;
	color: #ffffff;
	border-color: #004B8D;
}
.ndm-eco-tab-panel {
	display: none;
	background: #f8fbff;
	border: 1.5px solid #004B8D;
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 22px;
}
.ndm-eco-tab-panel.is-active {
	display: block;
}

/* Responsive Pricing Tables */
.ndm-table-wrap {
	overflow-x: auto;
	margin: 18px 0 24px;
	border-radius: 10px;
	border: 1px solid #cbd5e1;
}
.ndm-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
	background: #ffffff;
	font-size: 0.93rem;
}
.ndm-table th,
.ndm-table td {
	padding: 11px 14px;
	border: 1px solid #e2e8f0;
	text-align: left;
}
.ndm-table thead th {
	background: #004B8D;
	color: #ffffff;
	font-weight: 700;
	text-align: center;
}
.ndm-table tbody tr:nth-child(even) {
	background: #f8fafc;
}
.ndm-table td.num {
	text-align: right;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Info / Bank / Notice Callout Boxes */
.ndm-box {
	background: #f8fbff;
	border: 1.5px solid #bfdbfe;
	border-left: 5px solid #004B8D;
	border-radius: 10px;
	padding: 18px 22px;
	margin: 20px 0;
}
.ndm-box-warn {
	background: #fffbeb;
	border-color: #fde68a;
	border-left: 5px solid #d97706;
}
.ndm-bank-card {
	background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
	border: 2px solid #004B8D;
	border-radius: 12px;
	padding: 22px 24px;
	margin: 22px 0;
}
.ndm-bank-card h3 {
	margin: 0 0 10px !important;
	color: #004B8D !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
}

/* Responsive Google Workspace / YouTube Embeds */
.ndm-embed-frame {
	width: 100%;
	border: 1.5px solid #cbd5e1;
	border-radius: 12px;
	overflow: hidden;
	background: #ffffff;
	margin: 18px 0;
}
.ndm-embed-frame iframe {
	width: 100%;
	display: block;
	border: 0;
}
.ndm-video-16x9 {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	margin: 18px 0;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.ndm-video-16x9 iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Accordion Details */
details.ndm-acc {
	background: #ffffff;
	border: 1.5px solid #cbd5e1;
	border-radius: 10px;
	margin: 12px 0;
	overflow: hidden;
}
details.ndm-acc summary {
	padding: 14px 18px;
	font-weight: 700;
	color: #004B8D;
	background: #f8fbff;
	cursor: pointer;
	list-style: none;
}
details.ndm-acc summary::-webkit-details-marker { display: none; }
details.ndm-acc summary::before {
	content: "＋ ";
	font-weight: 800;
}
details.ndm-acc[open] summary::before {
	content: "ー ";
}
details.ndm-acc .ndm-acc-body {
	padding: 16px 20px;
	border-top: 1px solid #e2e8f0;
}

/* Official Business Info Footer Banner */
.ndm-footer-biz {
	background: #002344;
	color: #e2e8f0;
	padding: 36px 20px 28px;
	border-top: 4px solid #004B8D;
	font-size: 0.9rem;
}
.ndm-footer-biz-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 28px;
}
@media (max-width: 767px) {
	.ndm-footer-biz-inner { grid-template-columns: 1fr; gap: 20px; }
	body { padding-bottom: 64px; }
}
.ndm-footer-biz h4 {
	color: #ffffff;
	font-size: 1.05rem;
	margin: 0 0 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 6px;
}
.ndm-footer-biz a {
	color: #93c5fd !important;
	text-decoration: none;
}
.ndm-footer-biz a:hover {
	text-decoration: underline;
}
.ndm-footer-biz ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ndm-footer-biz ul li {
	margin-bottom: 6px;
}

/* Mobile Sticky Quick Bar */
.ndm-mobile-bar {
	display: none;
}
@media (max-width: 767px) {
	.ndm-mobile-bar {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 9999;
		background: #ffffff;
		border-top: 2px solid #004B8D;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
	}
	.ndm-mobile-bar a {
		text-align: center;
		padding: 10px 4px;
		font-size: 12px;
		font-weight: 700;
		text-decoration: none !important;
		color: #004B8D !important;
		border-right: 1px solid #e2e8f0;
	}
	.ndm-mobile-bar a.is-primary {
		background: #004B8D;
		color: #ffffff !important;
	}
	.ndm-mobile-bar a.is-wa {
		background: #16A34A;
		color: #ffffff !important;
		border-right: none;
	}
}
