@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ（キャッシュレスお助け帳。EmDash版のデザインに寄せる）
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* Palette from the EmDash theme (src/styles/theme.css) */
:root {
	--cashless-mint-50: #eaf6f1;
	--cashless-mint-100: #cfe9de;
	--cashless-line: #dce5df;
	--cashless-line-strong: #c8d8d0;
	--cashless-coral-50: #fdece7;
	--cashless-coral-700: #ae412d;
	--cashless-text-secondary: #52635b;
	--cashless-muted: #5f6f68;
}

/* ---------- Reading body ---------- */

.post_content {
	font-size: 1.0625rem;
	line-height: 1.95;
	line-break: strict;
}

.post_content h2 {
	padding: 0.55em 0.8em;
	border-left: 5px solid var(--color_main);
	border-radius: 0 8px 8px 0;
	background: var(--cashless-mint-50);
	color: var(--color_text);
	font-size: 1.35rem;
	line-height: 1.5;
}

.post_content h2::before {
	display: none;
}

.post_content h3 {
	font-size: 1.175rem;
}

.post_content a {
	font-weight: 700;
	text-underline-offset: 3px;
}

.post_content ul > li::marker,
.post_content ol > li::marker {
	color: var(--color_main);
}

/* Images: rounded with a hairline, captions in muted text */
.post_content .wp-block-image img {
	border: 1px solid var(--cashless-line);
	border-radius: 10px;
}

.post_content .wp-block-image figcaption {
	margin-top: 0.5em;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--cashless-muted);
}

/* Point / caution boxes: mint and coral fills like the EmDash boxes */
.post_content .is-style-big_icon_point {
	background: var(--cashless-mint-50);
}

.post_content .is-style-big_icon_caution {
	background: var(--cashless-coral-50);
}

/* ---------- Answer and verification (post top) ---------- */

/* The answer comes first and carries the weight; verification sits quietly under it. */
.post_content .cashless-answer {
	margin-bottom: 1em;
	padding: 1em 1.25em;
	border: 2px solid var(--color_main);
	border-radius: 10px;
	background: var(--cashless-mint-50);
}

.post_content .cashless-answer__title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--color_main);
}

.post_content .cashless-answer__text {
	margin: 4px 0 0;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.8;
}

.post_content .cashless-verify {
	margin-bottom: 2em;
	padding: 0.75em 1em;
	border: 1px solid var(--cashless-line);
	border-radius: 8px;
	background: #fff;
	font-size: 0.875rem;
	color: var(--cashless-text-secondary);
}

.post_content .cashless-verify__title {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 700;
}

.post_content .cashless-verify ul {
	margin: 4px 0 0;
	padding-left: 0;
	list-style: none;
	line-height: 1.7;
}

.post_content .cashless-verify li::marker {
	content: none;
}

/* ---------- Header ---------- */

.l-header__menuBtn,
.l-header__searchBtn,
.c-gnav > .menu-item > a {
	color: var(--color_header_text);
}

.c-gnav > .menu-item > a {
	font-weight: 700;
}

/* ---------- Home (front page) ---------- */

.post_content .cashless-hero {
	align-items: center;
	margin-bottom: 3em;
}

.post_content .cashless-hero__badge {
	display: inline-block;
	margin: 0 0 0.8em;
	padding: 0.2em 0.9em;
	border-radius: 999px;
	background: var(--cashless-mint-50);
	color: var(--color_main);
	font-size: 0.8125rem;
	font-weight: 700;
}

.post_content .cashless-hero__name {
	margin: 0;
	font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.2rem);
	font-weight: 800;
	line-height: 1.4;
}

.post_content .cashless-hero__accent {
	color: var(--color_main);
}

.post_content .cashless-hero__lead {
	margin: 0.6em 0 0.8em;
	color: var(--cashless-text-secondary);
}

.post_content .cashless-hero__promises {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2em 1.4em;
	margin: 0 0 1em;
	font-size: 0.875rem;
	font-weight: 700;
}

.post_content .cashless-hero__search {
	margin-bottom: 1.2em;
}

.post_content .cashless-hero__faq-title {
	margin: 0 0 0.4em;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--cashless-muted);
}

.post_content .cashless-hero__img img {
	border: 0;
}

/* Chips: short links in a wrapping row */
.post_content .cashless-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	padding: 0;
	list-style: none;
}

.post_content .cashless-chips li {
	margin: 0;
}

.post_content .cashless-chips li::marker {
	content: none;
}

.post_content .cashless-chips a {
	display: inline-block;
	padding: 0.35em 0.9em;
	border: 1px solid var(--cashless-line-strong);
	border-radius: 999px;
	background: #fff;
	color: var(--color_text);
	font-size: 0.875rem;
	text-decoration: none;
}

.post_content .cashless-chips a:hover {
	border-color: var(--color_main);
	color: var(--color_main);
}

.post_content h2.cashless-home__title {
	padding: 0 0 0 0.6em;
	border-left: 4px solid var(--color_main);
	border-radius: 0;
	background: none;
	font-size: 1.2rem;
}

/* Problem cards: four across on PCs, two on phones */
.post_content .cashless-cat-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.8em;
	padding: 0;
	list-style: none;
}

.post_content .cashless-cat-cards li {
	margin: 0;
}

.post_content .cashless-cat-cards li::marker {
	content: none;
}

.post_content .cashless-cat-cards a {
	display: grid;
	gap: 0.3em;
	height: 100%;
	padding: 1em;
	border: 1px solid var(--cashless-line);
	border-radius: 12px;
	background: #fff;
	color: var(--color_text);
	text-decoration: none;
}

.post_content .cashless-cat-cards a:hover {
	border-color: var(--color_main);
}

