/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

:root {
	--key-pink: #e9c4f2;
	--key-pink-vivid: #df96f2;
	--key-blue: #5a86f4;
	--key-orange: #ec9976;
	--key-teal: #0cb4ce;
	--key-purple: #ba9df1;
	--key-purple-vivid: #9665f2;
}

.heading-gap > .heading-text > * > span:not(:first-child) {
	padding-top: .5em;
}

/* Post Module */
.text-ellipsis {
	width: 100%;
	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	/* ブラウザがサポートしていない場合のフェールセーフ */
	max-height: 24px;
}

:not(.tmb-post):not(.tmb-title):not(.tmb-table).tmb.tmb-only-text .t-entry > *:not(hr):not(.spacer) {
	margin: 0px 0px 0px 0px;
	&:not(:first-child) {margin-top: 9px;}
	&.t-entry-meta {line-height: 1;}
}

.btn-text-right .btn-container {text-align: right;}

.tmb-round .t-inside {overflow: hidden;}

/* Backgrounds */

.overlay-bg.style-light-bg,
.style-color-blurred-bg {
	background-color: transparent;
	backdrop-filter: blur(15px);
}
.style-purple-blur-bg {
	backdrop-filter: blur(15px);
}

/* Background Texture */
.bg-overlay-texture:before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: url(https://satooya.tsutsuji.or.jp/dist/wp-content/uploads/2026/07/subtle-overlay-30.png);
	background-size: 400px;
	background-repeat: repeat;
}

/* menu */
@media (max-width: 959px){
	.menu-container .row-background {
		display: none;
	}
}
@media (min-width: 960px) {
	.logo-container .main-logo {
		height: max(60px, 5vw) !important;
		line-height: max(60px, 5vw) !important;
	}

  .lines-button .lines,
  .lines-button .lines:before,
  .lines-button .lines:after,
  .lines-button .lines > span {
    height: max(2px, 0.2083vw);
    width: max(20px, 2.0833vw);
  }

  /* transform-originはwidthの半分なのでcalcで連動させる */
  .lines-button .lines:before,
  .lines-button .lines:after,
  .lines-button .lines > span {
    transform-origin: calc(max(20px, 2.0833vw) / 2) center;
  }

  .lines-button .lines:before {
    top: max(6px, 0.625vw);
  }
  body.uncode-alt-burger .lines-button .lines:before {
    top: max(4px, 0.4167vw);
  }

  /* 負の値はmin()を使う（maxだと縮む方向に働いてしまう） */
  .lines-button .lines:after {
    top: min(-6px, -0.625vw);
  }
  body.uncode-alt-burger .lines-button .lines:after {
    top: min(-4px, -0.4167vw);
  }
  
	/**
	 * 日本財団ロゴ
	 */
	
	/* besides burder menu */
	.menu-container > .row-menu:has(.logo-container.shrinked) {
		backdrop-filter: blur(15px);
		-webkit-backdrop-filter: blur(15px);
		mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%);
		-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%);
	}
	body.menu-overlay .mmb-container {
		flex-direction: row-reverse;
		right: 36px;
		&:before {
	
	/* besides Logo */
	/*#main-logo {
		display: flex;
		flex-flow: row nowrap;
		gap: calc(max(60px, 5vw) / 4);
		
		&:after {*/
			content: "";
			display: block;
			width: auto;

			/* 横長 */
			aspect-ratio: 75/11;
			height: calc(max(60px, 5vw) / 2);
			background: url(./images/STNF2+BG.svg);

			/* スクエア */
			aspect-ratio: 96/101;
			height: calc(max(60px, 5vw) / 1);
			background: url(./images/STNF1+BG.svg);
		}
	}
}

