/*
Theme Name:     TKTX Welcart Child
Description:    TKTX child theme for Welcart Basic 1.8.11.
Author:         Welcart Inc. / TKTX
Author URI:     https://www.welcart.com/
Template:       welcart_basic_1_8_11_official
Version:        1.1.32
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    tktx-welcart-child
*/

.tktx-site-logo-picture,
.tktx-site-logo {
	display: block;
	width: 100%;
	height: auto;
}

.site-title a {
	display: block;
}

.tktx-menu-toggle {
	display: none;
}

.tktx-breadcrumbs {
	margin: 0 auto 1.5rem;
	font-size: .875rem;
}

.tktx-breadcrumbs .breadcrumb-sep {
	padding: 0 .35em;
}

.tktx-search-form .s-box {
	display: flex;
	align-items: stretch;
}

.tktx-search-form .searchsubmit {
	font-family: FontAwesome, sans-serif;
}

.tktx-footer-inner {
	width: min(100% - 2rem, 1000px);
	margin-inline: auto;
}

/* Keep parent-theme fixed navigation widths inside the footer container. */
#colophon .tktx-footer-nav,
#colophon .tktx-footer-sns,
#colophon .footer-menu {
	width: 100%;
	max-width: 100%;
}

.tktx-footer-sns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
	margin: 12px 0 0;
	padding: 0;
}

.tktx-footer-sns-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid transparent;
	border-radius: 50%;
	background: #fff;
	transition: opacity .2s ease, transform .2s ease;
}

.tktx-footer-sns-btn:hover,
.tktx-footer-sns-btn:focus-visible {
	opacity: .82;
	transform: translateY(-2px);
}

.tktx-footer-sns-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.tktx-footer-sns-btn svg {
	width: 23px;
	height: 23px;
	fill: #fff;
}

.tktx-footer-sns-x,
.tktx-footer-sns-threads {
	background: #fff;
}

.tktx-footer-sns-x svg,
.tktx-footer-sns-threads svg {
	fill: #000;
}

.tktx-footer-sns-instagram {
	background: #c13584;
}

.tktx-footer-sns-facebook {
	background: #1877f2;
}

.tktx-footer-sns-bluesky {
	background: #1185fe;
}

.tktx-footer-sns-line {
	background: #06c755;
}

.tktx-item-header {
	margin-top: 25px;
	padding-bottom: 15px;
	border-bottom: 1px solid #ddd;
}

.tktx-item-header .item-name {
	margin-bottom: 8px;
}

.tktx-item-header .itemcode {
	color: #666;
	font-size: 14px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: .75rem 1rem;
	clip: auto;
	background: #fff;
	color: #111;
}

/* Article readability: keep long-form content comfortable on desktop and mobile. */
body.single-post #content article .entry-title {
	font-size: 28px;
	line-height: 1.45;
	letter-spacing: 0;
	white-space: normal;
	word-break: auto-phrase;
	overflow-wrap: anywhere;
}

body.single-post #content article .entry-content {
	color: #222;
	font-size: 17px;
	line-height: 1.85;
}

body.single-post #content article .entry-content p,
body.single-post #content article .entry-content li,
body.single-post #content article .entry-content dd,
body.single-post #content article .entry-content td,
body.single-post #content article .entry-content th {
	font-size: 17px;
	line-height: 1.85;
}

body.single-post #content article .entry-content h2 {
	font-size: 24px;
	line-height: 1.55;
}

body.single-post #content article .entry-content h3 {
	font-size: 20px;
	line-height: 1.6;
}

body.single-post #content article .entry-content .tktx-author-box-desc {
	font-size: 16px;
	line-height: 1.75;
}

