/* mahoro web — main stylesheet (blue theme) */

:root {
	--c-navy: #0a2a5e;
	--c-blue-900: #0d3b8c;
	--c-blue-700: #1559c7;
	--c-blue-500: #2f80ed;
	--c-blue-300: #8fbcf6;
	--c-blue-100: #e6f0fd;
	--c-blue-50: #f4f8fe;
	--c-text: #1b2a41;
	--c-muted: #5b6b82;
	--c-border: #d5e1f2;
	--c-white: #fff;
	--radius: 14px;
	--shadow: 0 2px 6px rgba(13, 59, 140, .08), 0 8px 24px rgba(13, 59, 140, .08);
	--shadow-hover: 0 4px 10px rgba(13, 59, 140, .14), 0 14px 32px rgba(13, 59, 140, .16);
	--maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--c-text);
	background: var(--c-blue-50);
}

img { max-width: 100%; height: auto; }
a { color: var(--c-blue-700); }
a:hover { color: var(--c-blue-900); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--c-white); padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px;
}
.container--narrow { max-width: 800px; }

/* ---------- Header ---------- */
.site-header { background: var(--c-white); }

.site-branding {
	padding: 28px 0 22px;
	text-align: center;
	background:
		radial-gradient(1200px 300px at 50% -120px, var(--c-blue-100), transparent 70%),
		var(--c-white);
}
.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--c-navy);
}
.site-logo__mark {
	display: block;
	width: 56px; height: 56px;
	filter: drop-shadow(0 6px 10px rgba(21, 89, 199, .3));
}
.site-logo__text {
	font-size: clamp(28px, 5vw, 40px);
	font-weight: 900;
	letter-spacing: .04em;
}
.custom-logo { max-height: 80px; width: auto; }
.site-tagline { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); }

/* ---------- Nav ---------- */
.site-nav {
	background: linear-gradient(180deg, var(--c-blue-700), var(--c-blue-900));
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 2px 8px rgba(10, 42, 94, .25);
}
.admin-bar .site-nav { top: 32px; }

.nav-list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
}
.nav-list li { position: relative; }
.nav-list a {
	display: block;
	padding: 14px 26px;
	color: var(--c-white);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: .05em;
	transition: background .15s;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { background: rgba(255, 255, 255, .16); }

/* サブメニュー */
.nav-list .sub-menu {
	list-style: none; margin: 0; padding: 0;
	position: absolute; left: 0; top: 100%;
	min-width: 200px;
	background: var(--c-blue-900);
	display: none;
}
.nav-list .sub-menu a { padding: 12px 20px; font-weight: 500; white-space: nowrap; }
.nav-list .sub-menu li + li { border-top: 1px solid rgba(255, 255, 255, .12); }

/* 親項目（サブメニューあり）: ラベル + 開閉ボタン */
.nav-list > li.menu-item-has-children { display: flex; align-items: stretch; }
.nav-list > li.menu-item-has-children > a { padding-right: 6px; }
.nav-parent {
	display: block; padding: 14px 6px 14px 26px;
	color: var(--c-white); font-weight: 700; letter-spacing: .05em;
	cursor: pointer;
}
.submenu-toggle {
	width: 28px; padding: 0; margin-right: 8px;
	background: none; border: 0; cursor: pointer; color: var(--c-white);
}
.submenu-toggle::after {
	content: ""; display: inline-block; width: 7px; height: 7px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .15s;
}
.menu-item-has-children.is-open > .submenu-toggle::after { transform: translateY(1px) rotate(-135deg); }
.nav-list li.is-open > .sub-menu { display: block; }

/* マウス操作のPCではホバー/フォーカスでも開く */
@media (hover: hover) and (min-width: 721px) {
	.nav-list li:hover > .sub-menu,
	.nav-list li:focus-within > .sub-menu { display: block; }
}

.nav-toggle { display: none; }

/* ---------- Portal buttons ---------- */
.site-main { padding: 40px 0 72px; }

.portal-group { margin-bottom: 32px; }
.portal-group__title {
	display: flex; align-items: center; gap: 12px;
	margin: 0 0 14px;
	font-size: 14px; font-weight: 700;
	letter-spacing: .12em;
	color: var(--c-blue-700);
}
.portal-group__title::after {
	content: ""; flex: 1; height: 1px; background: var(--c-border);
}

.portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}
.portal-group--site .portal-grid { grid-template-columns: repeat(2, 1fr); }

