/* =============================
   レスポンシブ共通CSS
   ============================= */

/* 1050px以下：サイドバー縮小、ヘッダー簡素化 */
@media (max-width: 1050px) {
	.footer_area {
		gap: 24px 8px;
		padding: 32px 4px 16px 4px;
		margin-left: 0;
	}

	#ft_list ul {
		min-width: 120px;
		max-width: 1fr;
		margin: 0 2px;
	}

	.footer_line_tate {
		display: none;
	}

	/* サイドバー縮小 */
	.side-menu {
		width: 56px;
		transition: width 0.3s;
		overflow-x: hidden;
		z-index: 1001;
	}

	.main-content {
		margin-left: 56px;
		transition: margin-left 0.3s;
	}

	.side-menu:hover,
	.side-menu:focus-within {
		width: 220px;
		box-shadow: 2px 0 8px rgba(0, 0, 0, 0.08);
	}

	.side-menu:hover~.main-content,
	.side-menu:focus-within~.main-content {
		margin-left: 220px;
	}

	.side-menu .side-block-title,
	.side-menu .side-block-text,
	.side-menu .side-block ul {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s;
	}

	.side-menu:hover .side-block-title,
	.side-menu:hover .side-block-text,
	.side-menu:hover .side-block ul,
	.side-menu:focus-within .side-block-title,
	.side-menu:focus-within .side-block-text,
	.side-menu:focus-within .side-block ul {
		opacity: 1;
		pointer-events: auto;
	}

	/* サイドバーMENUタイトル小さく */
	.side-menu .side-title {
		font-size: 1.1rem;
		letter-spacing: 0.1em;
		text-align: center;
		transition: font-size 0.2s;
		padding: 0.5rem 0;
	}

	.side-menu:hover .side-title,
	.side-menu:focus-within .side-title {
		font-size: 1.4rem;
		letter-spacing: 0.15em;
	}

	.side-menu .sidebar-scroll-hint {
		display: none;
	}


}