/* Footer Gradient Spacing */
body.page,
body.archive {
	& .post-content > section:last-child {
		padding-bottom: 144px;
	}
}
footer .uncode-post-table {
	@media (min-width: 570px) {
		& .uncode-post-table-column {
			& > * {
				display: inline-block
			}
			
			& .t-entry-cf-title-name {
				margin: 0 !important;
				padding-left: 1em;
			}
		}
	}
	@media (max-width: 959px) {
		& .tmb-content-left.tmb.tmb-table .uncode-post-table-column {
			text-align: center;
		}
	}
	& .tmb-no-bg.tmb > .t-inside {
		transition: background 0.4s cubic-bezier(0.25, 0.45, 0.4, 1);
		& > * {
			transition: transform 0.4s cubic-bezier(0.25, 0.45, 0.4, 1);
		}
		&:hover {
			background: var(--key-purple-vivid);
			
			@media (min-width: 960px) {
				& > * {
					transform: translateX(20px);
				}
			}
		}
	}
}



/* Home */
@media (max-width:959px) {
	#home-header > .row-background > .background-wrapper > .background-inner {
		background-size: 150vw !important;
		background-position: center 30vh !important;
	}
}

/* tate */

.tate, .tate.vc_custom_heading_wrap > .heading-text > * {
	writing-mode: vertical-rl;
	font-feature-settings: "vhal" 1;
	-webkit-font-feature-settings: "palt" 1, "vpal" 1;
	width: 100%;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
}

.tate.just-start, .tate.just-start.vc_custom_heading_wrap > .heading-text > * {
	justify-content: flex-start;
}
.tate.just-end, .tate.just-end.vc_custom_heading_wrap > .heading-text > * {
	justify-content: flex-end;
}

.btn-container {
	margin-top: 0;
}


