/*
Theme Name: UG Union
Theme URI: https://uniongate.net/
Author: CREATEBOX IT部門 UNIONGATE
Description: UNIONGATE（株式会社クリエイトボックス IT部門）用のブロックテーマ。パソコンは写真入りレイアウト、スマホはアイコン一覧型に切り替わります。文言・写真はすべてブロックエディタから編集できます。
Version: 0.5.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ug-union
*/

/* ---------- 基本 ---------- */
:root {
	--ug-navy: #0E1A2B;
	--ug-navy-2: #17263C;
	--ug-navy-line: #2B3D57;
	--ug-blue: #1F4FD8;
	--ug-yellow: #F5B83D;
	--ug-ink: #101828;
	--ug-gray: #475467;
	--ug-light: #F6F8FB;
	--ug-line: #E4E7EC;
	--ug-sub: #D3DCEA;
}
body {
	margin: 0;
	font-family: 'Noto Sans JP', system-ui, sans-serif;
	color: var(--ug-ink);
	line-height: 1.7;
	overflow-x: hidden;
}
.wp-site-blocks { padding: 0; }
.ug-main { margin: 0; }
.ug-inner {
	max-width: 1240px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}
.ug-sec { padding-top: clamp(64px, 11vw, 112px); padding-bottom: clamp(64px, 11vw, 112px); }
.ug-h2 { margin: 0 0 20px; font-size: clamp(26px, 6.4vw, 40px); line-height: 1.4; font-weight: 900; }
.ug-lead { margin: 0 0 32px; font-size: 17px; color: var(--ug-gray); }
mark.ug-hl { background: none; color: var(--ug-yellow); }

/* 画像（写真・画面） */
.ug-photo { margin: 0 !important; }
.ug-photo img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 16px;
	display: block;
}