/* 768px以下：サイドバー非表示、セクション余白縮小 */
@media (max-width: 768px) {


	.purpose-grid,
	.novelty-grid {
		display: grid !important;
		grid-template-columns: 1fr !important;
	}

	.purpose-item {
		max-width: 100vw !important;
		padding: 20px 0;
	}

	.reasons-images {
		display: flex !important;
		flex-direction: row !important;
		justify-content: center;
		align-items: center;
		gap: 12px;
	}

	.reasons-images img {
		width: 48% !important;
		max-width: 180px !important;
		height: auto;
		display: none;
	}

	.reasons-images img:nth-child(2),
	.reasons-images img:nth-child(3) {
		display: block !important;
	}

	.reasons-grid,
	.reason-block {
		padding: 0;
	}

	.reason-block h3 {
		font-size: 1.4rem !important;
	}

	.header_flex,
	.headderRightbox,
	.sub-navbar,
	.breadcrumb,
	.fixed-cta-bar,
	.main-grid-buttons {
		display: none !important;
	}

	.sp_head {
		position: fixed;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		background: #fff;
		min-height: 60px;
		z-index: 999;
		top: 0;
		left: 0;
		width: 100%;
		box-sizing: border-box;
	}


	/* greybackセクションの最適化 */
	.greyback {
		padding: 2.5rem !important;
	}

	.greyback .miwrapper {
		width: 100% !important;
		max-width: 100vw !important;
		margin: 0 auto !important;
		padding: 0 !important;
		box-sizing: border-box;
	}

	.greyback .flexboxthree,
	.greyback .flexbox {
		flex-direction: column !important;
		align-items: center !important;
		gap: 1.2rem;
	}

	.greyback .mailbox {
		width: 100% !important;
		height: auto;
		padding: 1.2rem;
		margin: 1.2rem auto;
	}

	.greyback .mailbox img {
		margin-bottom: 0.6rem;
	}

	.greyback .ctabtn {
		font-size: 1.8rem !important;
		padding: 0.8rem 0.2rem !important;
		text-align: center !important;
	}

	.greyback .contacthead {
		font-size: 2.2rem !important;
		margin-bottom: 1rem !important;
	}

	.greyback .time {
		font-size: 1.4rem !important;
		margin-bottom: 0.5rem !important;
		text-align: center !important;
	}



	/* 見出し・リードのフォントサイズ縮小（クラス優先度で上書き） */
	body h1,
	body h1.h1-title {
		font-size: 2.6rem !important;
	}

	body h2,
	body h2.section-title {
		font-size: 2.2rem !important;
	}

	body h3,
	body h3.section-title {
		font-size: 1.8rem !important;
	}

	body .h1-subtitle {
		font-size: 1.4rem !important;
	}

	body .subtitle {
		font-size: 1.4rem !important;
	}

	body .lead {
		font-size: 1.4rem !important;
	}

	body,
	p,
	li,
	.main-content {
		font-size: 1.4rem !important;
	}

	.reasons-grid {
		display: grid !important;
		grid-template-columns: 1fr !important;
	}

	.price-label-img-row {
		gap: 2px;
		min-height: auto;
		justify-content: flex-start;
		width: 100%;
	}

	.price-label {
		max-width: 60vw;
		margin: 0 2rem 0 0;
		padding: 0.5rem;
		font-size: 1.2rem;
	}

	.price-img {
		max-height: 40px;
	}

	.price-info {
		font-size: 1.4rem;
	}

	.works-section {
		padding: 3rem;
	}

	.price-flex {
		flex-direction: column;
	}

	.price-col {
		max-width: 100% !important;
	}

	.price-section {
		padding: 32px 0 24px 0;
	}

	.price-inner {
		padding: 0 6px;
	}

	.price-title {
		font-size: 1.2em;
	}

	.price-buttons {
		flex-direction: column;
		gap: 12px;
		text-align: center;
	}

	.price-btn {
		width: 100%;
		padding: 14px 0;
	}

	.works-inner {
		position: relative;
	}

	.works-case-header {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 0;
		width: 100%;
	}

	.works-img {
		width: 100%;
	}

	.case-label {
		margin-bottom: 0;
		margin-right: 12px;
		white-space: nowrap;
	}

	.case-title-meta {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	.case-title {
		text-align: left;
		font-size: 1.0em;
		white-space: normal;
	}

	.case-meta {
		text-align: left;
		font-size: 0.98em;
		color: #888;
		margin-left: 0;
	}


	.works-title {
		font-size: 1.3em;
	}

	.works-subtitle {
		font-size: 1em;
		margin-bottom: 18px;
	}

	/* works 横スクロール（スマホのみ） */

	.scroll-hint {
		display: flex !important;
		align-items: center;
		justify-content: center;
		position: absolute;
		bottom: 16px;
		left: 50%;
		transform: translateX(-50%);
		z-index: 10;
		background: rgba(34, 34, 34, 0.68);
		color: #fff;
		font-size: 1.1em;
		padding: 0.6em 1.3em;
		border-radius: 2em;
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
		opacity: 0.92;
		transition: opacity 0.5s;
		pointer-events: none;
	}

	.scroll-hint .scroll-hint-icon {
		margin-right: 0.6em;
		font-size: 1.2em;
	}

	.scroll-hint.hide {
		opacity: 0;
		transition: opacity 0.5s;
	}

	.works-grid {
		display: flex !important;
		flex-direction: row;
		overflow-x: auto;
		gap: 8px;
		padding: 0 12px 16px;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scroll-padding: 0 12px;
		width: 100%;
		box-sizing: border-box;
	}

	.works-item {
		flex: 0 0 auto;
		padding: 0 2px;
		box-sizing: border-box;
		min-width: 300px;
	}

	/* ヘッダー簡素化（スマホのみ） */
	.headderRightbox,
	.sub-navbar,
	.breadcrumb {
		display: none !important;
	}

	header {
		padding-top: 60px;
	}

	.nega_menu {
		display: block !important;
	}

	.tel-text {
		text-align: center;
		background-color: #00A0E9;
		color: #fff;
		padding: 12px;
		display: block !important;
	}

	.menu_button {
		display: inline-block !important;
		position: absolute;
		right: 2rem;
		top: 1.2rem;
		z-index: 1002;
	}

	.header_flex {
		padding-right: 0;
		position: relative;
	}

	.header_flex>div:first-child {
		margin: 0 20px;
	}


	.side-menu,
	.sub-navbar,
	.breadcrumb {
		display: none !important;
	}

	.main-content {
		margin-left: 0 !important;
	}

	.related-section {
		display: none !important;
	}


	.price-section,
	.purpose-section,
	.contents-section,
	.infographic-section,
	.novelty-section,
	.branding-section,
	.digital-section,
	.step-section,
	.reasons-section,
	.faq-section,
	.trouble-section {
		padding: 3rem;
	}

	.related-inner,
	.price-inner,
	.purpose-inner,
	.contents-inner,
	.infographic-inner,
	.novelty-inner,
	.branding-inner,
	.digital-inner,
	.step-inner,
	.reasons-inner,
	.faq-inner {
		max-width: 100%;
		padding: 0;
	}

	#footer,
	#ft_list,
	.footer_line_tate,
	.footer_line_yoko,
	.footer_area>div:not(.footer-simple) {
		display: none !important;
	}

	.footer-simple {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 24px 0 12px 0;
		background: #fff;
		width: 100vw;
	}

	.footer-simple img {
		width: 90vw;
		margin-bottom: 8px;
	}

	.footer-simple .copyright {
		font-size: 0.8rem;
		color: #333;
		text-align: center;
	}

	.logomark img {
		width: 70%;
	}

	/* チェックボックスは非表示に */
	.drawer-hidden {
		display: none;
	}

	/* ハンバーガーアイコンの設置スペース */
	.drawer-open {
		display: flex;
		height: 60px;
		width: 60px;
		justify-content: center;
		align-items: center;
		position: relative;
		z-index: 100;
		/* 重なり順を一番上に */
		cursor: pointer;
		background-color: #00A0E9;
	}

	/* ハンバーガーメニューのアイコン */
	.drawer-open span,
	.drawer-open span:before,
	.drawer-open span:after {
		content: '';
		display: block;
		height: 3px;
		width: 25px;
		border-radius: 3px;
		background: #fff;
		transition: 0.5s;
		position: absolute;
	}

	/* 三本線のうち一番上の棒の位置調整 */
	.drawer-open span:before {
		bottom: 8px;
	}

	/* 三本線のうち一番下の棒の位置調整 */
	.drawer-open span:after {
		top: 8px;
	}

	/* アイコンがクリックされたら真ん中の線を透明にする */
	#drawer-check:checked~.drawer-open span {
		background: rgba(255, 255, 255, 0);
	}

	/* アイコンがクリックされたらアイコンが×印になように上下の線を回転 */
	#drawer-check:checked~.drawer-open span::before {
		bottom: 0;
		transform: rotate(45deg);
	}

	#drawer-check:checked~.drawer-open span::after {
		top: 0;
		transform: rotate(-45deg);
	}

	/* メニューのデザイン*/
	.drawer-content {
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 100%;
		/* メニューを画面の外に飛ばす */
		z-index: 99;
		background: #333;
		transition: .5s;
	}

	/* アイコンがクリックされたらメニューを表示 */
	#drawer-check:checked~.drawer-content {
		left: 0;
		/* メニューを画面に入れる */
	}


	.drawer-list {
		margin: 20% 10% 10% 10%;
	}

	.drawer-item {
		color: #fff;
		font-size: 2rem;
		border-bottom: 1px solid #fff;
		padding-bottom: 1rem;
		margin-bottom: 8%;
	}

	.drawer-item a {
		display: block;
		width: 100%;
		height: 100%;
		color: #fff;
	}

	.bottom-sticky-nav {
		height: 60px;
		position: fixed;
		display: block !important;
		background: #00A0E9;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 3;
	}

	.bottom-sticky-nav ul {
		list-style: none;
		padding: 0;
		margin: 0;
		display: flex;
		justify-content: space-evenly;
	}

	.bottom-sticky-nav ul li {
		flex: 1;
	}

	.bottom-sticky-nav ul li a {
		display: flex;
		flex-direction: column;
		align-items: center;
		height: 60px;
		color: #fff;
		padding-top: 12px;
	}

	.bottom-sticky-nav li+li {
		border-left: solid 0.5px #fff;
	}

	.bottom-sticky-nav ul li a:hover,
	.bottom-sticky-nav ul li a:focus {
		text-decoration: none;
	}

	.bottom-sticky-nav ul li a i {
		font-size: 2.2rem;
	}

	.bottom-sticky-nav ul li a span {
		line-height: 1.;
		font-size: 0.8rem;
	}

	.branding-btn {
		width: 100%;
	}

	.main-title {
		text-align: center;
		max-width: 90%;
		margin: 0 auto;
	}


}