@media (max-width: 767px) {
	body .snav,
	body .tktx-menu-toggle {
		display: none !important;
	}

	body.single-post #content article .entry-title {
		font-size: 22px;
		line-height: 1.5;
	}

	body.single-post #content article .entry-content,
	body.single-post #content article .entry-content p,
	body.single-post #content article .entry-content li,
	body.single-post #content article .entry-content dd,
	body.single-post #content article .entry-content td,
	body.single-post #content article .entry-content th {
		font-size: 16px;
		line-height: 1.8;
	}

	body.single-post #content article .entry-content h2 {
		font-size: 21px;
		line-height: 1.55;
	}

	body.single-post #content article .entry-content h3 {
		font-size: 18px;
		line-height: 1.6;
	}

	body.single-post #content article .entry-content .tktx-author-box-desc {
		font-size: 15px;
		line-height: 1.75;
	}
}

@media (max-width: 999px) {
	.tktx-menu-toggle {
		display: inline-flex;
		position: fixed;
		top: 12px;
		right: 12px;
		z-index: 9999;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 10px;
		background: #111;
		color: #fff;
		font-size: 22px;
		box-shadow: 0 6px 18px rgb(0 0 0 / 25%);
	}

	#tktx-primary-menu {
		display: none;
		position: fixed;
		top: 0;
		right: 0;
		z-index: 9998;
		width: min(84vw, 420px);
		height: 100vh;
		padding: 72px 8px 24px;
		overflow: auto;
		background: #fff;
		box-shadow: -12px 0 24px rgb(0 0 0 / 25%);
	}

	#site-navigation {
		padding: 0;
	}

	#tktx-primary-menu[data-open="true"] {
		display: block;
	}

	.tktx-menu-open {
		overflow: hidden;
	}

	#tktx-primary-menu .header-nav-container,
	#tktx-primary-menu .sub-menu {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#tktx-primary-menu a {
		display: block;
		padding: 12px 14px;
		border-bottom: 1px solid #eee;
		color: #111;
		text-decoration: none;
	}

	.tktx-footer-nav {
		width: 100%;
	}
}

@media (min-width: 1000px) {
	/* Account for a vertical scrollbar at the desktop breakpoint. */
	header .inner,
	#tktx-primary-menu > ul,
	#main {
		max-width: 100%;
	}

	#tktx-primary-menu {
		display: block;
		background: #131313;
	}

	#tktx-primary-menu > ul {
		width: 1000px;
		margin: 0 auto;
	}

	header .inner {
		align-items: flex-end;
		padding-bottom: .6em;
	}

	h1.site-title,
	div.site-title {
		padding: .6em 0 .4em;
	}

	.snav {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 8px;
		padding-top: 0;
	}

	#main {
		margin-top: 1.6em;
	}
}

/* Welcart cart/member readability. All rules are scoped to commerce screens. */
#content.cart-page,
#content.member-page {
	color: #222;
	font-size: 16px;
	line-height: 1.7;
}

#content.cart-page h1.cart_page_title,
#content.member-page h1.member_page_title {
	font-size: 28px !important;
	line-height: 1.45 !important;
	letter-spacing: 0 !important;
	white-space: normal !important;
	word-break: auto-phrase !important;
	overflow-wrap: anywhere !important;
}

#content.cart-page h2,
#content.member-page h2 {
	font-size: 21px;
	line-height: 1.55;
}

#content.cart-page p,
#content.member-page p,
#content.cart-page th,
#content.cart-page td,
#content.member-page th,
#content.member-page td,
#content.cart-page label,
#content.member-page label {
	font-size: 16px;
	line-height: 1.7;
}

#content.cart-page .cart_navi {
	margin-block: 1.25rem;
}

#content.cart-page .cart_navi ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
	margin: 0;
	padding: 0;
}

#content.cart-page .cart_navi li {
	display: flex;
	float: none !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0;
	min-height: 48px;
	height: auto !important;
	padding: .5rem .35rem;
	font-size: 15px;
	line-height: 1.35 !important;
	text-align: center;
}

#content.cart-page .cart_navi li::before,
#content.cart-page .cart_navi li::after {
	display: none !important;
	content: none !important;
}

#content.cart-page .cart_navi .tktx-cart-step-number {
	display: inline-flex;
	flex: 0 0 26px;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin-right: .45rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
}

#content.cart-page .cart_navi .tktx-cart-step-label {
	display: block;
	min-width: 0;
	line-height: 1.35;
}