/* Invert Column when hover */
.hover-invert {
	& .row-inner .uncol {
		&:hover {
			& .block-bg-overlay {opacity: 1 !important;}
			& .heading-text .text-color-xsdn-color {color: #0cb4ce !important;}
		}
	}
}

/* Contend Slider horizontal Scroll */

/*@media (max-width: 959px) {
	.pin-spacer {
		height: auto !important;
		padding: 0 !important;

		& >  .row-container {
			height: auto !important;
			max-height: 1000vh !important;
			transform: none !important;
			position: relative !important;
			top: auto !important;

			& .cs-track {
				flex-direction: column;
				transform: none !important;

				& .cs-container.row-internal.row-container {
					height: auto !important;
					max-height: none !important;
					transform: none !important;
					position: relative !important;
					top: auto !important;

					& .pin-spacer {
						.sticky-trigger {
							height: auto !important;
							max-height: none !important;
							transform: none !important;
							margin: auto !important;
							width: auto !important;
							max-width: none !important;
							inset: none !important;
							padding: none !important;
						}
					}
				}
			}
		}
	}
}*/


/* Page As */

article.page_category-as {
	
	@media (min-width:960px) {
		& .un-sidebar-layout {
			font-size: clamp(1.3rem,1.35416666666667vw,1.625rem);
			--sidebar-width: calc(9em + 54px);
			max-width: max(85vw, 888px);
			margin: auto;
			
			& > .row-inner {
				display: flex;
				flex-flow: row nowrap;
				
				& > * {
					width: auto;
					height: auto;
					flex-basis: 100%;
				}
				
				& > .col-widgets-sidebar {
					flex-basis: var(--sidebar-width);
				}
			}
			
			& .sticky-element:not(#page-header) {
				height: 100vh !important;
				width: var(--sidebar-width) !important;
				
				&+div {
					width: var(--sidebar-width) !important;
				}
				
				& .uncell {
					display: flex;
					flex-flow: column nowrap;
					justify-content: center;
				}
			}
		}
	}
	
	
	& .widget-container.sidebar-widgets {
		padding: var(--one-v_gap) 0 var(--one-v_gap) 54px;
	}
	& .widget-container.widget_nav_menu {
		& .menu-item {
			cursor: pointer;
			& a {
				font-size: clamp(1.3rem,1.35416666666667vw,1.625rem);
				transition: color 0.4s cubic-bezier(0.25, 0.45, 0.4, 1);
				&:before {
					content: "";
					position: relative;
					display: inline-block;
					width: .5em;
					height: .5em;
					border-radius: 1em;
					background: #ba9df150;
					margin-right: 0.5em;
					margin-top: 0;
					top: -0.1em;
					transition: background 0.4s cubic-bezier(0.25, 0.45, 0.4, 1);
				}
			}
			&.is-active a {
				color: var(--key-pink-vivid);
				&:before {
					background: var(--key-pink-vivid);
				}
			}
		}
	}
	
	@media (max-width:959px) {
		.col-widgets-sidebar {
			display: none;
		}
	}
}

/* Faq */
.single-portfolio {background: #fff;}
.single-portfolio .menu-wrapper {display: none;}
.lity {
	background: #ba9df1aa;
	backdrop-filter: blur(10px);
}
.lity-wrap.lity-faq {
	& .lity-container {max-width: max(50vw, 300px);}
	& .lity-iframe-container {padding-top: 66.666%; height: auto;}
	.lity-iframe-container iframe {background: #fff;}
}

.t-entry-cf-question {
	&:before {
		content: "\f0e5";
		font-weight: 600 !important;
		font-family: 'uncodeicon' !important;
		speak: none;
		font-style: normal;
		font-weight: normal;
		font-variant: normal;
		text-transform: none;
		line-height: 1;
		-webkit-font-smoothing: antialiased;
		
		display: inline-block;
		padding-right: .5em;
	}
}


/* Form */

.form-line {
	flex-flow: column nowrap;
	align-items: start;
	gap: .5em;
	padding-bottom: var(--v_gap);
	
	& .wpcf7-form-control-wrap {width: 100%;}
	
	& input, & select {
		padding: 1em 1.5em;
		border-radius: 5em;
		&::placeholder {
			color: rgba(255,255,255,.6);
		}
	}
	& textarea {
		padding: 1em 1.5em;
		border-radius: 1.5em;
		
		&::placeholder {
			color: rgba(255,255,255,.7);
		}
	}
	
	& input[type=checkbox],& input[type=radio] {
		border-color: #fff !important;
		&:checked {
			border-color: #000 !important;
			background-color: #000;
		}
	}
	& label small {font-weight: 500;}
	
	& .wpcf7-list-item-label, & .wpcf7-acceptance .wpcf7-list-item-label {
		line-height: 1;
	}
}

.input-background .style-dark input[type="text"], .input-background .style-light .style-dark input[type="text"], .input-background .style-dark input[type="email"], .input-background .style-light .style-dark input[type="email"], .input-background .style-dark input[type="number"], .input-background .style-light .style-dark input[type="number"], .input-background .style-dark input[type="url"], .input-background .style-light .style-dark input[type="url"], .input-background .style-dark input[type="tel"], .input-background .style-light .style-dark input[type="tel"], .input-background .style-dark input[type="search"], .input-background .style-light .style-dark input[type="search"], .input-background .style-dark input[type="password"], .input-background .style-light .style-dark input[type="password"], .input-background .style-dark input[type="date"], .input-background .style-light .style-dark input[type="date"], .input-background .style-dark textarea, .input-background .style-light .style-dark textarea, .compose-mode.input-background .style-dark .lateral-nav-parent li, .compose-mode.input-background .style-light .style-dark .lateral-nav-parent li {
	background-color: transparent !important;
	
	&:active, &:focus {background-color:rgba(0, 0, 0, 0.15) !important;}
}

html .input-background select, .style-dark input:not([type='submit']):not([type='button']):not([type='number']):not([type='checkbox']):not([type='radio']):focus, .style-dark textarea:focus, .style-light .style-dark input:not([type='submit']):not([type='button']):not([type='number']):not([type='checkbox']):not([type='radio']):focus, .style-light .style-dark textarea:focus {
	border-color: #000000;
}
.input-background .style-dark select, .input-background .style-light .style-dark select, .input-background .style-dark .select2-selection--single, .input-background .style-light .style-dark .select2-selection--single {
	&, &:active, &:focus {background-color: #000 !important;}
} 