/*
Theme Name:   genesis-mashita2026
Theme URI:    https://media-design.work/
Description:  Genesis child theme for Sasaki Akemi personal website
Author:       media design Matsumoto
Template:     genesis
Version:      1.1.1
*/

/* 目次
-----------------------------------------
01 変数
02 リセット・ベース
03 共通パーツ（ボタン・フォーム・アクセシビリティ）
04 レイアウト
05 ヘッダー・メニュー
06 本文
07 サイドバー・ウィジェット
08 フッター
09 トップページ（ヒーロー・セクション）
10 ショートコード [akemi_posts]
11 ショートコード [akemi_sns]
12 トップに戻るボタン
13 レスポンシブ
----------------------------------------- */

/* 01 変数
----------------------------------------- */
:root {
	--c-bg: #ffffff;
	--c-header: #12a5a5; /* 緑 */
	--c-heading: #222222; /*  */
	--c-text: #222222; /*  */
	--c-cta: #f7faf9; /*  */
	--c-cta-hover: #f7faf9; /*  */
	--c-cta-text: #fdf3c3; /*  */
	--c-accent: #0e7c7c; /*  */
	--c-line: #dce6e5; /*  */
	--c-soft: #F4F8F9; /*  */
	--c-muted: #222222; /*  */

	--wrap: 1080px;
	--gutter: 20px;
	--header-h: 72px;
	--radius: 12px;
	--font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
}

/* 02 リセット・ベース
----------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.9;
	letter-spacing: 0.03em;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.8em;
	color: var(--c-heading);
	font-weight: 700;
	line-height: 1.5;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }

p, ul, ol, dl, blockquote, figure, table, pre {
	margin: 0 0 1.6em;
}

ul, ol {
	padding-left: 1.5em;
}

a {
	color: var(--c-header);
	text-underline-offset: 0.2em;
	transition: color 0.2s, background-color 0.2s, opacity 0.2s;
}

a:hover {
	color: #1b7ea3;
}

img, video, iframe {
	max-width: 100%;
}

img {
	height: auto;
	vertical-align: middle;
}

hr {
	border: 0;
	border-top: 1px solid var(--c-line);
	margin: 2.5em 0;
}

mark,
.marker {
	background: linear-gradient(transparent 58%, var(--c-accent) 58%);
	color: inherit;
	padding: 0 0.1em;
}

/* 03 共通パーツ
----------------------------------------- */
.button,
input[type="submit"],
input[type="button"],
button[type="submit"],
.wp-block-button__link,
.more-link {
	display: inline-block;
	padding: 0.85em 2.2em;
	border: 0;
	border-radius: 999px;
	background: var(--c-cta);
	color: var(--c-cta-text);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(246, 183, 170, 0.45);
	transition: background-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button[type="submit"]:hover,
.wp-block-button__link:hover,
.more-link:hover {
	background: var(--c-cta-hover);
	color: var(--c-cta-text);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(246, 183, 170, 0.6);
}

.is-style-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	box-shadow: none;
	color: var(--c-header);
}

input,
select,
textarea {
	width: 100%;
	padding: 0.75em 1em;
	border: 1px solid #CFD9DD;
	border-radius: 8px;
	background: #fff;
	color: var(--c-text);
	font-family: inherit;
	font-size: 1rem;
}

input[type="checkbox"],
input[type="radio"],
input[type="image"] {
	width: auto;
}

input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--c-header);
	outline-offset: 1px;
}