#content.cart-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#content.cart-page select,
#content.cart-page textarea,
#content.member-page input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
#content.member-page select,
#content.member-page textarea {
	box-sizing: border-box;
	min-height: 44px;
	padding: .55rem .7rem;
	font-size: 16px !important;
	line-height: 1.4;
}

#content.cart-page input[type="checkbox"],
#content.cart-page input[type="radio"],
#content.member-page input[type="checkbox"],
#content.member-page input[type="radio"] {
	width: 20px;
	height: 20px;
	vertical-align: -.2em;
}

#content.cart-page input[type="submit"],
#content.cart-page input[type="button"],
#content.cart-page button,
#content.member-page input[type="submit"],
#content.member-page input[type="button"],
#content.member-page button,
#content.member-page .loginbox .nav a,
#content.member-page .new-entry .nav a {
	min-height: 48px !important;
	height: auto !important;
	padding: .7rem 1rem;
	font-size: 16px !important;
	line-height: 1.4;
}

#content.member-page .loginbox .nav a,
#content.member-page .new-entry .nav a {
	display: inline-flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
}

#content.cart-page input:focus-visible,
#content.cart-page select:focus-visible,
#content.cart-page textarea:focus-visible,
#content.cart-page button:focus-visible,
#content.cart-page a:focus-visible,
#content.member-page input:focus-visible,
#content.member-page select:focus-visible,
#content.member-page textarea:focus-visible,
#content.member-page button:focus-visible,
#content.member-page a:focus-visible {
	outline: 3px solid #174ea6;
	outline-offset: 2px;
}

#content.cart-page .send,
#content.member-page .send {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem;
}

#content.cart-page .error_message:not(:empty),
#content.member-page .error_message:not(:empty) {
	margin-block: 1rem;
	padding: .85rem 1rem;
	border: 2px solid #b00020;
	border-radius: 6px;
	background: #fff4f5;
	color: #850018;
	font-size: 16px;
	line-height: 1.65;
}

#content.cart-page #cart_table .amount {
	font-size: 18px;
}

@media (max-width: 767px) {
	#content.cart-page h1.cart_page_title,
	#content.member-page h1.member_page_title {
		font-size: 22px !important;
		line-height: 1.5 !important;
	}

	#content.cart-page h2,
	#content.member-page h2 {
		font-size: 19px;
		line-height: 1.55;
	}

	#content.cart-page .cart_navi ul {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	#content.cart-page .cart_navi li {
		font-size: 14px;
	}

	#content.cart-page #cart_table th,
	#content.cart-page #cart_table td {
		font-size: 15px;
		line-height: 1.6;
	}

	#content.cart-page #cart_table,
	#content.cart-page #cart_table tbody,
	#content.cart-page #cart_table tfoot {
		display: block;
		width: 100%;
	}

	#content.cart-page #cart_table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}

	#content.cart-page #cart_table tbody tr {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr);
		gap: .25rem .75rem;
		margin-bottom: 1rem;
		padding: .9rem;
		border: 1px solid #d4d4d4;
		border-radius: 8px;
		background: #fff;
	}

	#content.cart-page #cart_table tbody td {
		display: flex !important;
		grid-column: 2;
		align-items: center;
		width: auto !important;
		height: auto !important;
		min-width: 0;
		padding: .25rem 0;
		border: 0;
		text-align: left;
	}

	#content.cart-page #cart_table tbody td.num {
		display: none !important;
	}

	#content.cart-page #cart_table tbody td.thumbnail {
		display: block !important;
		grid-column: 1;
		grid-row: 1 / span 6;
		padding-top: .25rem;
	}

	#content.cart-page #cart_table tbody td.thumbnail a,
	#content.cart-page #cart_table tbody td.thumbnail img {
		display: block !important;
		width: 72px !important;
		height: auto !important;
	}

	#content.cart-page #cart_table tbody td.productname {
		font-size: 16px;
		font-weight: 700;
		line-height: 1.6;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	#content.cart-page #cart_table tbody td[data-label]:not(.productname)::before {
		content: attr(data-label) "：";
		flex: 0 0 6.5em;
		font-weight: 700;
	}

	#content.cart-page #cart_table tbody td.action {
		justify-content: flex-end;
	}

	#content.cart-page #cart_table tfoot tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: .75rem;
		padding: .75rem .9rem;
		border-top: 2px solid #333;
	}

	#content.cart-page #cart_table tfoot .num,
	#content.cart-page #cart_table tfoot .thumbnail,
	#content.cart-page #cart_table tfoot .stock,
	#content.cart-page #cart_table tfoot .action {
		display: none !important;
	}

	#content.cart-page #cart_table tfoot th[colspan],
	#content.cart-page #cart_table tfoot .amount {
		display: block !important;
		width: auto !important;
		height: auto !important;
		padding: 0;
		border: 0;
	}

	#content.cart-page .customer_form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
	#content.cart-page .customer_form select,
	#content.cart-page .customer_form textarea,
	#content.member-page .customer_form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
	#content.member-page .customer_form select,
	#content.member-page .customer_form textarea,
	#content.member-page #loginform input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
		width: 100% !important;
		max-width: 100%;
	}

	#content.cart-page #cart_table input.quantity {
		width: 60px !important;
		min-width: 60px;
	}

	#content.cart-page .send,
	#content.member-page .send {
		flex-direction: column;
	}

	#content.cart-page .send input,
	#content.cart-page .send button,
	#content.member-page .send input,
	#content.member-page .send button {
		width: 100%;
		margin: 0 !important;
	}

	#content.member-page .loginbox .member-box,
	#content.member-page .loginbox .new-entry {
		box-sizing: border-box;
		max-width: 100%;
	}
}

