/*
Theme Name: AFFINGER7 Child
Template: affinger
Description: AFFINGER7 対応
Version: 20260914.6
*/

/* Sitewide heading reset: keep the hierarchy, remove AFFINGER's top/bottom rules. */
#contentInner h2,
#contentInner h3,
#contentInner h4,
#contentInner h5,
#contentInner h6,
#contentInner h1 {
	border-top: 0 !important;
	border-bottom: 0 !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

#contentInner h1::before,
#contentInner h1::after,
#contentInner h2::before,
#contentInner h2::after,
#contentInner h3::before,
#contentInner h3::after,
#contentInner h4::before,
#contentInner h4::after,
#contentInner h5::before,
#contentInner h5::after,
#contentInner h6::before,
#contentInner h6::after {
	content: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Keep the age notice quiet and let the site title carry the accent color. */
#st-header-top-widgets-box-wrapper,
#st-header-top-widgets-box,
#st-header-top-widgets-box .st-content-width,
#st-header-top-widgets-box .top-content,
#st-header-top-widgets-box .textwidget {
	background: transparent !important;
}

#st-header-top-widgets-box .textwidget,
#st-header-top-widgets-box .textwidget p {
	color: #111 !important;
}

#st-text-logo .sitename a,
#st-text-logo .sitename a:hover,
#st-text-logo .sitename a:focus {
	color: #CC0100 !important;
}

#header-l #st-text-logo .sitename a,
#st-mobile-logo + #header-l #st-text-logo .sitename a,
#st-mobile-logo a {
	color: #CC0100 !important;
}

/* Keep the age notice readable without turning it into a tall block on phones. */
@media print, screen and (max-width: 599px) {
	#st-header-top-widgets-box-wrapper,
	#st-header-top-widgets-box,
	#st-header-top-widgets-box .st-content-width,
	#st-header-top-widgets-box .top-content,
	#st-header-top-widgets-box .textwidget {
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box;
	}

	#st-header-top-widgets-box .textwidget p {
		margin: 0 !important;
		padding: .55rem .75rem !important;
		font-size: .72rem !important;
		line-height: 1.45 !important;
		text-align: center;
	}
}

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* Responsive global navigation: fixed bottom navigation on phones and tablets. */
.srkc-responsive-global-nav,
.drc-responsive-global-nav {
	display: none;
}

@media print, screen and (max-width: 959px) {
	body {
		padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important;
	}

	#srkc-mobile-footer-nav,
	#drc-mobile-footer-nav {
		background: rgba(255, 255, 255, .98);
		border-top: 1px solid #e6e6e6;
		bottom: 0;
		box-shadow: 0 -3px 12px rgba(0, 0, 0, .12);
		display: block;
		left: 0;
		padding: 0 0 env(safe-area-inset-bottom);
		position: fixed;
		width: 100%;
		z-index: 100001;
	}

	#srkc-mobile-footer-nav .srkc-responsive-global-nav-list,
	#drc-mobile-footer-nav .drc-responsive-global-nav-list {
		display: flex !important;
		list-style: none;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	#srkc-mobile-footer-nav .srkc-responsive-global-nav-list > li,
	#drc-mobile-footer-nav .drc-responsive-global-nav-list > li {
		border-left: 1px solid #f0f0f0;
		float: none !important;
		flex: 1 1 0;
		list-style: none;
		min-width: 0;
		text-align: center;
	}

	#srkc-mobile-footer-nav .srkc-responsive-global-nav-list > li:first-child,
	#drc-mobile-footer-nav .drc-responsive-global-nav-list > li:first-child {
		border-left: 0;
	}

	#srkc-mobile-footer-nav .srkc-responsive-global-nav-list > li > a,
	#drc-mobile-footer-nav .drc-responsive-global-nav-list > li > a {
		align-items: center;
		color: #333;
		display: flex;
		font-size: 11px;
		font-weight: 600;
		justify-content: center;
		line-height: 1.25;
		min-height: 52px;
		overflow: hidden;
		padding: 6px 3px;
		text-decoration: none;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	#srkc-mobile-footer-nav .srkc-responsive-global-nav-list > li.current-menu-item > a,
	#srkc-mobile-footer-nav .srkc-responsive-global-nav-list > li > a:hover,
	#drc-mobile-footer-nav .drc-responsive-global-nav-list > li.current-menu-item > a,
	#drc-mobile-footer-nav .drc-responsive-global-nav-list > li > a:hover {
		background: #fff5f5;
		color: #cc0100;
	}
}

@media print {
	.srkc-responsive-global-nav,
	.drc-responsive-global-nav {
		display: none !important;
	}
}
