/* ===============================
   minpro PDF準拠デザイン 修正版
   =============================== */
:root {
}

/* -------------------------------
   WordPressテーマ側の崩れ対策
-------------------------------- */
/* トップページではテーマ側のヘッダー・フッター・メニューを非表示 */
body.home .wp-site-blocks > header,
body.home .wp-site-blocks > footer,
body.home .wp-site-blocks > .wp-block-template-part,
body.home .site-header,
body.home .site-footer,
body.home header.wp-block-template-part,
body.home footer.wp-block-template-part {
	display: none !important;
}

/* ページタイトルや余計な余白を消す */
body.home .entry-header,
body.home .entry-title,
body.home .wp-block-post-title {
	display: none !important;
}

/* WordPressテーマの横幅制限を解除 */
body.home,
body.home .wp-site-blocks,
body.home main,
body.home .entry-content,
body.home .wp-block-post-content,
body.home .is-layout-constrained,
body.home .is-layout-flow {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Gutenbergの中央寄せ制限を解除 */
body.home .is-layout-constrained > * {
	max-width: none !important;
}

/* 全体 */
html {
	scroll-behavior: smooth;
}

body.home {
	background: #fff !important;
}

body.home .mp-site {
	width: 100vw !important;
	max-width: none !important;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	color: var(--mp-text);
	background: var(--mp-bg);
	font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Yu Gothic Medium", system-ui, sans-serif;
	line-height: 1.8;
	overflow-x: hidden;
}

.mp-site * {
	box-sizing: border-box;
}

.mp-site a {
	color: inherit;
	text-decoration: none;
}

.mp-site img {
	display: block;
	max-width: 100%;
}

/* -------------------------------
   Header
-------------------------------- */
.mp-header {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100%;
	height: 76px;
	padding: 0 36px;
	background: rgba(255, 255, 255, 0.96);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mp-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	letter-spacing: -.03em;
}

.mp-brand img {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.mp-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

.mp-nav a {
	position: relative;
	padding: 28px 0;
	color: #303236;
}

.mp-nav a::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 18px;
	width: 0;
	height: 4px;
	background: var(--mp-accent);
	border-radius: 999px;
	transform: translateX(-50%);
	transition: width .2s ease;
}

.mp-nav a:hover::after {
	width: 100%;
}

/* -------------------------------
   Hero
-------------------------------- */
.mp-hero {
	min-height: 650px;
	display: flex;
	align-items: center;
	padding: 80px 5vw;
	background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 38%,
      rgba(255, 255, 255, 0.55) 62%,
      rgba(255, 255, 255, 0.12) 100%), var(--hero-image);
	background-size: cover;
	background-position: center right;
	background-repeat: no-repeat;
}

.mp-hero-content {
	max-width: var(--mp-max);
	width: 100%;
	margin: 0 auto;
}

.mp-hero h1 {
	margin: 0 0 26px !important;
	padding: 0 !important;
	font-size: clamp(40px, 5vw, 66px) !important;
	line-height: 1.45 !important;
	font-weight: 900 !important;
	letter-spacing: -.06em;
	color: #303236;
}

.mp-hero p {
	margin: 0 0 34px !important;
	padding: 0 !important;
	font-size: clamp(18px, 2.2vw, 26px) !important;
	font-weight: 800;
	color: #4e5358;
	line-height: 1.8;
}

/* -------------------------------
   Common
-------------------------------- */
.mp-section {
	max-width: var(--mp-max) !important;
	margin: 0 auto !important;
	padding: 86px 24px !important;
	scroll-margin-top: 100px;
}

.mp-section-head {
	margin-bottom: 54px;
}

.mp-section-head h2 {
	margin: 0 !important;
	padding: 0 !important;
	font-size: clamp(38px, 5vw, 56px) !important;
	line-height: 1.2 !important;
	font-weight: 900 !important;
	letter-spacing: -.05em;
	color: #303236;
}