:focus-visible {
	outline: 2px solid var(--c-header);
	outline-offset: 2px;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form input[type="submit"] {
	padding-left: 1.4em;
	padding-right: 1.4em;
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: 0.8em 1em;
	border: 1px solid var(--c-line);
	text-align: left;
}

th {
	background: var(--c-soft);
	color: var(--c-heading);
}

/* アクセシビリティ */
.screen-reader-text,
.screen-reader-text span,
.screen-reader-shortcut {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	word-wrap: normal !important;
}

.screen-reader-text:focus,
.screen-reader-shortcut:focus {
	display: block;
	width: auto;
	height: auto;
	padding: 15px 23px 14px;
	clip: auto !important;
	background: #fff;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	color: var(--c-header);
	font-weight: 700;
	text-decoration: none;
	z-index: 100000;
}

.genesis-skip-link {
	margin: 0;
}

.genesis-skip-link li {
	width: 0;
	height: 0;
	list-style: none;
}

/* WordPress 標準 */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption-text,
figcaption {
	margin-top: 0.5em;
	color: var(--c-muted);
	font-size: 0.85rem;
	text-align: center;
}

.full-width-content .entry-content .alignfull,
.akemi-front .entry-content .alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* 04 レイアウト
----------------------------------------- */
.wrap {
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.site-inner {
}

.content-sidebar-wrap {
	display: flex;
	gap: 56px;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 56px var(--gutter) 72px;
}

.content {
	flex: 1;
	min-width: 0;
}

.sidebar {
	flex: 0 0 300px;
}

.sidebar-content .content-sidebar-wrap {
	flex-direction: row-reverse;
}

/* 05 ヘッダー・メニュー
----------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--c-header);
	color: #fff;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 24px;
	min-height: var(--header-h);
}

.title-area {
	margin-right: auto;
	padding: 10px 0;
}

.site-title {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
}

.site-title a,
.site-title a:hover {
	color: #fff;
	text-decoration: none;
}

.site-description {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.75rem;
	line-height: 1.4;
}

.custom-logo-link img {
	width: auto;
	max-height: 52px;
}

/* プライマリーメニュー（PC：横一列） */
.nav-primary .genesis-nav-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-primary .genesis-nav-menu li {
	position: relative;
}

.nav-primary .genesis-nav-menu a {
	position: relative;
	display: block;
	padding: 24px 14px;
	color: #fff;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.nav-primary .genesis-nav-menu > li > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 16px;
	height: 3px;
	border-radius: 2px;
	background: var(--c-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease;
}

.nav-primary .genesis-nav-menu > li > a:hover::after,
.nav-primary .genesis-nav-menu > li > a:focus-visible::after,
.nav-primary .genesis-nav-menu > .current-menu-item > a::after,
.nav-primary .genesis-nav-menu > .current-menu-ancestor > a::after {
	transform: scaleX(1);
}

/* PC：ドロップダウン */
.nav-primary .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #fff;
	border-top: 3px solid var(--c-accent);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 14px 30px rgba(14, 83, 109, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.nav-primary .sub-menu .sub-menu {
	top: -8px;
	left: 100%;
	border-radius: 8px;
}

.nav-primary .genesis-nav-menu li:hover > .sub-menu,
.nav-primary .genesis-nav-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav-primary .sub-menu a {
	padding: 10px 20px;
	color: var(--c-text);
	font-weight: 500;
}

.nav-primary .sub-menu a:hover {
	background: var(--c-soft);
	color: var(--c-header);
}

/* ハンバーガーボタン（スマホのみ表示） */
.menu-toggle,
.sub-menu-toggle {
	display: none;
}

.menu-toggle {
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 48px;
	height: 48px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

.menu-toggle__bar {
	display: block;
	width: 26px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* 06 本文
----------------------------------------- */
.breadcrumb {
	margin-bottom: 24px;
	color: var(--c-muted);
	font-size: 0.82rem;
}

.archive-description,
.author-box {
	margin-bottom: 48px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--c-soft);
}

.entry {
	margin-bottom: 56px;
}

.blog .entry + .entry,
.archive .entry + .entry,
.search .entry + .entry {
	padding-top: 56px;
	border-top: 1px solid var(--c-line);
}

.entry-title {
	margin-bottom: 0.4em;
	font-size: clamp(1.6rem, 3.2vw, 2.2rem);
	line-height: 1.45;
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

.entry-meta {
	margin-bottom: 1.5em;
	color: var(--c-muted);
	font-size: 0.85rem;
}

.entry-footer .entry-meta {
	margin-top: 2em;
	padding-top: 1em;
	border-top: 1px solid var(--c-line);
}

.entry-content h2 {
	position: relative;
	margin: 2.4em 0 1em;
	padding-bottom: 0.5em;
	border-bottom: 2px solid var(--c-line);
	font-size: 1.55rem;
}

.entry-content h2::after {
	/*
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 72px;
	height: 4px;
	border-radius: 2px;
	background: var(--c-accent); */
}

.entry-content h3 {
	margin: 2em 0 0.8em;
	padding-left: 0.7em;
	border-left: 5px solid var(--c-accent);
	font-size: 1.25rem;
}

.entry-content h4 {
	margin: 1.8em 0 0.6em;
}

.entry-content > :first-child {
	margin-top: 0;
}

blockquote {
	margin-left: 0;
	margin-right: 0;
	padding: 1.2em 1.5em;
	border-left: 4px solid var(--c-header);
	border-radius: 0 8px 8px 0;
	background: var(--c-soft);
}

blockquote p:last-child {
	margin-bottom: 0;
}

.archive-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.archive-pagination a {
	display: block;
	min-width: 44px;
	padding: 0.5em 0.9em;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	text-align: center;
	text-decoration: none;
}

.archive-pagination a:hover,
.archive-pagination .active a {
	border-color: var(--c-header);
	background: var(--c-header);
	color: #fff;
}

.adjacent-entry-pagination {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin: 48px 0;
}

/* コメント */
.entry-comments,
.comment-respond,
.entry-pings {
	margin-bottom: 48px;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-list .children {
	list-style: none;
}

.comment {
	margin-bottom: 24px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--c-soft);
}

.comment-meta {
	font-size: 0.85rem;
}

.avatar {
	border-radius: 50%;
	margin-right: 12px;
	float: left;
}

/* 07 サイドバー・ウィジェット
----------------------------------------- */
.widget {
	margin-bottom: 40px;
	font-size: 0.95rem;
}

.widget ul {
	padding-left: 0;
	list-style: none;
}

.widget li {
	padding: 0.5em 0;
	border-bottom: 1px solid var(--c-line);
}

.widget-title {
	position: relative;
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
}

.widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 3px;
	border-radius: 2px;
	background: var(--c-accent);
}

/* 08 フッター
----------------------------------------- */
.footer-widgets {
	padding: 64px 0 24px;
	background: var(--c-soft);
}

.footer-widgets .wrap {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}

.site-footer {
	padding: 32px 0;
	background: var(--c-header);
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.82rem;
	text-align: center;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #fff;
}

.nav-secondary .genesis-nav-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 24px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.nav-secondary a {
	color: #fff;
	text-decoration: none;
}

.nav-secondary a:hover {
	text-decoration: underline;
	text-decoration-color: var(--c-accent);
	text-decoration-thickness: 2px;
}

/* 09 トップページ
----------------------------------------- */
.akemi-front .site-inner {
	max-width: none;
	padding: 0;
}

/* ヒーロー（全幅） */
.akemi-hero {
	position: relative;
	width: 100%;
	background: var(--c-header);
	color: #fff;
}

.akemi-hero__media {
	position: relative;
	overflow: hidden;
}

.akemi-hero__media picture {
	display: block;
}

.akemi-hero__img {
	display: block;
	width: 100%;
	height: auto;
}

.akemi-hero--large .akemi-hero__media { height: 70svh; min-height: 420px; }
.akemi-hero--full .akemi-hero__media { height: calc(100svh - var(--header-h)); min-height: 480px; }

.akemi-hero--large picture,
.akemi-hero--full picture,
.akemi-hero--large .akemi-hero__img,
.akemi-hero--full .akemi-hero__img,
.akemi-hero--large .akemi-hero__placeholder,
.akemi-hero--full .akemi-hero__placeholder {
	height: 100%;
}

.akemi-hero--large .akemi-hero__img,
.akemi-hero--full .akemi-hero__img {
	object-fit: cover;
}

.akemi-hero__placeholder {
	aspect-ratio: 16 / 7;
	background:
		radial-gradient(circle at 80% 20%, rgba(250, 236, 6, 0.18), transparent 40%),
		radial-gradient(circle at 15% 85%, rgba(246, 183, 170, 0.35), transparent 45%),
		linear-gradient(135deg, #0E536D 0%, #1C7896 100%);
}

.akemi-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--hero-overlay, 0.2));
	pointer-events: none;
}

.akemi-hero__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px var(--gutter) 96px;
	text-align: center;
	pointer-events: none;
}

.akemi-hero__content > * {
	pointer-events: auto;
}

.akemi-hero__title {
	position: relative;
	margin: 0 0 0.6em;
	padding-bottom: 0.45em;
	color: #fff;
	font-size: clamp(1.7rem, 4.6vw, 3.4rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.akemi-hero__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: var(--c-accent);
	transform: translateX(-50%);
}

.akemi-hero__text {
	max-width: 720px;
	margin: 0 0 1.8em;
	font-size: clamp(0.95rem, 1.6vw, 1.15rem);
	line-height: 2;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.akemi-hero__btn {
	margin: 0;
}

.akemi-hero__btn .button {
	padding: 1em 2.8em;
	font-size: 1rem;
}

/* ヒーロー内 SNS */
.akemi-hero__sns {
	position: absolute;
	z-index: 3;
}

.akemi-hero__sns--bottom-center {
	left: 50%;
	bottom: 28px;
	justify-content: center;
	transform: translateX(-50%);
	width: max-content;
	max-width: calc(100% - 32px);
}

.akemi-hero__sns--bottom-right {
	right: 28px;
	bottom: 28px;
}

.akemi-hero__sns--right-vertical {
	top: 50%;
	right: 24px;
	flex-direction: column;
	transform: translateY(-50%);
}

/* スライダー（全スライドを同じ位置に重ねてフェード） */
.akemi-hero__slides {
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

.akemi-hero__slide {
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1s ease, visibility 0s linear 1s;
}

.akemi-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.akemi-hero__slide picture {
	height: 100%;
}

/* 比率の違う画像も切り抜かずに収める */
.akemi-hero--auto .akemi-hero__slides .akemi-hero__img {
	height: 100%;
	object-fit: contain;
}

.akemi-hero--large .akemi-hero__slides,
.akemi-hero--full .akemi-hero__slides {
	height: 100%;
}

/* スライダー操作（前へ・ドット・次へ・一時停止） */
.akemi-hero__nav {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 2px;
	padding: 4px 6px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.28);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transform: translateX(-50%);
}

.akemi-hero--sns-bottom-center .akemi-hero__nav {
	bottom: 88px;
}

.akemi-hero--sns-bottom-center.akemi-hero--large .akemi-hero__content,
.akemi-hero--sns-bottom-center.akemi-hero--full .akemi-hero__content {
	padding-bottom: 140px;
}

.akemi-hero__dots {
	display: flex;
}

.akemi-hero__count {
	min-width: 4.5em;
	margin: 0;
	color: #fff;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.akemi-hero__nav button {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
}

.akemi-hero__nav button:hover {
	background: rgba(255, 255, 255, 0.18);
}

.akemi-hero__nav button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

.akemi-hero__arrow::before {
	content: "";
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
}

.akemi-hero__arrow--prev::before { transform: translateX(2px) rotate(-135deg); }
.akemi-hero__arrow--next::before { transform: translateX(-2px) rotate(45deg); }

.akemi-hero__nav .akemi-hero__dot {
	width: 24px;
	border-radius: 999px;
}

.akemi-hero__dot::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.5);
	transition: width 0.3s, background-color 0.3s;
}

.akemi-hero__dot[aria-current="true"]::before {
	width: 18px;
	background: #fff;
}

.akemi-hero__pause::before {
	content: "";
	width: 10px;
	height: 12px;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.akemi-hero__pause.is-paused::before {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
	transform: translateX(1px);
}

/* セクション */
.front-section {
	padding: 88px 0;
}

.front-section + .front-section {
/*	border-top: 1px solid var(--c-line);*/
}

.front-section__title {
	position: relative;
	margin: 0 0 1.6em;
	padding-bottom: 0.6em;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	letter-spacing: 0.1em;
	text-align: center;
}

.front-section__title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	background: var(--c-accent);
	transform: translateX(-50%);
}

.front-section > .wrap > :last-child,
.front-section__content > :last-child {
	margin-bottom: 0;
}

/* 10 ショートコード [akemi_posts]
----------------------------------------- */
.akemi-posts {
	margin: 0 0 2.5em;
}

.entry-content .akemi-posts__heading,
.akemi-posts__heading {
	margin: 0 0 1.4em;
	padding: 0;
	border: 0;
	text-align: center;
}

.entry-content .akemi-posts__heading::after {
	left: 50%;
	transform: translateX(-50%);
}

.akemi-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 36px 28px;
}

.akemi-posts--cols-1 .akemi-posts__grid { grid-template-columns: minmax(0, 1fr); }
.akemi-posts--cols-2 .akemi-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.akemi-posts--cols-4 .akemi-posts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }

.akemi-card {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(14, 83, 109, 0.06), 0 12px 28px rgba(14, 83, 109, 0.08);
	transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}

.akemi-card:hover,
.akemi-card:focus-within {
	transform: translateY(-6px);
	box-shadow: 0 4px 10px rgba(14, 83, 109, 0.08), 0 24px 44px rgba(14, 83, 109, 0.16);
}

.akemi-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.akemi-card__link:hover {
	color: inherit;
}

.akemi-card__thumb {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--c-soft);
}

.akemi-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(14, 83, 109, 0.35), transparent 60%);
	opacity: 0;
	transition: opacity 0.4s;
}

.akemi-card:hover .akemi-card__thumb::after {
	opacity: 1;
}

.akemi-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.akemi-card:hover .akemi-card__thumb img {
	transform: scale(1.07);
}

.akemi-card__noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 85% 15%, rgba(250, 236, 6, 0.25), transparent 35%),
		linear-gradient(135deg, #0E536D, #2A88A8);
	color: rgba(255, 255, 255, 0.9);
	font-size: 2.6rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.akemi-card__cat {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 0.3em 0.95em;
	border-radius: 999px;
	background: var(--c-cta);
	color: var(--c-cta-text);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
}

.akemi-card__new {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 0.25em 0.7em;
	border-radius: 4px;
	background: var(--c-accent);
	color: var(--c-header);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.5;
	letter-spacing: 0.1em;
}

.akemi-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 24px;
}