/* Phase044: restored sidebar cards, scoped to the existing sidebar. */
#secondary .sidebar-bestseller {
	display: grid;
	gap: 14px;
}

#secondary .sidebar-bestseller .sb-card {
	margin: 0;
	padding: 0;
}

#secondary .sidebar-bestseller .sb-item {
	display: block;
	box-sizing: border-box;
	padding: 12px 8px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	color: #222;
	text-align: center;
	text-decoration: none;
}

#secondary .sidebar-bestseller .sb-name {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
}

#secondary .sidebar-bestseller .sb-image {
	display: block;
	margin: 10px 0;
}

#secondary .sidebar-bestseller .sb-image img {
	display: block;
	width: 78%;
	max-width: 160px;
	height: auto;
	margin-inline: auto;
	object-fit: contain;
}

#secondary .sidebar-bestseller .sb-price {
	display: block;
	margin: 0;
	padding: 0;
	color: #a01717;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
}

#secondary .sidebar-bestseller .tax {
	color: #444;
	font-size: 14px;
	font-weight: 400;
}

#secondary .sidebar-bestseller .sb-item:hover {
	border-color: #999;
	background: #fafafa;
}

#secondary .sidebar-bestseller .sb-item:focus-visible {
	outline: 3px solid #1767b4;
	outline-offset: 3px;
}

/* Keep footer links readable and compact without fixed-width columns. */
#colophon.tktx-footer {
	padding: 12px 0 10px;
}

#colophon .tktx-footer-nav {
	margin: 0;
	padding: 0;
}

#colophon .footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#colophon .footer-menu::before,
#colophon .footer-menu::after {
	display: none;
}

#colophon .footer-menu > li {
	float: none;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
}

#colophon .footer-menu > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 44px;
	padding: 8px;
	color: #fff;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	letter-spacing: normal;
	word-spacing: normal;
}

#colophon .footer-menu > li > a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

#colophon .footer-menu > li > a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

#colophon .copyright {
	margin: 12px 0 0;
	padding: 0;
	color: #ddd;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

#colophon .copyright:empty {
	display: none;
}

/* Shared mobile footer and one back-to-top control (045). */
#toTop.tktx-backtop {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(24px, env(safe-area-inset-bottom));
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	z-index: 800;
}
#toTop.tktx-backtop a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: #26384b;
	color: #fff;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