.portal-btn {
	position: relative;
	display: flex; align-items: center; gap: 18px;
	padding: 26px 24px;
	min-height: 112px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.portal-btn:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
	border-color: var(--c-blue-300);
	color: var(--c-text);
}
.portal-btn__icon {
	flex: none;
	display: grid; place-items: center;
	width: 56px; height: 56px;
	border-radius: 14px;
	background: var(--c-blue-100);
	color: var(--c-blue-700);
	font-size: 26px;
}
.portal-btn__body { display: flex; flex-direction: column; min-width: 0; }
.portal-btn__title { font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--c-navy); }
.portal-btn__desc { font-size: 13px; line-height: 1.6; color: var(--c-muted); }
.portal-btn__ext {
	position: absolute; top: 10px; right: 14px;
	font-size: 14px; color: var(--c-blue-300);
}

/* 主要ボタン（このサイト）は青ベタで強調 */
.portal-group--site .portal-btn {
	background: linear-gradient(135deg, var(--c-blue-500), var(--c-blue-900));
	border-color: transparent;
	min-height: 132px;
}
.portal-group--site .portal-btn__title { color: var(--c-white); font-size: 24px; }
.portal-group--site .portal-btn__desc { color: rgba(255, 255, 255, .85); }
.portal-group--site .portal-btn__icon { background: rgba(255, 255, 255, .18); color: var(--c-white); }
.portal-group--site .portal-btn:hover { border-color: transparent; filter: brightness(1.08); }

