/*
Theme Name: MDAUC Marketplace
Theme URI: https://auction.corivapartners.com/
Description: 医療機器BtoB中古オークション専用テーマ（場所貸しモデル）。全幅のマーケットプレイス外枠を提供し、プラグイン mdauc と連携します。
Version: 0.1.0
Author: Central Medience
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: mdauctheme
*/

:root {
	--mt-primary: #0f766e;
	--mt-primary-d: #0b5a54;
	--mt-accent: #1d4ed8;
	--mt-ink: #1f2937;
	--mt-muted: #6b7280;
	--mt-line: #e5e7eb;
	--mt-bg: #f4f6f8;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	color: var(--mt-ink);
	background: var(--mt-bg);
	line-height: 1.6;
}
a { color: var(--mt-accent); }
img { max-width: 100%; height: auto; }

/* ===== ヘッダー ===== */
.mt-header { background: #fff; border-bottom: 1px solid var(--mt-line); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.mt-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.mt-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mt-ink); font-weight: 800; font-size: 20px; white-space: nowrap; }
.mt-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.mt-logo-img { object-fit: contain; border-radius: 9px; }
.mt-logo-text { display: flex; flex-direction: column; line-height: 1.12; letter-spacing: .01em; }
.mt-logo-text .sub { font-size: 11px; color: var(--mt-muted); font-weight: 600; margin-top: 2px; letter-spacing: 0; }
.mt-nav { display: flex; gap: 4px; margin-left: 8px; }
.mt-nav ul, .mt-nav li { display: contents; list-style: none; margin: 0; padding: 0; }
.mt-nav a { text-decoration: none; color: var(--mt-ink); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 8px; }
.mt-nav a:hover { background: var(--mt-bg); color: var(--mt-primary); }
.mt-header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mt-lang { display: flex; border: 1px solid var(--mt-line); border-radius: 8px; overflow: hidden; }
.mt-lang a { padding: 6px 9px; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--mt-muted); border-right: 1px solid var(--mt-line); }
.mt-lang a:last-child { border-right: 0; }
.mt-lang a.is-active { background: var(--mt-primary); color: #fff; }
.mt-btn { display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 8px; }
.mt-btn-primary { background: var(--mt-primary); color: #fff; }
.mt-btn-primary:hover { background: var(--mt-primary-d); }
.mt-btn-ghost { color: var(--mt-ink); border: 1px solid var(--mt-line); }
.mt-btn-ghost:hover { border-color: var(--mt-primary); color: var(--mt-primary); }

/* ===== コンテンツ ===== */
.mt-main { max-width: 1200px; margin: 0 auto; padding: 28px 20px 60px; }
.mt-page-head { margin: 0 0 22px; }
.mt-page-head h1 { font-size: 24px; margin: 0; font-weight: 800; }

/* ===== ヒーロー（トップ） ===== */
.mt-hero { background: linear-gradient(120deg, #0f766e 0%, #115e59 50%, #1d4ed8 130%); color: #fff; border-radius: 16px; padding: 40px 36px; margin-bottom: 30px; }
.mt-hero h1 { font-size: 28px; margin: 0 0 10px; font-weight: 800; line-height: 1.35; }
.mt-hero p { margin: 0 0 20px; opacity: .92; font-size: 15px; }
.mt-hero .mt-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-hero .mt-btn-primary { background: #fff; color: var(--mt-primary); }
.mt-hero .mt-btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.mt-trust { display: flex; gap: 22px; margin-top: 24px; flex-wrap: wrap; font-size: 13px; opacity: .95; }
.mt-trust span::before { content: "✓ "; font-weight: 800; }

/* ===== フッター ===== */
.mt-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.mt-footer-inner { max-width: 1200px; margin: 0 auto; padding: 32px 20px; font-size: 13px; }
.mt-footer a { color: #cbd5e1; text-decoration: none; margin-right: 16px; }
.mt-footer a:hover { color: #fff; }
.mt-footer-company { margin-bottom: 4px; }
.mt-footer-co-name { font-weight: 700; color: #e2e8f0; margin: 0 0 4px; font-size: 14px; }
.mt-footer-co-info { margin: 0; line-height: 1.7; opacity: .85; }
.mt-footer-links { display: flex; flex-wrap: wrap; row-gap: 6px; margin: 16px 0; padding: 16px 0; border-top: 1px solid #1e293b; border-bottom: 1px solid #1e293b; }
.mt-footer .mt-copy { opacity: .7; margin-top: 16px; line-height: 1.7; }

@media (max-width: 720px) {
	.mt-nav { display: none; }
	.mt-hero { padding: 28px 22px; }
	.mt-hero h1 { font-size: 22px; }
}

/* ===== 新トップ ===== */
.mt-hero2 { position: relative; background: radial-gradient(1200px 400px at 80% -10%, #1d4ed8 0%, transparent 60%), linear-gradient(120deg, #0f766e 0%, #115e59 55%, #0b3b6b 130%); color: #fff; border-radius: 20px; padding: 48px 44px 0; margin-bottom: 32px; overflow: hidden; }
.mt-hero2-text { max-width: 560px; position: relative; z-index: 2; padding-bottom: 40px; }
.mt-hero2-eyebrow { display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.mt-hero2 h1 { font-size: 36px; line-height: 1.28; margin: 0 0 14px; font-weight: 900; letter-spacing: .01em; }
.mt-hero2 p { font-size: 15px; opacity: .94; margin: 0 0 24px; max-width: 500px; }
.mt-hero2-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 10px; }
.mt-hero2 .mt-btn-primary { background: #fff; color: var(--mt-primary); }
.mt-hero2 .mt-btn-primary:hover { background: #eafaf7; }
.mt-hero2 .mt-btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.mt-hero2 .mt-btn-ghost:hover { background: rgba(255,255,255,.1); }
.mt-hero2-art { position: absolute; right: 18px; top: 14px; width: 340px; max-width: 42%; z-index: 1; opacity: .92; }
.mt-hero2.has-photo { background-size: cover; background-position: center; }
.mt-hero2.has-photo .mt-hero2-art { display: none; }
@media (max-width: 860px) { .mt-hero2-art { display: none; } .mt-hero2 h1 { font-size: 28px; } .mt-hero2 { padding: 36px 24px 0; } }
.mt-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.18); border-radius: 14px 14px 0 0; overflow: hidden; }
.mt-stat { background: rgba(255,255,255,.08); backdrop-filter: blur(4px); padding: 18px 16px; text-align: center; }
.mt-stat .n { display: block; font-size: 26px; font-weight: 900; }
.mt-stat .l { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
@media (max-width: 620px) { .mt-stats { grid-template-columns: repeat(2,1fr); } }

.mt-section { margin: 40px 0; }
.mt-h2 { font-size: 22px; font-weight: 800; margin: 0 0 18px; position: relative; padding-left: 14px; }
.mt-h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 5px; border-radius: 3px; background: linear-gradient(var(--mt-primary), var(--mt-accent)); }
.mt-section-head { display: flex; align-items: baseline; justify-content: space-between; }
.mt-more { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--mt-primary); }

.mt-cats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width: 720px) { .mt-cats { grid-template-columns: repeat(2,1fr); } }
.mt-cat { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--mt-line); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--mt-ink); transition: .15s; }
.mt-cat:hover { border-color: var(--mt-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.mt-depts { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-dept { display: inline-block; background: #fff; border: 1px solid var(--mt-line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--mt-ink); font-size: 14px; font-weight: 600; transition: .15s; }
.mt-dept:hover { border-color: var(--mt-primary); color: var(--mt-primary); background: #f0fdfa; }

/* TOP：左サイドバー＋本文の2カラム */
.mt-toplayout { display: grid; grid-template-columns: 224px 1fr; gap: 28px; align-items: start; margin-top: 28px; }
.mt-side { position: sticky; top: 14px; }
.mt-side-block { background: #fff; border: 1px solid var(--mt-line); border-radius: 12px; margin-bottom: 16px; overflow: hidden; }
.mt-side-h { font-size: 14px; font-weight: 800; margin: 0; padding: 11px 16px; color: #fff; background: linear-gradient(135deg, var(--mt-primary), #0e7490); }
.mt-side-list { list-style: none; margin: 0; padding: 0; }
.mt-side-list li { border-top: 1px solid #f1f5f9; }
.mt-side-list a { display: block; padding: 9px 14px 9px 28px; text-decoration: none; color: var(--mt-ink); font-size: 13px; position: relative; line-height: 1.4; }
.mt-side-list a::before { content: "›"; position: absolute; left: 14px; top: 8px; color: var(--mt-accent); font-weight: 700; }
.mt-side-list a:hover { background: #f0fdfa; color: var(--mt-primary); }
.mt-mainarea { min-width: 0; }
.mt-mainarea .mt-section:first-child { margin-top: 0; }
@media (max-width: 860px) {
	.mt-toplayout { grid-template-columns: 1fr; gap: 16px; }
	.mt-side { position: static; }
	.mt-side-list { display: flex; flex-wrap: wrap; }
	.mt-side-list li { border-top: 0; }
	.mt-side-list a { padding: 7px 12px 7px 22px; }
}
.mt-cat-ico { font-size: 26px; }
.mt-cat-name { font-weight: 800; font-size: 15px; margin-top: 6px; }
.mt-cat-sub { font-size: 12px; color: var(--mt-muted); }

.mt-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 720px) { .mt-steps { grid-template-columns: 1fr; } }
.mt-step { background: #fff; border: 1px solid var(--mt-line); border-radius: 12px; padding: 22px; }
.mt-step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--mt-primary), var(--mt-accent)); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 10px; }
.mt-step h3 { margin: 0 0 6px; font-size: 16px; }
.mt-step p { margin: 0; font-size: 13px; color: var(--mt-muted); }

/* ===== WP既定要素の最小整形 ===== */
.mt-content h2 { font-size: 20px; }
.mt-content { background: transparent; }