#toTop.tktx-backtop a:hover { background: #175da0; }
#toTop.tktx-backtop a:focus-visible { outline: 3px solid #1475ce; outline-offset: 3px; }
@media (max-width: 767px) {
	#colophon.tktx-footer { padding: 12px 0 max(16px, env(safe-area-inset-bottom)); }
	#colophon .footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
	#colophon .footer-menu li { min-width: 0; }
	#colophon .footer-menu > li > a { justify-content: flex-start; min-height: 44px; padding: 6px 4px; font-size: 15px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
	#colophon .tktx-footer-sns { margin-top: 16px; }
	#toTop.tktx-backtop { bottom: calc(82px + env(safe-area-inset-bottom)); }
}

#toTop.tktx-backtop.tktx-backtop-at-footer { visibility: hidden; pointer-events: none; }


/* 119: white checkout progress with an explicit current-step marker. */
#content.cart-page .cart_navi ul { position:relative; gap:0; }
#content.cart-page .cart_navi ul::before { content:""; display:block; position:absolute; left:12.5%; right:12.5%; top:49px; height:1px; background:#b3bac1; }
#content.cart-page .cart_navi li { position:relative; flex-direction:column; justify-content:flex-start; gap:7px; padding:0 2px 5px; min-height:92px; border:0; background:transparent !important; color:#46515c; box-shadow:none !important; font-weight:400; }
#content.cart-page .cart_navi .tktx-cart-step-current-marker { display:flex; align-items:center; justify-content:center; gap:3px; height:28px; min-height:28px; visibility:hidden; color:#945016; font-size:19px; line-height:1; }
#content.cart-page .cart_navi .tktx-cart-step-current-marker svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
#content.cart-page .cart_navi .tktx-cart-step-marker { display:flex; align-items:center; justify-content:center; }
#content.cart-page .cart_navi .tktx-cart-step-number { position:relative; z-index:1; box-sizing:border-box; flex:0 0 28px; width:28px; height:28px; margin:0; border:1.5px solid #7b858e; border-radius:50%; background:#fff; color:#46515c; font-size:15px; font-weight:600; }
#content.cart-page .cart_navi li[aria-current=step] { color:#945016; font-weight:700; }
#content.cart-page .cart_navi li[aria-current=step] .tktx-cart-step-current-marker { visibility:visible; }
#content.cart-page .cart_navi li[aria-current=step] .tktx-cart-step-number { border:2px solid #b86a24; color:#945016; }
#content.cart-page .cart_navi .tktx-cart-step-label { white-space:nowrap; line-height:1.5; }
@media(max-width:767px) {
 #masthead .inner { padding-top:6px !important; padding-bottom:6px !important; }
 #masthead .site-title { margin:0 !important; padding:0 !important; }
 #masthead .site-title img { display:block; margin:0 auto; }
 #content.cart-page .cart_navi { margin:6px 0 18px; }
 #content.cart-page .cart_navi li { min-height:84px; font-size:11px; }
}

/* 121: distinguish the fixed mobile navigation including its safe area. */
@media (max-width: 767px) {
 body #tktx-mobile-ui-v1 { background: #eaf2f8 !important; border-top: 1px solid #c3d3df; box-shadow: 0 -2px 8px rgba(31,50,68,.08); }
}

/* 129: Fold footer navigation and SNS together on phones; copyright stays visible. */
#colophon .tktx-footer-toggle[hidden],
#colophon .tktx-footer-links[hidden] { display: none !important; }
@media (max-width: 767px) {
	#colophon .tktx-footer-toggle:not([hidden]) {
		display: flex;
		align-items: center;
		justify-content: space-between;
		box-sizing: border-box;
		width: 100%;
		min-height: 44px;
		margin: 0;
		padding: 10px 14px;
		border: 1px solid #65717c;
		border-radius: 6px;
		background: #26323d;
		color: #fff;
		font-size: 16px;
		font-weight: 600;
		line-height: 1.5;
		text-align: left;
		cursor: pointer;
	}
	#colophon .tktx-footer-toggle-icon { margin-left: 12px; font-size: 12px; }
	#colophon .tktx-footer-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
	#colophon .tktx-footer-links:not([hidden]) { padding-top: 8px; }
}
