@charset "utf-8";

.column-header {
	position: relative;
	left: 0;
	top: 0;
	width: 100%;
	height: 80px;
	background-color: #f67170;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
	text-align: center;

	h2 {
		height: 100%;
		margin: 0;

		img {
			width: auto;
			height: calc(100% - 5px);
			margin: 5px auto 0;
		}
	}

	.top_logo {
		display: block;
		position: absolute;
		right: 0.5em;
		bottom: 0.3em;

		.top_logo__text {
			display: inline-block;
			vertical-align: text-top;
			margin-right: 0.5em;
		}

		.top_logo__img {
			display: inline-block;
			vertical-align: bottom;
		}

		@media (max-width: 767px) {
			.top_logo__text {
				display: block;
				text-align: right;
				vertical-align: text-top;
			}

			.top_logo__img {
				display: block;
				vertical-align: bottom;
			}
		}
	}

	.hamburger {
		display: block;
		background: none;
		border: 0;
		padding: 0;
		appearance: none;
		font: inherit;

		position: absolute;
		left: 0;
		bottom: 20%;
		width: 50px;
		height: 50px;
		cursor: pointer;
		z-index: 300;

		.hamburger__line {
			position: absolute;
			left: 11px;
			width: 80%;
			height: 1px;
			background-color: #111;
			transition: all 0.6s;

			&.hamburger__line--1 {
				top: 14px;
			}

			&.hamburger__line--2 {
				top: 28px;
			}

			&.hamburger__line--3 {
				top: 42px;
			}
		}
	}

	.global-nav {
		position: fixed;
		left: 0;
		top: 80px;
		width: 100%;
		height: calc(100% - 80px);
		background-color: transparent;
		opacity: 0;
		visibility: hidden;
		transition: all 0.6s;
		z-index: 200;
		overflow-y: auto;
	}

	.black-bg {
		position: fixed;
		left: 0;
		top: 80px;
		width: 100%;
		height: calc(100% - 80px);
		z-index: 100;
		background-color: rgba(0, 0, 0, 0.8);
		opacity: 0;
		visibility: hidden;
		transition: all 0.6s;
		cursor: pointer;
	}

	.global-nav_list {
		margin: 0;
		padding: 0;
		list-style: none;
		width: 80%;
		font-size: 12px;
		overflow: hidden;
		background: #fff;
	}

	.global-nav_item {
		text-align: left;
		padding: 0.5em;
		border-bottom: 1px solid #eee;

		> span {
			width: 100%;
			display: block;
			padding: 0.5em;
			border-bottom: 3px double #f67170;
		}

		> a {
			display: block;
			text-decoration: none;
			color: #111;
			padding: 0.5em 0 0.5em 30px;
		}

		ul {
			width: 100%;
			margin-left: 0.3em;
			padding: 0;

			li {
				list-style: none;
				width: 100%;
				display: block;
				padding: 0.5em;

				a {
					position: relative;
					display: block;
					width: calc(100% - 30px);
					text-decoration: none;
					color: #111;
					padding: 0.5em 0 0.5em 30px;

					span.column_icon {
						position: absolute;
						top: 50%;
						left: 0;
						margin-top: -15px;
						display: block;
						width: 30px;
						height: 30px;
						background: url(https://column.lovecosmetic.jp/wp-content/themes/np-owned-column-site/assets/images/icon_menu_list.png) no-repeat;
						background-size: auto 150px;
						background-position: -60px -60px;
					}

					&:hover {
						background-color: #eee;
					}
				}
			}
		}
	}
}

.column-header.nav-open .global-nav {
	opacity: 1;
	visibility: visible;
}

.column-header.nav-open .black-bg {
	opacity: 1;
	visibility: visible;
}

.column-header.nav-open .hamburger .hamburger__line.hamburger__line--1 {
	transform: rotate(45deg);
	top: 20px;
}

.column-header.nav-open .hamburger .hamburger__line.hamburger__line--2 {
	width: 0;
	left: 50%;
}

.column-header.nav-open .hamburger .hamburger__line.hamburger__line--3 {
	transform: rotate(-45deg);
	top: 20px;
}

/* //////////////////////////////////////////////////
パンくず（Yoast SEO breadcrumbs ブロック）
ベンチマーク実測: 背景#eaeaea・文字11.2px(#6e6e6e)・下線なし・
nowrap+横スクロール・家アイコン（青）
////////////////////////////////////////////////// */

.yoast-breadcrumbs {
	background-color: #eaeaea;
	padding: 7px 7px 7px 20px;
	font-size: 0.7rem;
	color: #6e6e6e;
	white-space: nowrap;
	overflow-x: auto;

	a {
		color: #6e6e6e;
		text-decoration: none;
	}

	/* 家アイコン（ベンチマークのSVGスプライト相当をインラインSVGで自前化） */
	> span::before {
		content: "";
		display: inline-block;
		width: 14px;
		height: 12px;
		margin-right: 4px;
		vertical-align: -1px;
		background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="%235b91c8" d="M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>') no-repeat center / contain;
	}
}