/* ---------- Updates ---------- */
.updates {
	margin-top: 48px;
	padding: 28px 32px 20px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.section-title {
	margin: 0 0 12px;
	padding-left: 14px;
	border-left: 6px solid var(--c-blue-500);
	font-size: 22px; line-height: 1.3;
	color: var(--c-navy);
}
.updates-list { list-style: none; margin: 0; padding: 0; }
.updates-item {
	display: flex; align-items: baseline; gap: 14px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--c-border);
}
.updates-item:last-child { border-bottom: 0; }
.updates-item__date { flex: none; font-size: 14px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.updates-item__title { font-weight: 500; text-decoration: none; color: var(--c-text); }
.updates-item__title:hover { color: var(--c-blue-700); text-decoration: underline; }
.updates-empty { color: var(--c-muted); }

.badge {
	flex: none;
	min-width: 96px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--c-blue-100);
	color: var(--c-blue-900);
	font-size: 12px; font-weight: 700;
	text-align: center; line-height: 1.7;
}
.badge--blog { background: #dbeafe; color: #1d4ed8; }
.badge--dev { background: #d6f0ff; color: #0369a1; }
.badge--koubou { background: #e0e7ff; color: #3730a3; }
.badge--ishinomaki { background: #cffafe; color: #0e7490; }
.badge--youtube, .badge--youtube-bc, .badge--youtube-main, .badge--youtube-travel { background: #fee2e2; color: #b91c1c; }

/* ---------- Archive / cards ---------- */
.page-header { margin-bottom: 28px; }
.page-title { margin: 0; font-size: 28px; color: var(--c-navy); }

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.card {
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}
.card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__body { padding: 18px 20px 22px; }
.card__date { font-size: 13px; color: var(--c-muted); }
.card__title { margin: 4px 0 8px; font-size: 18px; line-height: 1.5; }
.card__title a { color: var(--c-navy); text-decoration: none; }
.card__title a:hover { color: var(--c-blue-700); }
.card__excerpt { margin: 0; font-size: 14px; color: var(--c-muted); }

.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	padding: 6px 14px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: 8px;
	text-decoration: none;
}
.page-numbers.current { background: var(--c-blue-700); border-color: var(--c-blue-700); color: var(--c-white); }

/* ---------- Single / page ---------- */
.entry {
	padding: 36px 40px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.entry__title { margin: 4px 0 20px; font-size: 30px; line-height: 1.4; color: var(--c-navy); }
.entry__date { font-size: 14px; color: var(--c-muted); }
.entry__thumb { margin-bottom: 24px; }
.entry__content > * + * { margin-top: 1.2em; }
.entry__content h2 { padding-left: 12px; border-left: 5px solid var(--c-blue-500); font-size: 22px; color: var(--c-navy); }
.entry__content h3 { font-size: 19px; color: var(--c-blue-900); }
.entry__footer { margin-top: 28px; font-size: 14px; }
.post-navigation { margin: 28px 0; }

.btn {
	display: inline-block;
	padding: 10px 24px;
	background: var(--c-blue-700);
	color: var(--c-white);
	border-radius: 999px;
	text-decoration: none;
	font-weight: 700;
}
.btn:hover { background: var(--c-blue-900); color: var(--c-white); }

/* ---------- Dev: アプリ一覧 / プラットフォーム ---------- */
.page-description { margin-top: 8px; color: var(--c-muted); }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.app-block {
	display: flex; align-items: center; gap: 24px;
	padding: 28px 30px;
	background: var(--c-white);
	border: 1px solid var(--c-border);
	border-left: 6px solid var(--c-blue-500);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--c-text);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.app-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-left-color: var(--c-blue-900); color: var(--c-text); }
.app-block__icon {
	flex: none; display: grid; place-items: center;
	width: 72px; height: 72px; border-radius: 18px; overflow: hidden;
	background: var(--c-blue-100); color: var(--c-blue-700); font-size: 32px;
}
.app-block__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-block__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.app-block__title { font-size: 22px; font-weight: 700; line-height: 1.4; color: var(--c-navy); }
.app-block__desc { font-size: 15px; color: var(--c-text); }
.app-block__arrow { flex: none; font-size: 36px; line-height: 1; color: var(--c-blue-300); }
.app-block:hover .app-block__arrow { color: var(--c-blue-700); }

.platforms { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platforms__item {
	padding: 0 12px;
	border: 1px solid var(--c-blue-300); border-radius: 999px;
	background: var(--c-blue-50); color: var(--c-blue-900);
	font-size: 12px; font-weight: 700; line-height: 1.9;
}
.platforms__item.is-planned { border-style: dashed; background: transparent; color: var(--c-muted); font-weight: 500; }
.entry__header .platforms { margin: -8px 0 20px; }

/* ---------- 長い本文（使い方ページなど） ---------- */
html { scroll-behavior: smooth; }
.entry__content h2,
.entry__content h3 { scroll-margin-top: 72px; }
.entry__content h2 { margin-top: 2.2em; }
.entry__content h3 { margin-top: 1.8em; }
.entry__content ul,
.entry__content ol { padding-left: 1.5em; }
.entry__content li + li { margin-top: .35em; }
.entry__content code {
	padding: .1em .45em; border-radius: 4px;
	background: var(--c-blue-100); color: var(--c-navy);
	font-size: .92em; word-break: break-all;
}
.entry__content pre {
	margin: 0; padding: 12px 16px; overflow-x: auto;
	background: var(--c-navy); border-radius: 8px;
}
.entry__content pre code { padding: 0; background: none; color: #e6f0fd; word-break: normal; }
.entry__content kbd {
	display: inline-block; padding: 0 .5em; min-width: 1.6em; text-align: center;
	border: 1px solid var(--c-border); border-bottom-width: 2px; border-radius: 5px;
	background: var(--c-white); color: var(--c-navy);
	font: 600 .85em/1.7 inherit;
}
.guide-table, .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.guide-table th, .guide-table td,
.wp-block-table th, .wp-block-table td { padding: 10px 14px; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.guide-table thead th, .wp-block-table thead th { background: var(--c-blue-100); color: var(--c-navy); }
.guide-table tbody tr:nth-child(even) { background: var(--c-blue-50); }
.guide-toc {
	columns: 2; column-gap: 32px; margin: 0; padding: 16px 20px 16px 40px;
	background: var(--c-blue-50); border: 1px solid var(--c-border); border-radius: 10px;
}
.guide-toc li { break-inside: avoid; }
.notice {
	padding: 14px 18px; border-left: 5px solid var(--c-blue-500);
	background: var(--c-blue-50); border-radius: 0 8px 8px 0;
}
.notice p { margin: 0; }
.notice--warn { border-left-color: #f59e0b; background: #fffbeb; }
@media (max-width: 720px) {
	.guide-toc { columns: 1; }
	.guide-table, .wp-block-table table { font-size: 14px; }
	.guide-table th, .guide-table td { padding: 8px 10px; }
}

/* ---------- スクリーンショット一覧 ---------- */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 16px; }
.entry__content .shots li + li, .shots li { margin-top: 0; }
.shots figure { margin: 0; }
.shots a { display: block; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; background: var(--c-blue-50); box-shadow: var(--shadow); transition: transform .15s; }
.shots a:hover { transform: translateY(-3px); }
.shots img { display: block; width: 100%; height: auto; }
.shots figcaption { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--c-muted); }
.shots figcaption strong { display: block; color: var(--c-navy); font-size: 14px; }

/* ---------- よくある質問（開閉式） ---------- */
.faq { margin: 0 0 12px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-white); }
.faq summary {
	position: relative; padding: 14px 44px 14px 48px; cursor: pointer;
	font-weight: 700; color: var(--c-navy); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
	content: "Q"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
	background: var(--c-blue-500); color: var(--c-white); font-size: 14px;
}
.faq summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
	border-right: 2px solid var(--c-blue-500); border-bottom: 2px solid var(--c-blue-500);
	transform: translateY(-70%) rotate(45deg); transition: transform .15s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq[open] summary { border-bottom: 1px dashed var(--c-border); }
.faq__a { padding: 14px 18px 16px 48px; }
.faq__a > :first-child { margin-top: 0; }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- パンくず ---------- */
.breadcrumb { margin-bottom: 16px; font-size: 13px; color: var(--c-muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; color: var(--c-blue-300); }
.breadcrumb a { color: var(--c-blue-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- アプリページ ---------- */
.app-page { padding: 36px 40px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.app-hero { display: flex; align-items: center; gap: 28px; }
.app-hero__icon {
	flex: none; display: grid; place-items: center;
	width: 120px; height: 120px; border-radius: 28px; overflow: hidden;
	background: var(--c-blue-100); color: var(--c-blue-700); font-size: 56px;
	box-shadow: var(--shadow);
}
.app-hero__icon img { width: 100%; height: 100%; object-fit: cover; }
.app-hero__title { margin: 0 0 6px; font-size: 30px; line-height: 1.35; color: var(--c-navy); }
.app-hero__lead { margin: 0 0 8px; color: var(--c-text); }
.app-hero__cta { margin-top: 20px; }
.app-page__content { margin-top: 28px; }
.app-section { margin-top: 40px; padding-top: 4px; }
.app-section__title { margin: 0 0 16px; padding-left: 12px; border-left: 5px solid var(--c-blue-500); font-size: 22px; color: var(--c-navy); }

.app-info { display: grid; grid-template-columns: 11em 1fr; margin: 0; border-top: 1px solid var(--c-border); }
.app-info dt, .app-info dd { margin: 0; padding: 12px 8px; border-bottom: 1px solid var(--c-border); }
.app-info dt { font-weight: 700; color: var(--c-navy); background: var(--c-blue-50); }
.app-info ul { margin: 0; padding-left: 1.2em; }

.download-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.download-btn {
	display: flex; flex-direction: column; gap: 2px;
	padding: 14px 20px;
	background: linear-gradient(135deg, var(--c-blue-500), var(--c-blue-900));
	border-radius: 12px; color: var(--c-white); text-decoration: none;
	transition: filter .15s, transform .15s;
}
a.download-btn:hover { filter: brightness(1.1); transform: translateY(-2px); color: var(--c-white); }
.download-btn__label { font-size: 18px; font-weight: 700; }
.download-btn__note { font-size: 12px; opacity: .85; }
.download-btn.is-disabled { background: var(--c-blue-100); color: var(--c-muted); cursor: default; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list__link {
	display: flex; flex-direction: column; padding: 14px 18px;
	border: 1px solid var(--c-border); border-radius: 10px;
	text-decoration: none; color: var(--c-text);
}
.doc-list__link:hover { border-color: var(--c-blue-300); background: var(--c-blue-50); }
.doc-list__title { font-weight: 700; color: var(--c-blue-700); }
.doc-list__desc { font-size: 13px; color: var(--c-muted); }

/* ---------- Contact Form 7 ---------- */
.wpcf7-form label { display: block; margin-bottom: 18px; font-weight: 700; color: var(--c-navy); }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
	display: block; width: 100%; margin-top: 6px;
	padding: 10px 14px;
	border: 1px solid var(--c-border); border-radius: 8px;
	background: var(--c-white); color: var(--c-text);
	font: inherit; font-weight: 400;
}
.wpcf7-form textarea { min-height: 200px; }
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus { outline: 3px solid var(--c-blue-100); border-color: var(--c-blue-500); }
.wpcf7-form .form-note { font-size: 14px; color: var(--c-muted); }
.wpcf7-submit {
	padding: 12px 40px;
	border: 0; border-radius: 999px;
	background: var(--c-blue-700); color: var(--c-white);
	font: inherit; font-weight: 700; cursor: pointer;
}
.wpcf7-submit:hover { background: var(--c-blue-900); }
.wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; font-weight: 400; color: #b91c1c; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border-radius: 8px; border-width: 1px; }

/* ---------- Footer ---------- */
.site-footer {
	padding: 32px 0;
	background: var(--c-navy);
	color: rgba(255, 255, 255, .8);
	text-align: center;
	font-size: 14px;
}
.site-footer a { color: var(--c-white); }
.footer-nav { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.copyright { margin: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.portal-grid { grid-template-columns: repeat(2, 1fr); }
	.nav-list a { padding: 14px 18px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 782px) {
	.admin-bar .site-nav { top: 46px; }
}

@media (max-width: 720px) {
	.container { padding: 0 16px; }
	.site-main { padding: 24px 0 48px; }
	.site-branding { padding: 18px 0 14px; }
	.site-logo__mark { width: 44px; height: 44px; }

	.nav-toggle {
		display: flex; align-items: center; gap: 12px;
		width: 100%;
		padding: 14px 4px;
		background: none; border: 0;
		color: var(--c-white);
		font: inherit; font-weight: 700;
		cursor: pointer;
	}
	.nav-toggle__bar,
	.nav-toggle__bar::before,
	.nav-toggle__bar::after {
		display: block; width: 22px; height: 2px;
		background: currentColor; border-radius: 2px;
		content: ""; position: relative;
	}
	.nav-toggle__bar::before { position: absolute; top: -7px; }
	.nav-toggle__bar::after { position: absolute; top: 7px; }

	.nav-panel { display: none; }
	.nav-panel.is-open { display: block; padding-bottom: 8px; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 14px 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
	.nav-list > li.menu-item-has-children { flex-wrap: wrap; }
	.nav-list > li.menu-item-has-children > a,
	.nav-parent { flex: 1; padding: 14px 8px; border-top: 1px solid rgba(255, 255, 255, .15); }
	.submenu-toggle { width: 48px; margin: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
	.nav-list .sub-menu { position: static; flex-basis: 100%; background: rgba(0, 0, 0, .12); }
	.nav-list .sub-menu a { padding-left: 24px; white-space: normal; }

	.portal-grid,
	.portal-group--site .portal-grid { grid-template-columns: 1fr; gap: 14px; }
	.portal-btn { padding: 20px 18px; min-height: 0; }
	.portal-group--site .portal-btn { min-height: 0; }

	.updates { padding: 20px 18px 12px; }
	.updates-item { flex-wrap: wrap; gap: 6px 10px; }
	.updates-item__title { flex-basis: 100%; }

	.app-block { padding: 18px 16px; gap: 14px; }
	.app-block__icon { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
	.app-block__title { font-size: 18px; }
	.app-block__arrow { font-size: 28px; }

	.app-page { padding: 22px 18px; }
	.app-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
	.app-hero__icon { width: 88px; height: 88px; border-radius: 22px; font-size: 40px; }
	.app-hero__title { font-size: 24px; }
	.app-info { grid-template-columns: 1fr; }
	.app-info dt { border-bottom: 0; padding-bottom: 4px; }

	.entry { padding: 22px 18px; }
	.entry__title { font-size: 24px; }
}

/* ---------- アプリアイコン画像（設定時は背景なし・全体表示） ---------- */
.portal-btn__icon.has-image,
.app-block__icon.has-image,
.app-hero__icon.has-image { background: none; overflow: visible; box-shadow: none; }
.portal-btn__icon.has-image img,
.app-block__icon.has-image img,
.app-hero__icon.has-image img { width: 100%; height: 100%; object-fit: contain; }
.portal-btn__icon.has-image { width: 64px; height: 64px; }
.app-hero__icon.has-image img { filter: drop-shadow(0 6px 10px rgba(13, 59, 140, .25)); }
/* 背景まで塗られた正方形アイコンも、スマホアイコン風に角を丸める */
.portal-btn__icon.has-image img,
.app-block__icon.has-image img,
.app-hero__icon.has-image img { border-radius: 22%; }