.post_content .cashless-cat-cards strong {
	color: var(--color_main);
}

.post_content .cashless-cat-cards span {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--cashless-text-secondary);
}

@media (max-width: 959px) {
	.post_content .cashless-cat-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.post_content .cashless-more {
	text-align: right;
}

.post_content .cashless-policy {
	display: grid;
	gap: 0.8em;
	padding: 0;
	list-style: none;
}

.post_content .cashless-policy li {
	margin: 0;
	padding: 1em 1.2em;
	border: 1px solid var(--cashless-line);
	border-radius: 12px;
	background: #fff;
}

.post_content .cashless-policy li::marker {
	content: none;
}

.post_content .cashless-policy strong {
	display: block;
	color: var(--color_main);
}

/* ---------- Header navigation: pills like the EmDash header ---------- */

.c-gnav > .menu-item > a {
	height: auto;
	margin: 0 2px;
	padding: 6px 14px;
	border-radius: 999px;
	color: var(--cashless-text-secondary);
}

.c-gnav > .menu-item > a:hover,
.c-gnav > .current-menu-item > a {
	background: var(--cashless-mint-50);
	color: var(--color_main);
}

.c-gnav > .current-menu-item > a {
	box-shadow: inset 0 0 0 1px var(--cashless-line-strong);
}

.c-gnav > .menu-item > a::after {
	display: none;
}

/* Header search (head_box widget) */
.w-header .wp-block-search__inside-wrapper {
	min-width: 220px;
	border: 1px solid var(--cashless-line);
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

.w-header .wp-block-search__input {
	border: 0;
	background: transparent;
	font-size: 0.875rem;
}

.w-header .wp-block-search__button {
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--cashless-muted);
}

/* ---------- Sidebar ---------- */

.l-sidebar .cashless-widget__title {
	margin: 0 0 0.6em;
	padding: 0 0 0 0.6em;
	border-left: 4px solid var(--color_main);
	background: none;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
}

.l-sidebar .cashless-widget {
	padding: 1em 1.1em;
	border: 1px solid var(--cashless-line);
	border-radius: 12px;
	background: #fff;
}

.l-sidebar .cashless-profile__name {
	margin: 0 0 0.3em;
	font-weight: 700;
}

/* The group block may wrap its children in an inner container, so lay out whichever holds the avatar and name */
.l-sidebar .cashless-profile__head,
.l-sidebar .cashless-profile__head > .wp-block-group__inner-container {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 0.6em;
}

.l-sidebar .cashless-profile__head .cashless-profile__name {
	margin: 0;
	font-size: 1rem;
}

.l-sidebar .cashless-profile__avatar {
	flex: 0 0 64px;
	margin: 0 !important;
}

.l-sidebar .cashless-profile__avatar img {
	width: 64px;
	height: 64px;
	border: 2px solid #d8ece4;
	border-radius: 50%;
	object-fit: cover;
}

.l-sidebar .cashless-widget p {
	font-size: 0.875rem;
	line-height: 1.8;
}

.l-sidebar .cashless-profile__more {
	margin: 0.6em 0 0;
	text-align: right;
}

.l-sidebar .cashless-profile__more a {
	color: var(--color_main);
	font-weight: 700;
}

.l-sidebar .wp-block-categories {
	margin: 0;
	padding: 0;
	list-style: none;
}

.l-sidebar .wp-block-categories a {
	color: var(--color_text);
}

/* Menu items fill the header height; centre the pills, and keep the menu next to the logo with search at the end */
.c-gnav > .menu-item {
	display: flex;
	align-items: center;
}

@media (min-width: 960px) {
	.l-header__gnav {
		margin-left: 24px;
		margin-right: auto;
	}
}

/* ---------- Footer: columns like the EmDash footer ---------- */

.l-footer {
	border-top: 1px solid var(--cashless-line);
}

.l-footer .cashless-footer__logo img {
	border: 0;
}

.l-footer .cashless-footer__tagline {
	margin-top: 0.6em;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--cashless-text-secondary);
}

.l-footer .cashless-footer__title {
	margin-bottom: 0.6em;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cashless-muted);
}

.l-footer .cashless-footer__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.l-footer .cashless-footer__links li {
	margin: 0 0 0.5em;
}

.l-footer .cashless-footer__links a {
	color: var(--color_text);
	font-size: 0.9375rem;
	text-decoration: none;
}

.l-footer .cashless-footer__links a:hover {
	color: var(--color_main);
}

/* Promotion notice for posts with affiliate links (functions.php), same look as the EmDash notice */
.post_content .cashless-promo {
	display: inline-block;
	margin: 0 0 1em;
	padding: 0.25em 0.75em;
	border: 1px solid var(--cashless-line);
	border-radius: 6px;
	background: #fff;
	font-size: 1rem;
}

/* "あわせて読みたい" at the end of posts (functions.php) */
.post_content .cashless-related {
	margin: 3em 0 1em;
	padding: 1.2em 1.2em 0.6em;
	border: 1px solid #d8ece4;
	border-radius: 12px;
	background: #f6fbf8;
}

.post_content .cashless-related__title {
	margin: 0 0 0.8em;
	color: var(--color_main);
	font-weight: 700;
}

.post_content .cashless-related__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.post_content .cashless-related__list li {
	margin: 0 0 0.6em;
	padding: 0;
}

.post_content .cashless-related__list li::before {
	content: none;
}

.post_content .cashless-related__list a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.post_content .cashless-related__thumb {
	flex: 0 0 auto;
	width: 96px;
	height: 54px;
	margin: 0 !important;
	border-radius: 6px;
	object-fit: cover;
}

.post_content .cashless-related__name {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.5;
}

.post_content .cashless-related__list a:hover .cashless-related__name {
	color: var(--color_main);
}