.akemi-card__date {
	display: flex;
	align-items: center;
	gap: 0.6em;
	color: var(--c-muted);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
}

.akemi-card__date::before {
	content: "";
	width: 18px;
	height: 3px;
	border-radius: 2px;
	background: var(--c-accent);
}

.entry-content .akemi-card__title,
.akemi-card__title {
	margin: 0.45em 0 0.6em;
	padding: 0;
	border: 0;
	color: var(--c-heading);
	font-size: 1.06rem;
	line-height: 1.65;
}

.akemi-card__title span {
	background: linear-gradient(transparent 62%, var(--c-accent) 62%) no-repeat 0 0 / 0% 100%;
	transition: background-size 0.5s ease;
}

.akemi-card:hover .akemi-card__title span {
	background-size: 100% 100%;
}

.akemi-card__excerpt {
	display: -webkit-box;
	margin: 0 0 1.2em;
	overflow: hidden;
	color: var(--c-text);
	font-size: 0.86rem;
	line-height: 1.8;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.akemi-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin-top: auto;
	color: var(--c-header);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.akemi-card__more::after {
	content: "";
	width: 22px;
	height: 1px;
	background: currentColor;
	transition: width 0.3s;
}

.akemi-card:hover .akemi-card__more::after {
	width: 40px;
}

/* リスト表示 */
.akemi-posts--list .akemi-posts__grid {
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

.akemi-posts--list .akemi-card__link {
	flex-direction: row;
}

.akemi-posts--list .akemi-card__thumb {
	flex: 0 0 280px;
	aspect-ratio: auto;
	min-height: 175px;
}

.akemi-posts--list .akemi-card__thumb img,
.akemi-posts--list .akemi-card__noimg {
	position: absolute;
	inset: 0;
}

.akemi-posts--list .akemi-card:hover {
	transform: translateX(4px);
}

.akemi-posts__more {
	margin-top: 44px;
	text-align: center;
}

.akemi-posts__empty {
	color: var(--c-muted);
	text-align: center;
}

/* 11 ショートコード [akemi_sns]
----------------------------------------- */
.akemi-sns {
	--sns-size: 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 1.6em;
	padding: 0;
	list-style: none;
}

.akemi-hero .akemi-sns {
	margin: 0;
}

.akemi-sns--sm { --sns-size: 36px; }
.akemi-sns--lg { --sns-size: 56px; gap: 16px; }

.akemi-sns--align-center { justify-content: center; }
.akemi-sns--align-right { justify-content: flex-end; }

.akemi-sns li {
	margin: 0;
	padding: 0;
	border: 0;
}

.akemi-sns a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-width: var(--sns-size);
	height: var(--sns-size);
	border-radius: 999px;
	font-size: calc(var(--sns-size) * 0.42);
	line-height: 1;
	text-decoration: none;
	transition: transform 0.25s, background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.akemi-sns a:hover {
	transform: translateY(-3px);
}

.akemi-sns__glyph {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 700;
	font-size: 1.1em;
	line-height: 1;
}

/* ラベル付き */
.akemi-sns--label a {
	padding: 0 1.3em 0 1.1em;
	font-size: 0.9rem;
}

.akemi-sns--label a i,
.akemi-sns--label .akemi-sns__glyph {
	font-size: 1.15em;
}

.akemi-sns__label {
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* 配色 */
.akemi-sns--theme a {
	background: var(--c-header);
	color: #fff;
}

.akemi-sns--theme a:hover {
	background: var(--c-cta);
	color: var(--c-cta-text);
}

.akemi-sns--brand a {
	background: var(--sns-color);
	color: #fff;
}

.akemi-sns--brand a:hover {
	color: #fff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.akemi-sns--outline a {
	border: 2px solid var(--c-header);
	background: transparent;
	color: var(--c-header);
}

.akemi-sns--outline a:hover {
	background: var(--c-header);
	color: #fff;
}

.akemi-sns--light a {
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.akemi-sns--light a:hover {
	background: #fff;
	color: var(--c-header);
}

.akemi-sns--overlay a {
	background: rgba(14, 83, 109, 0.78);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.akemi-sns--overlay a:hover {
	background: var(--c-cta);
	color: var(--c-cta-text);
}

.akemi-sns__empty {
	padding: 1em;
	border: 1px dashed var(--c-cta);
	color: var(--c-muted);
	font-size: 0.85rem;
}

/* 12 トップに戻るボタン
----------------------------------------- */
.akemi-totop {
	position: fixed;
	right: 24px;
	bottom: 28px;
	z-index: 900;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-header);
	color: #fff;
	box-shadow: 0 10px 24px rgba(14, 83, 109, 0.35);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(24px);
	transition: opacity 0.35s, visibility 0.35s, transform 0.35s, background-color 0.25s, color 0.25s;
}

.akemi-totop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
	animation: akemi-float 3.2s ease-in-out infinite;
}

.akemi-totop::before {
	content: "";
	position: absolute;
	inset: -4px;
	border: 2px solid var(--c-accent);
	border-radius: 50%;
	opacity: 0;
	transform: scale(0.85);
	transition: opacity 0.3s, transform 0.3s;
}

.akemi-totop:hover {
	background: var(--c-cta);
	color: var(--c-cta-text);
}

.akemi-totop:hover::before {
	opacity: 1;
	transform: scale(1);
}

.akemi-totop__arrow {
	width: 11px;
	height: 11px;
	margin-top: 6px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	transform: rotate(45deg);
}

.akemi-totop__text {
	font-size: 0.62rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.12em;
}

@keyframes akemi-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}

/* 13 レスポンシブ
----------------------------------------- */
@media (max-width: 1100px) {
	.akemi-posts--cols-4 .akemi-posts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
	:root {
		--header-h: 60px;
	}

	/* ハンバーガーメニュー */
	.menu-toggle {
		display: flex;
	}

	.site-header .wrap {
		gap: 0 12px;
	}

	.site-title {
		font-size: 1.15rem;
	}

	.site-description {
		display: none;
	}

	.custom-logo-link img {
		max-height: 40px;
	}

	.nav-primary {
		display: none;
		flex: 0 0 calc(100% + var(--gutter) * 2);
		max-height: calc(100svh - var(--header-h));
		margin: 0 calc(var(--gutter) * -1);
		overflow-y: auto;
		overscroll-behavior: contain;
		border-top: 1px solid rgba(255, 255, 255, 0.15);
	}

	.nav-primary.is-open {
		display: block;
		animation: akemi-menu-in 0.25s ease;
	}

	.nav-primary .genesis-nav-menu {
		flex-direction: column;
		padding-bottom: 16px;
	}

	.nav-primary .genesis-nav-menu li {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.nav-primary .genesis-nav-menu a {
		padding: 14px 64px 14px var(--gutter);
		font-size: 0.98rem;
	}

	.nav-primary .genesis-nav-menu > li > a::after {
		display: none;
	}

	.nav-primary .genesis-nav-menu .current-menu-item > a {
		box-shadow: inset 4px 0 0 var(--c-accent);
	}

	.nav-primary .sub-menu,
	.nav-primary .sub-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: rgba(0, 0, 0, 0.15);
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
	}

	.nav-primary .genesis-nav-menu li.is-open > .sub-menu {
		display: block;
	}

	.nav-primary .sub-menu li:last-child {
		border-bottom: 0;
	}

	.nav-primary .sub-menu a {
		padding-left: calc(var(--gutter) + 16px);
		color: #fff;
		font-size: 0.9rem;
	}

	.nav-primary .sub-menu a:hover {
		background: rgba(255, 255, 255, 0.08);
		color: #fff;
	}

	.sub-menu-toggle {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 56px;
		height: 52px;
		padding: 0;
		border: 0;
		border-left: 1px solid rgba(255, 255, 255, 0.12);
		background: transparent;
		color: #fff;
		cursor: pointer;
	}

	.sub-menu-toggle::before {
		content: "";
		width: 9px;
		height: 9px;
		margin-top: -4px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg);
		transition: transform 0.25s, margin 0.25s;
	}

	.sub-menu-toggle[aria-expanded="true"]::before {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	/* レイアウト */
	.content-sidebar-wrap,
	.sidebar-content .content-sidebar-wrap {
		flex-direction: column;
	}

	.sidebar {
		flex-basis: auto;
	}

	.footer-widgets .wrap {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.akemi-posts--cols-3 .akemi-posts__grid,
	.akemi-posts--cols-4 .akemi-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@keyframes akemi-menu-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 767px) {
	body {
		font-size: 15px;
	}

	.site-inner {
		padding-top: 36px;
		padding-bottom: 56px;
	}

	/* ヒーロー：スマホでは高さ設定に関わらず写真全体を表示（切り抜かない）。文字・操作ボタンは画像の下に */
	.akemi-hero--large .akemi-hero__media,
	.akemi-hero--full .akemi-hero__media,
	.akemi-hero--large .akemi-hero__slides,
	.akemi-hero--full .akemi-hero__slides {
		height: auto;
		min-height: 0;
	}

	.akemi-hero .akemi-hero__slides .akemi-hero__img {
		height: 100%;
		object-fit: contain;
	}

	.akemi-hero__overlay {
		display: none;
	}

	.akemi-hero .akemi-hero__content {
		position: static;
		padding: 32px var(--gutter) 40px;
		background: var(--c-header);
	}

	.akemi-hero__title,
	.akemi-hero__text {
		text-shadow: none;
	}

	.akemi-hero__placeholder {
		aspect-ratio: 4 / 3;
	}

	.akemi-hero__nav {
		position: static;
		justify-content: center;
		padding: 10px var(--gutter);
		border-radius: 0;
		background: var(--c-header);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		transform: none;
	}

	.akemi-hero .akemi-hero__nav + .akemi-hero__content {
		padding-top: 16px;
	}

	.akemi-hero .akemi-sns {
		--sns-size: 38px;
		gap: 10px;
	}

	.akemi-hero__sns--bottom-center,
	.akemi-hero__sns--bottom-right {
		bottom: 16px;
	}

	.akemi-hero__sns--bottom-right {
		right: 16px;
	}

	.akemi-hero__sns--right-vertical {
		right: 12px;
	}

	.front-section {
		padding: 56px 0;
	}

	.akemi-totop {
		right: 16px;
		bottom: 20px;
		width: 50px;
		height: 50px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}

	.akemi-posts .akemi-posts__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.akemi-posts--list .akemi-posts__grid {
		gap: 14px;
	}

	.akemi-posts--list .akemi-card__thumb {
		flex-basis: 120px;
		min-height: 120px;
	}

	.akemi-posts--list .akemi-card__body {
		padding: 12px 14px;
	}

	.akemi-posts--list .akemi-card__title {
		margin: 0.3em 0 0.4em;
		font-size: 0.95rem;
	}

	.akemi-posts--list .akemi-card__excerpt,
	.akemi-posts--list .akemi-card__more,
	.akemi-posts--list .akemi-card__new {
		display: none;
	}

	.akemi-posts--list .akemi-card__cat {
		top: 6px;
		left: 6px;
		font-size: 0.62rem;
	}

	.akemi-posts--list .akemi-card__noimg {
		font-size: 1.6rem;
	}

	.alignleft,
	.alignright {
		float: none;
		margin: 0 0 1em;
	}

	.adjacent-entry-pagination {
		flex-direction: column;
	}
}