.mp-section-head p {
	margin: 10px 0 0 !important;
	color: var(--mp-muted);
	font-size: 18px;
	font-weight: 600;
}

.mp-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 54px;
	padding: 0 34px;
	border-radius: 999px;
	font-size: 20px;
	font-weight: 900;
	line-height: 1;
	border: none;
	cursor: pointer;
	transition: transform .2s ease, opacity .2s ease;
}

.mp-button:hover {
	transform: translateY(-2px);
	opacity: .9;
}

.mp-button-accent {
	background: var(--mp-accent);
	color: #333;
}

.mp-button-dark {
	background: #565656;
	color: var(--mp-accent);
}

/* -------------------------------
   Company
-------------------------------- */
.mp-company-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 80px;
	align-items: center;
}

.mp-company-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
}

.mp-company-logo img {
	width: min(260px, 70%);
	object-fit: contain;
}

.mp-company-list {
	margin: 0;
	padding: 0;
}

.mp-company-list div {
	margin-bottom: 34px;
}

.mp-company-list dt {
	font-size: 24px;
	font-weight: 800;
	color: #444;
}

.mp-company-list dd {
	margin: 6px 0 0;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.8;
	color: #42464a;
}

/* -------------------------------
   Business
-------------------------------- */
.mp-business-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 36px;
}

.mp-business-card {
	text-align: center;
}

.mp-business-image {
	height: 245px;
	margin-bottom: 34px;
	overflow: hidden;
	background: #f1f1f1;
}

.mp-business-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mp-business-logo-box {
	border: 1px solid #222;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 36px;
}

.mp-business-logo-box img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.mp-business-card h3 {
	margin: 0 0 22px !important;
	padding: 0 !important;
	font-size: clamp(32px, 4vw, 44px) !important;
	line-height: 1.3 !important;
	font-weight: 800 !important;
	letter-spacing: -.04em;
	color: #3a3d40;
}

.mp-business-card p {
	max-width: 440px;
	margin: 0 auto 24px !important;
	color: #444;
	font-size: 17px;
	font-weight: 600;
	text-align: left;
}

/* -------------------------------
   News
-------------------------------- */
.mp-section-title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.mp-news-arrow {
	margin-top: 72px;
	font-size: 36px;
	font-weight: 400;
	line-height: 1;
}

.mp-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mp-news-card {
	border-radius: 18px;
	overflow: hidden;
	transition: transform .2s ease, opacity .2s ease;
}

.mp-news-card:hover {
	transform: translateY(-4px);
	opacity: .92;
}

.mp-news-card img {
	width: 100%;
	aspect-ratio: 1 / .86;
	object-fit: cover;
	border-radius: 18px;
	background: #f2f2f2;
}

.mp-news-card h3 {
	min-height: 66px;
	margin: 14px 0 12px !important;
	padding: 0 !important;
	font-size: 16px !important;
	line-height: 1.7 !important;
	font-weight: 800 !important;
	color: #3a3d40;
}

.mp-news-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #8a8f94;
	font-size: 12px;
	font-weight: 700;
}

.mp-news-meta span {
	padding: 4px 10px;
	background: #f0f1f2;
	color: #777;
	border-radius: 4px;
}

/* -------------------------------
   Privacy
-------------------------------- */
.mp-privacy {
	max-width: 1180px !important;
}

.mp-policy-box {
	font-size: 15px;
	line-height: 2;
	color: #333;
}

.mp-policy-box h3 {
	margin: 28px 0 8px !important;
	padding: 0 !important;
	font-size: 20px !important;
	font-weight: 900 !important;
	color: #303236;
}

.mp-policy-box p {
	margin: 0 0 12px !important;
}

/* -------------------------------
   Contact
-------------------------------- */
.mp-contact-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 36px;
	background: #fff;
	border: 1px solid #edf0f2;
	border-radius: 28px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.mp-contact-form {
	display: grid;
	gap: 20px;
}

