/* Portfolio — hand-written touches that complement theme.json.
   Keep this minimal: structure & color live in theme.json. */

/* Tabular, right-aligned numerals everywhere data appears */
.is-style-tabular,
.wp-block-table td,
.project-meta__value {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* Outlined (ghost) secondary button */
.wp-block-button.is-style-outline-contrast .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline-contrast .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Card group style — quiet surface, hairline border, subtle lift on hover */
.wp-block-group.is-style-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: clamp(1.5rem, 4vw, 2rem);
	transition: border-color .18s ease, transform .18s ease;
	height: 100%;
}
.wp-block-group.is-style-card:hover {
	border-color: var(--wp--preset--color--contrast);
}

/* Make linked cards (work grid) lift as a whole */
a .wp-block-group.is-style-card:hover,
.wp-block-group.is-style-card a:hover {
	text-decoration: none;
}

/* Eyebrow label — small uppercase muted heading above a section title */
.is-style-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

/* Tech-stack tags (used in project meta) */
.tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tech-tags li,
.tech-tag {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.78rem;
	line-height: 1;
	padding: 0.4rem 0.6rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 6px;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}

/* Project meta definition rows (課題/解決/成果 etc.) */
.project-meta {
	display: grid;
	gap: 0;
	margin: 0;
}
.project-meta__row {
	display: grid;
	grid-template-columns: 8rem 1fr;
	gap: 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--wp--preset--color--border);
}
.project-meta__row:last-child {
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.project-meta__key {
	color: var(--wp--preset--color--muted);
	font-size: 0.875rem;
	font-weight: 600;
}
@media (max-width: 600px) {
	.project-meta__row { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* Active language in the Polylang switcher */
.lang-switch {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	font-size: 0.8rem;
}
.lang-switch a { color: var(--wp--preset--color--muted); }
.lang-switch .current-lang a,
.lang-switch a[aria-current="true"] { color: var(--wp--preset--color--contrast); font-weight: 600; }

/* Classic nav menu rendered via [nav] shortcode (Polylang-swappable) */
.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}
.menu a {
	color: var(--wp--preset--color--contrast);
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}
.menu a:hover { color: var(--wp--preset--color--accent); }
.menu .current-menu-item a,
.menu .current_page_item a { color: var(--wp--preset--color--accent); }
.menu-footer .menu { gap: 1rem; }
.menu-footer .menu a { color: var(--wp--preset--color--muted); font-size: 0.85rem; }

/* Header shell */
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.site-header__nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}
@media (max-width: 781px) {
	.site-header__inner { gap: 0.75rem; }
	.site-header__nav { gap: 1rem; width: 100%; justify-content: flex-start; }
}

.site-header { border-bottom: 1px solid var(--wp--preset--color--border); }
.site-footer { border-top: 1px solid var(--wp--preset--color--border); margin-top: var(--wp--preset--spacing--70); }
.site-footer__bottom { width: 100%; }

/* Project meta card + links */
.project-meta-card { margin: 0 0 0.5rem; }
.project-links { display: inline-flex; flex-wrap: wrap; gap: 1.25rem; }
.project-links a { font-size: 0.9rem; font-weight: 600; }

/* Featured-works grid cards (homepage / works page query loop) */
.work-card .wp-block-post-featured-image img {
	border-radius: 10px;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
}
.work-card .wp-block-post-title { margin-top: 0.9rem; }

/* Hero */
.hero__lead {
	max-width: 38ch;
}
.section-head { max-width: 60ch; }

/* Service rows */
.service-num {
	font-family: var(--wp--preset--font-family--mono);
	color: var(--wp--preset--color--muted);
	font-size: 0.85rem;
}

/* Read links with a moving arrow */
.link-arrow a::after { content: " \2192"; transition: margin .15s ease; }
.link-arrow a:hover::after { margin-left: 0.2rem; }