/* ボタン */
.wp-block-buttons { margin: 0; }
.ug-btn-nav .wp-block-button__link,
.ug-btn-yellow .wp-block-button__link,
.ug-btn-dark .wp-block-button__link,
.ug-btn-register .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
	border: 0;
}
.ug-btn-nav .wp-block-button__link { background: var(--ug-blue); color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; min-height: 44px; }
.ug-btn-yellow .wp-block-button__link { background: var(--ug-yellow); color: var(--ug-navy); padding: 16px 32px; border-radius: 10px; font-weight: 900; font-size: 17px; min-height: 52px; }
.ug-btn-dark .wp-block-button__link { background: var(--ug-navy); color: #fff; padding: 18px 36px; border-radius: 10px; font-weight: 900; font-size: 17px; min-height: 56px; }

/* ---------- ヘッダー ---------- */
.ug-header { background: var(--ug-navy); color: #fff; }
.ug-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.ug-brand { display: flex; align-items: baseline; gap: 12px; }
.ug-logo { margin: 0; font-family: 'Audiowide', sans-serif; font-size: 26px; letter-spacing: 1px; line-height: 1.2; }
.ug-logo a { color: #fff; text-decoration: none; }
.ug-brand-sub { margin: 0; font-size: 12px; color: #B8C4D6; }
.ug-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 14px; }
.ug-nav p { margin: 0; }
.ug-nav a { color: #E3E9F2; text-decoration: none; }
.ug-nav a:hover { color: #fff; }

/* ---------- ヒーロー ---------- */
.ug-hero { background: var(--ug-navy); color: #fff; }
.ug-hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 88px); }
.ug-hero-text { flex: 2 1 520px; min-width: 0; }
.ug-h1 { margin: 0 0 20px; font-size: clamp(32px, 8vw, 56px); line-height: 1.25; font-weight: 900; color: #fff; }
.ug-hero-lead { margin: 0 0 28px; font-size: 17px; color: var(--ug-sub); }
.ug-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ug-zero { margin: 0; font-size: 14px; color: var(--ug-sub); }
.ug-num { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; color: #fff; }
.ug-hero-side { flex: 1 1 280px; max-width: 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ug-idea-card { background: #fff; color: var(--ug-ink); border-radius: 14px; padding: 18px; border-top: 4px solid var(--ug-yellow); }
.ug-idea-card p { margin: 0; }
.ug-idea-label { font-size: 12px; font-weight: 700; color: #8A5A00; margin-bottom: 6px !important; }
.ug-idea-title { font-size: 16px; font-weight: 700; line-height: 1.5; margin-bottom: 8px !important; }
.ug-idea-meta { font-size: 13px; color: var(--ug-gray); }

/* ---------- ツール名の帯 ---------- */
.ug-strip { background: var(--ug-light); border-bottom: 1px solid var(--ug-line); }
.ug-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.ug-strip p { margin: 0; }
.ug-strip-label { font-size: 14px; color: var(--ug-gray); }
.ug-strip-names { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.ug-strip-names p { font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 700; color: #344054; }

/* ---------- 写真＋文章の段組 ---------- */
.ug-split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.ug-split > .ug-photo { flex: 1 1 280px; max-width: 380px; min-width: 0; }
.ug-split-text { flex: 2 1 440px; min-width: 0; }
.ug-step { display: flex; gap: 16px; margin: 0 0 14px; font-size: 16px; }
.ug-step-no { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--ug-blue); width: 36px; flex-shrink: 0; line-height: 1.4; }

/* ---------- しくみ（紺） ---------- */
.ug-dark { background: var(--ug-navy); color: #fff; }
.ug-dark .ug-lead { color: var(--ug-sub); margin-bottom: 0; }
.ug-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; padding-top: clamp(56px, 9vw, 88px); }
.ug-circle { width: 200px; height: 200px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; }
.ug-circle p { margin: 0; }
.ug-circle-fill { background: var(--ug-yellow); color: var(--ug-navy); }
.ug-circle-line { border: 3px solid var(--ug-yellow); }
.ug-circle-title { font-size: 26px; font-weight: 900; }
.ug-circle-sub { font-size: 13px; font-weight: 700; }
.ug-circle-line .ug-circle-sub { color: var(--ug-sub); font-weight: 400; }
.ug-arrow { margin: 0; font-size: 36px; line-height: 1; color: #5A6B85; }
.ug-hp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 360px; max-width: 100%; }
.ug-hp-grid p { margin: 0; background: var(--ug-navy-2); border: 1px solid var(--ug-navy-line); border-radius: 12px; padding: 14px 8px; text-align: center; font-size: 13px; }

/* ---------- ツール ---------- */
.ug-tools-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.ug-tools-head .ug-h2 { margin: 0; }
.ug-big0 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(40px, 10vw, 64px); color: var(--ug-blue); }
.ug-note { margin: 0; font-size: 15px; color: var(--ug-gray); max-width: 420px; }
.ug-tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ug-tool-card { border: 1px solid var(--ug-line); border-radius: 16px; overflow: hidden; }
.ug-screen { margin: 0 !important; }
.ug-screen img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ug-tool-body { padding: 20px; }
.ug-tool-name { margin: 0 0 4px; font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif; font-size: 20px; font-weight: 700; }
.ug-tool-desc { margin: 0; font-size: 14px; color: var(--ug-gray); }
.ug-tool-more { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; font-size: 15px; }
.ug-tool-more p { margin: 0; }
.ug-badge { font-size: 12px; font-weight: 700; color: #8A3B00; background: #FDEBDD; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

/* ---------- 会員・加盟 ---------- */
.ug-light { background: var(--ug-light); }
.ug-plans { display: flex; flex-direction: column; gap: 16px; }
.ug-plan { display: flex; align-items: center; gap: 20px; border-radius: 16px; padding: 24px; background: #fff; border: 1px solid var(--ug-line); }
.ug-plan p { margin: 0; }
.ug-plan-dark { background: var(--ug-navy); color: #fff; border-color: var(--ug-navy); }
.ug-plan-num { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; line-height: 1; flex-shrink: 0; }
.ug-plan-num small { font-family: 'Noto Sans JP', sans-serif; font-size: 16px; }
.ug-plan-dark .ug-plan-num { color: var(--ug-yellow); }
.ug-plan-title { font-size: 18px; font-weight: 900; }
.ug-plan-desc { font-size: 14px; color: var(--ug-gray); }
.ug-plan-dark .ug-plan-desc { color: var(--ug-sub); }

/* ---------- 登録の呼びかけ ---------- */
.ug-join { background: var(--ug-yellow); color: var(--ug-navy); }
.ug-join-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-top: 80px; padding-bottom: 80px; }
.ug-join .ug-h2 { margin: 0; }
.ug-get-note { margin: 10px 0 0; font-size: 13px; color: var(--ug-sub); }
.ug-get-alt { margin: 14px 0 0; font-size: 14px; }
.ug-get-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.ug-get-alt.is-dark { flex-basis: 100%; margin-top: 0; }
.ug-get-alt.is-dark a { color: var(--ug-navy); opacity: 1; }

/* ---------- フッター ---------- */
.ug-footer { background: var(--ug-navy); color: #B8C4D6; }
.ug-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 40px; padding-bottom: 40px; font-size: 13px; }
.ug-footer p { margin: 0; }
.ug-footer-logo { font-family: 'Audiowide', sans-serif; font-size: 18px; color: #fff; }

/* ---------- スマホ専用（一覧メニュー・バナー・タブバー） ---------- */
.ug-sp-only { display: none; }
.ug-tabbar { display: none; }

.ug-sp-menu { border-top: 1px solid var(--ug-line); }
.ug-row { margin: 0; border-bottom: 1px solid var(--ug-line); }
.ug-row a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	min-height: 72px;
	box-sizing: border-box;
	color: var(--ug-ink);
	text-decoration: none;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}
.ug-row a::before {
	content: "";
	width: 48px;
	height: 48px;
	border-radius: 10px;
	flex-shrink: 0;
	background-color: #EEF3FF;
	background-position: center;
	background-size: 26px;
	background-repeat: no-repeat;
}
.ug-row a::after {
	content: "";
	margin-left: auto;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: url(assets/icons/chevron.svg) center / 20px no-repeat;
}
.ug-row small { display: block; font-size: 12px; font-weight: 400; color: var(--ug-gray); }
.ug-ic-idea a::before { background-color: #FFF4DC; background-image: url(assets/icons/idea.svg); }
.ug-ic-box a::before { background-image: url(assets/icons/box.svg); }
.ug-ic-shield a::before { background-color: #E6F6EC; background-image: url(assets/icons/shield.svg); }
.ug-ic-stats a::before { background-image: url(assets/icons/stats.svg); }
.ug-ic-mail a::before { background-color: #F2F4F7; background-image: url(assets/icons/mail.svg); }
.ug-ic-board a::before { background-color: #F2F4F7; background-image: url(assets/icons/board.svg); }
.ug-ic-agent a::before { background-image: url(assets/icons/agent.svg); }
.ug-ic-chat a::before { background-color: #FDEBDD; background-image: url(assets/icons/globe.svg); }
.ug-ic-badge a::before { background-color: #FFF4DC; background-image: url(assets/icons/badge.svg); }
.ug-ic-company a::before { background-color: #F2F4F7; background-image: url(assets/icons/building.svg); }
/* 外観 → スマホのメニュー一覧 で作った行 */
.ug-row-custom a::before { display: none; }
.ug-row-ic { width: 48px; height: 48px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ug-row-ic svg { display: block; }

.ug-sp-cta { display: flex; justify-content: center; padding: 24px 16px 8px; }
.ug-btn-register { width: 100%; max-width: 300px; }
.ug-btn-register .wp-block-button__link { width: 100%; background: var(--ug-blue); color: #fff; padding: 14px; border-radius: 8px; font-weight: 900; font-size: 17px; min-height: 52px; box-shadow: 0 3px 0 #163C9F; }

.ug-banners { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.ug-banner { border-radius: 6px; padding: 18px 20px; }
.ug-banner p { margin: 0; }
.ug-banner-yellow { background: var(--ug-yellow); color: var(--ug-navy); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ug-banner-small { font-size: 13px; font-weight: 700; }
.ug-banner-big { font-size: 20px; font-weight: 900; line-height: 1.3; }
.ug-banner-num { font-family: 'Space Grotesk', sans-serif; font-size: 52px; font-weight: 700; line-height: 1; }
.ug-banner-num small { font-family: 'Noto Sans JP', sans-serif; font-size: 18px; font-weight: 900; }
.ug-banner-navy { background: var(--ug-navy); color: #fff; }
.ug-banner-navy .ug-banner-small { color: var(--ug-yellow); font-size: 12px; }
.ug-banner-navy .ug-banner-big { font-size: 19px; line-height: 1.4; }

.ug-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--ug-navy); }
.ug-tab { margin: 0; }
.ug-tab + .ug-tab { border-left: 1px solid var(--ug-navy-line); }
.ug-tab a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; color: #fff; text-decoration: none; font-size: 11px; font-weight: 700; min-height: 60px; box-sizing: border-box; }
.ug-tab a::before { content: ""; width: 24px; height: 24px; background: center / 24px no-repeat; }
.ug-tab-home a::before { background-image: url(assets/icons/home-w.svg); }
.ug-tab-idea a::before { background-image: url(assets/icons/idea-w.svg); }
.ug-tab-tools a::before { background-image: url(assets/icons/tools-w.svg); }
.ug-tab-dl a::before { background-image: url(assets/icons/download-w.svg); }
.ug-tab-products a::before { background-image: url(assets/icons/box-w.svg); }
.ug-tab-line a { background: #06C755; }
.ug-tab-line a::before { background-image: url(assets/icons/line-w.svg); }
.ug-tab a.ug-tab-noicon::before { display: none; }
.ug-tab a.ug-tab-noicon { justify-content: center; font-size: 12px; }
.ug-dl-foot { padding-top: 40px; padding-bottom: 40px; }
.ug-dl-body { padding-top: 48px; padding-bottom: 56px; }
.ug-dl-body > .wp-block-post-content { max-width: none; }
.ug-dl-body > .wp-block-post-content > * { max-width: none; }
.ug-dl-foot p { margin: 0; font-size: 15px; color: #344054; }
.ug-tab-user a::before { background-image: url(assets/icons/user-w.svg); }

/* ---------- 下層ページの見出し ---------- */
.ug-page-hero { background: var(--ug-navy); color: #fff; }
.ug-page-hero-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 64px; }
.ug-page-hero-text { flex: 2 1 520px; min-width: 0; }
.ug-crumb { margin: 0 0 8px; font-size: 13px; color: #B8C4D6; }
.ug-crumb a { color: #B8C4D6; }
.ug-page-title { margin: 0 0 16px; font-size: clamp(30px, 6vw, 44px); line-height: 1.3; font-weight: 900; color: #fff; }
.ug-page-lead { margin: 0; font-size: 17px; color: var(--ug-sub); max-width: 640px; }
.ug-page-stats { display: flex; gap: 32px; }
.ug-stat { margin: 0; font-size: 13px; color: var(--ug-sub); }
.ug-stat strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; color: var(--ug-yellow); margin-bottom: 4px; }

/* ---------- 本部の商材 ---------- */
.ug-chips-bar { background: var(--ug-light); border-bottom: 1px solid var(--ug-line); }
.ug-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 20px; padding-bottom: 20px; }
.ug-chips p { margin: 0; }
.ug-chips-label { font-size: 14px; color: var(--ug-gray); margin-right: 8px !important; }
.ug-chip a { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 8px 16px; border-radius: 999px; background: #fff; color: #344054; border: 1px solid #D0D5DD; font-size: 14px; font-weight: 700; text-decoration: none; }
.ug-chip.is-active a { background: var(--ug-navy); color: #fff; border-color: var(--ug-navy); }
.ug-prod-sec { padding-top: 56px; padding-bottom: 88px; }
.ug-prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.ug-prod-card { border: 1px solid var(--ug-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ug-prod-photo { margin: 0 !important; }
.ug-prod-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ug-prod-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.ug-prod-body p { margin: 0; }
.ug-prod-cat { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--ug-gray); background: #EEF1F5; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ug-prod-name { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 900; }
.ug-prod-desc { font-size: 14px; color: var(--ug-gray); flex-grow: 1; }
.ug-prod-fit { font-size: 13px; color: #344054; }
.ug-prod-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px !important; }
.ug-prod-btns .wp-block-button { flex: 1 1 120px; }
.ug-btn-outline .wp-block-button__link,
.ug-btn-blue .wp-block-button__link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; box-sizing: border-box; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.ug-btn-outline .wp-block-button__link { background: #fff; color: var(--ug-ink); border: 1px solid #C4CCD8; }
.ug-btn-blue .wp-block-button__link { background: var(--ug-blue); color: #fff; border: 0; }
.ug-prod-site { font-size: 12px; color: #667085; }
.ug-pbtn { flex: 1 1 120px; display: flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.ug-pbtn-outline { background: #fff; color: var(--ug-ink); border: 1px solid #C4CCD8; }
.ug-pbtn-outline:hover { background: var(--ug-light); color: var(--ug-ink); }
.ug-pbtn-blue { background: var(--ug-blue); color: #fff; }
.ug-pbtn-blue:hover { background: #163C9F; color: #fff; }
.ug-row-img a::before { display: none; }
.ug-row-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }

.ug-flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.ug-flow-step { background: #fff; border-radius: 16px; padding: 24px; }
.ug-flow-step p { margin: 0; }
.ug-flow-no { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--ug-blue); margin-bottom: 6px !important; }
.ug-flow-title { font-size: 17px; font-weight: 900; margin-bottom: 6px !important; }
.ug-flow-desc { font-size: 14px; color: var(--ug-gray); }
.ug-modes { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; background: #fff; border: 1px solid var(--ug-line); border-radius: 16px; padding: 24px; }
.ug-mode { flex: 1 1 300px; min-width: 0; }
.ug-mode p { margin: 0; }
.ug-mode-title { font-size: 16px; font-weight: 900; margin-bottom: 4px !important; }
.ug-mode-desc { font-size: 14px; color: var(--ug-gray); }
.ug-join p { margin: 6px 0 0; font-size: 15px; }
.ug-banner-yellow-stack { background: var(--ug-yellow); color: var(--ug-navy); }
.ug-banner-yellow-stack .ug-banner-big { font-size: 19px; line-height: 1.4; }

/* ---------- 言語の切り替え ---------- */
.ug-lang { display: inline-flex; align-items: center; border: 1px solid #5A6B85; border-radius: 999px; padding: 2px; gap: 2px; }
.ug-lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 44px; padding: 0 12px; border-radius: 999px; color: #E3E9F2; text-decoration: none; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ug-lang a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ug-lang a.is-current { background: #fff; color: var(--ug-navy); }
.ug-lang-short { display: none; }

/* ---------- スマホ表示への切り替え ---------- */
@media (max-width: 720px) {
	.ug-pc-only,
	.ug-nav-link { display: none !important; }
	.ug-sp-only { display: block; }
	.ug-tabbar { display: grid; }
	body { padding-bottom: 64px; }

	.ug-header-inner { padding: 12px 16px; }
	.ug-logo { font-size: 22px; }
	.ug-brand-sub { display: none; }
	.ug-nav { gap: 12px; }
	.ug-btn-nav { display: none; }
	.ug-lang a { min-width: 40px; min-height: 36px; padding: 0 8px; font-size: 12px; }
	.ug-lang-full { display: none; }
	.ug-lang-short { display: inline; }
	.ug-nav-login a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid #5A6B85; border-radius: 6px; color: #fff; font-size: 13px; }

	.ug-hero-inner { padding: 20px 16px 28px; gap: 0; }
	.ug-h1 { font-size: 28px; line-height: 1.35; margin-bottom: 10px; }
	.ug-hero-lead { font-size: 14px; margin-bottom: 16px; }
	.ug-hero-side { display: none; }
	/* ダウンロードボタンはスマホでも出す（横幅いっぱい） */
	.ug-hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
	.ug-hero .wp-block-buttons, .ug-hero .wp-block-button, .ug-hero .wp-block-button__link { width: 100%; }
	.ug-hero .wp-block-button__link { justify-content: center; text-align: center; font-size: 16px; padding: 14px 16px; }
	.ug-hero .ug-zero { align-self: flex-start; }
	.ug-get-note { font-size: 12px; }
	.ug-hero .ug-get-alt { display: none; }
	.ug-join .wp-block-buttons, .ug-join .wp-block-button, .ug-join .wp-block-button__link { width: 100%; }
	.ug-zero { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ug-navy); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 700; }
	.ug-num { color: #0B6B3A; font-size: 18px; }

	.ug-join-inner { padding: 48px 16px; }
	.ug-page-hero-inner { padding: 16px 16px 24px; }
	.ug-crumb { font-size: 12px; margin-bottom: 4px; }
	.ug-page-title { font-size: 28px; margin-bottom: 8px; }
	.ug-page-lead { font-size: 14px; }
	.ug-footer-inner { padding: 16px; justify-content: center; text-align: center; }
	.ug-footer-logo { display: none; }
}

/* パンくずリスト（固定ページ） */
.ug-crumbs { background: #F2F4F7; border-bottom: 1px solid var(--ug-line); }
.ug-crumbs-in { padding-top: 12px; padding-bottom: 12px; }
.ug-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.ug-crumbs li { display: inline-flex; align-items: center; font-size: 13px; color: var(--ug-gray); }
.ug-crumbs a { color: var(--ug-gray); text-decoration: none; }
.ug-crumbs a:hover { color: var(--ug-blue); text-decoration: underline; }
.ug-crumbs-sep { margin: 0 8px; color: #98A2B3; }
.ug-crumbs-title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ug-ink); }
.ug-has-crumbs main.ug-sec { padding-top: clamp(32px, 6vw, 56px); }

/* 固定ページ・投稿の本文：段落の間に余白を入れる（テーマ全体の blockGap は0のため）
   グループやカラムの中の段落にも効くように、子孫まで対象にする。 */
body .wp-block-post-content :is(p, ul, ol),
body .wp-block-post-content :not(.is-layout-flex):not(.is-layout-grid) > :is(p, ul, ol) { margin-block-start: 0 !important; margin-block-end: 1.2em !important; }
body .wp-block-post-content :is(.is-layout-flex, .is-layout-grid) > :is(p, ul, ol),
body .wp-block-post-content :is(p, ul, ol):last-child { margin-block-end: 0 !important; }
body .wp-block-post-content > * + * { margin-block-start: 1.2em; }
body .wp-block-post-content :is(h2, h3, h4) { margin-block-start: 2.4em; margin-block-end: 0.8em; }
body .wp-block-post-content > :first-child { margin-block-start: 0; }

/* ---------- ヘッダーメニュー（外観 → ヘッダーメニュー） ---------- */
.ug-header { position: relative; z-index: 60; }
.ug-hm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.ug-hm-item { position: static; }
.ug-hm .ug-hm-top { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: #E3E9F2; font: inherit; font-size: 14px; padding: 8px 12px; border-radius: 6px; cursor: pointer; text-decoration: none; line-height: 1.4; box-sizing: border-box; }
.ug-hm .ug-hm-top:hover, .ug-hm .ug-hm-item.is-open > .ug-hm-top { background: rgba(255, 255, 255, .12); color: #fff; }
.ug-hm-parent i { width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s, margin .2s; }
.ug-hm-item.is-open .ug-hm-parent i { transform: rotate(-135deg); margin-top: 4px; }
.ug-hm-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ug-ink); border-bottom: 3px solid var(--ug-yellow); box-shadow: 0 14px 28px rgba(14, 26, 43, .18); }
.ug-hm-item.is-open .ug-hm-panel { display: block; }
.ug-hm-grid { max-width: 1200px; margin: 0 auto; padding: 20px 24px; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
.ug-hm .ug-hm-child { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ug-ink); text-decoration: none; }
.ug-hm .ug-hm-child:hover { background: #F2F4F7; color: var(--ug-ink); }
.ug-hm-child b { display: block; font-size: 15px; line-height: 1.4; }
.ug-hm-child small { display: block; font-size: 12px; color: var(--ug-gray); line-height: 1.5; margin-top: 2px; }
.ug-hm-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ug-hm .ug-hm-all { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--ug-blue); text-decoration: none; padding: 0 12px 6px; }
.ug-hm-toggle { display: none; }

@media (max-width: 720px) {
	.ug-hm { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100vh - 140px); overflow-y: auto; box-shadow: 0 14px 28px rgba(14, 26, 43, .25); border-bottom: 3px solid var(--ug-yellow); }
	.ug-header.ug-hm-open .ug-hm { display: flex; }
	.ug-hm-item { border-bottom: 1px solid var(--ug-line); }
	.ug-hm .ug-hm-top { width: 100%; justify-content: space-between; color: var(--ug-ink); font-size: 16px; font-weight: 700; padding: 16px; min-height: 56px; border-radius: 0; }
	.ug-hm .ug-hm-top:hover, .ug-hm .ug-hm-item.is-open > .ug-hm-top { background: #F7F8FA; color: var(--ug-ink); }
	.ug-hm-panel { position: static; box-shadow: none; border: 0; background: #F7F8FA; }
	.ug-hm-grid { grid-template-columns: 1fr; padding: 0 8px 10px; }
	.ug-hm-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #5A6B85; border-radius: 6px; background: none; cursor: pointer; padding: 0; }
	.ug-hm-toggle span, .ug-hm-toggle span::before, .ug-hm-toggle span::after { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s; }
	.ug-hm-toggle span::before, .ug-hm-toggle span::after { content: ""; position: absolute; left: 0; }
	.ug-hm-toggle span::before { top: -6px; }
	.ug-hm-toggle span::after { top: 6px; }
	.ug-hm-open .ug-hm-toggle span { background: transparent; }
	.ug-hm-open .ug-hm-toggle span::before { transform: translateY(6px) rotate(45deg); }
	.ug-hm-open .ug-hm-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
}