.mp-contact-form label {
	display: grid;
	gap: 8px;
	font-weight: 800;
	color: #3a3d40;
}

.mp-contact-form input,
.mp-contact-form select,
.mp-contact-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #dfe3e6;
	border-radius: 12px;
	background: #fff;
	font: inherit;
	color: #333;
}

.mp-contact-form textarea {
	resize: vertical;
}

.mp-contact-form button {
	width: fit-content;
	margin-top: 12px;
}

/* -------------------------------
   Footer
-------------------------------- */
.mp-footer {
	padding: 56px 24px;
	text-align: center;
	background: #fafafa;
}

.mp-footer-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 24px;
	font-weight: 900;
}

.mp-footer-brand img {
	width: 34px;
	height: 34px;
	object-fit: contain;
}

.mp-footer p {
	margin: 0 0 8px !important;
	font-weight: 800;
}

.mp-footer small {
	color: #777;
}

/* -------------------------------
   Responsive
-------------------------------- */
@media (max-width: 960px) {
	.mp-header {
		height: auto;
		min-height: 72px;
		padding: 16px 20px;
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.mp-nav {
		width: 100%;
		gap: 16px;
		overflow-x: auto;
		padding-bottom: 4px;
		font-size: 14px;
	}
	
	.mp-nav a {
		padding: 6px 0 12px;
	}
	
	.mp-nav a::after {
		bottom: 4px;
	}
	
	.mp-hero {
		min-height: 560px;
		padding: 70px 24px;
		background-position: center right;
	}
	
	.mp-company-grid,
	  .mp-business-grid,
	  .mp-news-grid {
		grid-template-columns: 1fr;
	}
	
	.mp-company-grid {
		gap: 28px;
	}
	
	.mp-company-logo {
		min-height: 220px;
	}
	
	.mp-company-list dd {
		font-size: 21px;
	}
	
	.mp-business-image {
		height: 220px;
	}
	
	.mp-section-title-row {
		align-items: center;
	}
	
	.mp-news-arrow {
		margin-top: 12px;
	}
}

@media (max-width: 560px) {
	.mp-hero {
		min-height: 520px;
		background-image: linear-gradient(90deg,
	        rgba(255, 255, 255, 0.98) 0%,
	        rgba(255, 255, 255, 0.92) 68%,
	        rgba(255, 255, 255, 0.45) 100%), var(--hero-image);
	}
	
	.mp-hero h1 {
		font-size: 36px !important;
	}
	
	.mp-hero p {
		font-size: 17px !important;
	}
	
	.mp-section {
		padding: 64px 20px !important;
	}
	
	.mp-button {
		width: 100%;
		min-height: 52px;
		padding: 0 22px;
		font-size: 17px;
	}
	
	.mp-contact-card {
		padding: 24px 18px;
	}
}
/* 投稿にアイキャッチがない場合の代替表示 */
.mp-news-placeholder {
  width: 100%;
  aspect-ratio: 1 / 0.86;
  border-radius: 18px;
  background: #f4f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c7df00;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

/* 投稿がない場合 */
.mp-news-empty {
  margin: 0;
  padding: 28px;
  border-radius: 18px;
  background: #f7f8f8;
  color: #666b70;
  font-weight: 700;
}

/* Newsカード内リンクの崩れ防止 */
.mp-news-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* 投稿タイトルが長い場合の見た目調整 */
.mp-news-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 投稿ページ下部の投稿者・投稿日表示を非表示 */
.single-post .entry-footer,
.single-post .entry-meta,
.single-post .posted-on,
.single-post .byline,
.single-post .author,
.single-post .wp-block-post-author,
.single-post .wp-block-post-date {
  display: none !important;
}

/* アバター付きの投稿者情報ブロック対策 */
.single-post .wp-block-group:has(.wp-block-post-author),
.single-post .wp-block-group:has(.avatar) {
  display: none !important;
}