/* PCでは非表示 */
@media (min-width: 769px) {

	.footer-simple,
	.sp_head,
	.flexc {
		display: none !important;
	}

	.scroll-hint {
		display: none !important;
	}
}

@media (max-width: 768px) {

	.infographic-grid {
		display: flex !important;
		/* 横並びにする */
		flex-direction: row !important;
		overflow-x: auto !important;
		/* 横スクロールを有効に */
		gap: 20px;
		/* ブロック間の余白（必要に応じて調整） */
		padding-bottom: 16px;
		/* スクロールヒントと被らないよう余白追加（任意） */
		-webkit-overflow-scrolling: touch;
		/* iOSで慣性スクロールを有効化 */
	}

	.infographic-block {
		min-width: 460px;
		flex: 0 0 auto;
	}

	.novelty-grid {
		display: flex !important;
		flex-direction: row !important;
		overflow-x: auto !important;
		gap: 20px;
		padding-bottom: 16px;
		-webkit-overflow-scrolling: touch;
		position: relative;
	}

	.novelty-item {
		width: 460px;
		flex: 0 0 auto;
	}

	.sp-br {
		display: block;
	}

	.mb {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
}


@media (min-width: 769px) {
	.scroll-hint {
		display: none !important;
		/* PCでは非表示 */
	}
}