/* sitewide css styles */
@font-face {
    font-family: MyriadPro;
    src: url("fonts/MyriadPro-Regular.otf") format("opentype");
}
@import url('//fonts.googleapis.com/css?family=PT+Sans&display=swap');

:root {
	--color-ajinomoto-red: #ee0000;
	--media-breakpoint-xs: 576px;
	--media-breakpoint-sm: 768px;
}

body.page, body.post {
	font-family: 'MyriadPro', 'PT Sans', Arial, sans-serif;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}
/* make font on phones easier to read */
@media (max-width: 525px) {
	body {
		font-size: 1.1rem;
	}
}

@media (max-width: 767px) {
	div.site {
		overflow-x: hidden;
		padding-left: 15px;
		padding-right: 15px;
	}
	body.page, body.post {
		padding-left: 0;
		padding-right: 0;
	}
}
* {
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	-webkit-tap-highlight-color: transparent;
	-webkit-focus-ring-color: rgba(255, 255, 255, 0);
}


h1 {
	font-size: 3rem;
	margin: .67rem 0;
}
h2.v2 {
	color: black;
	font-size: 2.5rem;
	font-weight: bold;
	margin-bottom: 2rem;
}

.text { font-size: 1.15rem }


/**
 * Links
 */
.text a {
	color: #404040;
	text-decoration: underline;
}
.text-white a:not(.btn) {
	color: white !important;
	text-decoration: underline;
}
.text-white a:not(.btn):hover, .text a:hover { text-decoration: none }
/* End */



button {
	border: none;
	border-radius: 1rem;
	background: #fff;
	font-size: .7rem;
	padding: .7rem 1.2rem .6rem;
	color: #de0000;
	text-transform: uppercase;
	font-weight: bold;
}
button:hover {
	background: #d3d3d3;
	cursor: pointer;
}
button:focus {
	outline: none;
}
.full-width {
    width: 100vw;
    margin-left  : calc( -100vw / 2 + 100% / 2 );
    margin-right : calc( -100vw / 2 + 100% / 2 );
    max-width    : 100vw;
}
@media (min-width: 768px) {
	.hidden-md {
		display: none !important;
	}
}
@media (max-width: 767px) {
	.visible-md {
		display: none !important;
	}
}
section {
	padding: 1rem;
}
.section-title {
	margin-bottom: 2rem;
	text-transform: capitalize;
}
.section-description {
	text-transform: none;
}
/* URL Hash with Sticky Nav */
*:target {
	padding-top: 90px;
	margin-top: -90px;
}
section:target {
	padding-top: 90px;
	margin-top: -74px;
}
.two-column-section > section:target {
	padding-top: 90px;
	margin-top: -90px;
}
img.full-width {
    width: 100vw;
    margin-left  : calc( -100vw / 2 + 100% / 2 );
    margin-right : calc( -100vw / 2 + 100% / 2 );
    max-width    : 100vw;
}
.pref-break {
	display: inline-block;
}

/* header styles */

/* navigation styles */
header.site-header {
	position: sticky;
	top: 0;
	z-index: 9999;
	background: #fff;
}
nav ul {
	margin: 0;
	list-style: none;
	list-style-image: none;
	padding: 0;
	display: block;
}
nav a {
	color: #000;
	text-decoration: none;
}
nav a:link {
	color: #000;
}
nav.main-nav {
	text-align: center;
}
nav.main-nav ul {
	font-size: 1.1rem;
	line-height: 1.4rem;
	text-transform: capitalize;
	letter-spacing: 2.07px;
}
nav.main-nav ul li {
	display: inline-block;
	text-align: center;
	float: none;
}
ul#primary-menu li.nav-item:hover {
	background-color: #f8f9fa;
}
nav.main-nav ul li a {
	padding: 0 .7rem;
}
nav.main-nav img {
	max-height: 100%;
	max-width: 100%;
	height: 65px;
	width: auto;
}
nav.main-nav .active-link a {
	color: #ee1c26;
}
nav li .nav-link-row {
	display: inline-block;
}
div.dropdown-menu {
	margin-top: 0;
	border: none;
	border-radius: 0;
	line-height: 1.8rem;
}
@media (min-width: 992px) {
	nav.main-nav#site-navigation #mainNavCollapse {
	display: grid !important;
	grid-template-columns: 4fr 3fr;
	}
	nav.main-nav ul#primary-menu {
		justify-self: start;
	}
	nav.main-nav ul#utility-menu {
		justify-self: end;
	}
	ul#utility-menu li + li:before {
	content: "|";
	}
	ul#utility-menu li:last-child:before {
		content: "";
	}
	ul#utility-menu li:last-child {
		min-width: 5rem;
	}
	ul.navbar-nav li.dropdown:hover > div.dropdown-menu {
		display: block;
	}
	nav.main-nav ul li a.dropdown-item {
		color: #989898;
	}
}

ul#utility-menu {
	text-align: right;
	font-size: 13px;
	line-height: 1.4rem;
	text-transform: uppercase;
	font-weight: bold;
	color: #ee1c26;
}
ul#utility-menu li {
	display: inline-block;
	text-align: center;
	float: none;
	letter-spacing: 1px;
}
ul#utility-menu img {
	max-height: 1.25rem;
	max-width: 1.25rem;
}
ul#utility-menu svg {
	height: 1.5rem;
	width: 1.5rem;
	vertical-align: bottom;
	fill: #848484;
}
ul#utility-menu li a {
	padding: 0 .1rem 0 .4rem;
	color: #ee1c26;
}

nav.footer-navigation {
	text-align: center;
}
nav.footer-navigation p {
	letter-spacing: 2px;
}
nav.footer-navigation img {
	max-height: 100%;
	max-width: 100%;
	height: 135px;
	width: auto;
	margin-bottom: 1rem;
}
.navbar-toggler-icon {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}
@media (max-width: 991px) {
	nav.main-nav img {
		height: 44px;
	}
}
@media (min-width: 992px) {
	nav ul.navbar-nav {
		display: block;
	}
	nav.navbar {
		position: static;
	}
}

/* mobile menu */
#body-overlay {
    position: absolute;
    z-index: -1;
    top: $navbar-height;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: black;
    opacity: 0;
    transition: $transition-fade;
  }
  #body-overlay.show {
    opacity: $modal-backdrop-opacity;
    z-index: $zindex-dropdown - 1;
  }
button#sidebar-toggler-hamburger {
	background: transparent;
	border-color: transparent;
}
.hamburger-icon {
	width: 30px;
	height: 20px;
	position: relative;
	margin: 0px;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .5s ease-in-out;
	-moz-transition: .5s ease-in-out;
	-o-transition: .5s ease-in-out;
	transition: .5s ease-in-out;
	cursor: pointer;
}

.hamburger-icon span {
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	border-radius: 9px;
	opacity: 1;
	left: 0;
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
	-webkit-transition: .25s ease-in-out;
	-moz-transition: .25s ease-in-out;
	-o-transition: .25s ease-in-out;
	transition: .25s ease-in-out;
}
.hamburger-icon span {
background: #848484;
}
.hamburger-icon span:nth-child(1) {
top: 0px;
}

.hamburger-icon span:nth-child(2), .hamburger-icon span:nth-child(3) {
top: 10px;
}

.hamburger-icon span:nth-child(4) {
top: 20px;
}

.hamburger-icon.open span:nth-child(1) {
top: 11px;
width: 0%;
left: 50%;
}

.hamburger-icon.open span:nth-child(2) {
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
}

.hamburger-icon.open span:nth-child(3) {
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
}

.hamburger-icon.open span:nth-child(4) {
top: 11px;
width: 0%;
left: 50%;
}
@media (max-width: 991px) {
	.menu-sidebar {
		height: auto;
		position: absolute;
		overflow-x: hidden;
		white-space: nowrap;
		z-index: 1050;
		background-color: #fff;
		transition: right 0.3s ease;
		box-shadow: .2rem .2rem rgba(0,0,0,.075);
		top: 68px;
		line-height: 1.8rem;
		border: none;
		padding: 1rem;
		right: -520px;
		display: block;
		width: 105%;
	}
	.show.menu-sidebar {
		right: -1rem;
	}
	/*.collapsing.menu-sidebar {
		height: auto !important;
		margin-right: 50%;
		transition: right 0.3s ease;
		display: block;
	} */
	.menu-sidebar ul.menu {
		line-height: 2rem;
		font-size: 22px;
		margin-top: 5px;
	}
	div.dropdown-menu {
		line-height: 2rem;
	}
	.menu-sidebar a.dropdown-item {
		text-align: center;
		font-size: 18px;
	}
	ul#utility-menu svg {
		margin-top: 10px;
	}
}
/* end mobile menu */
/* end navigation styles */
/* end header styles */

/* general formatting + layout styles */
.content-area {
	max-width: 1280px;
}
@media (min-width: 768px) {
	.thin-content p, .thin-content h1, .thin-content h2, .thin-content h3, .thin-content h4, .thin-content figure.wp-block-embed-youtube, .thin-content ul, .thin-content .gform_wrapper {
		max-width: 80%;
		margin-right: auto;
		margin-left: auto;
	}
	.thin-content figure.wp-block-embed-youtube {
		max-width: 600px;
	}
}

/* end general formatting + layout styles */

/* gravity form styles */
form input, form .textarea {
	padding: 12px;
	margin: 6px 0 4px;
	border: 1px solid #ccc;
	background: #fafafa;
	color: #000;
	line-height: normal;
	border-radius: 2px;
	box-sizing: border-box;
}
form .contact-mail input {
	width: 97.5% !important;
}
form input.button {
	border: 2px solid #272727;
	border-radius: 3px;
	background-color: transparent;
	font-size: .7rem;
	padding: 1em 2.5em;
	color: #272727;
	text-transform: uppercase;
	font-weight: bold;
	letter-spacing: 1px;
}
/* end gravity form styles */


/* homepage styles */

/* first hero styles */
@media (max-width: 767px) {
	.home .header-hero.left-overlay img.full-width {
		width: 175vw;
		max-width: 175vw;
		max-height: 350px;
		object-fit: cover;
		object-position:-50px;
	}
}
/* end first hero styles */

/* second hero styles */
.stagger-hero {
	margin-top: -1.5rem;
	background: url("../img/why-use-msg-homepage-banner-homemade-ramen.jpg") no-repeat center;
	background-size: cover;
}
.stagger-inside {
	max-width: 1280px;
	padding-left: 15px;
	padding-right: 15px;
	margin-right: auto;
	margin-left: auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(369px, 1fr));
	grid-template-rows: repeat(auto-fit, minmax(475px, 1fr));
}
.stagger-hero .header-copy {
	position: relative !important;
	max-width: 100% !important;
	margin: 5%;
}
.stagger-hero .header-copy:nth-child(odd) {
	text-align: left;
	margin-left: 5%;
}
.stagger-hero .header-copy:nth-child(even) {
	text-align: right;
	margin-right: 5%;
	align-self: end;
}
@media (max-width: 980px) and (min-width: 768px) {
	.umami-buzz .pref-break {
		display: inline;
	}
}
@media (max-width: 767px) {
	.stagger-inside {
		padding-left: 0;
		padding-right: 0;
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
}

/* end second hero styles */

/* Homepage bottom styles */
#homepage-media {
	align-items: center;
	padding: 0;
}
#homepage-media section {
	padding: 10px 5px;
}
#homepage-media #home-video {
	height: 100%;
}
#home-video .yt-responsive-embed {
	height: 100% !important;
}
#home-lightwidget iframe {
	margin-bottom: -8px;
}

/* end homepage bottom styles */
/* end homepage styles */


/* Removed weird black line on the right of the movinb thumbnail of the Wistia video */
.w-video-wrapper.w-css-reset {
	background-color: transparent !important;
}


/* Redefine CRS menu item */
#crs-menu-item > a {
	text-transform: none;
	padding: 0.3rem 0.7rem !important;
	border: 1px solid red;
	border-radius: 1rem;
}
#crs-menu-item + .nav-item:before { display: none }


.bg-red { background-color: var(--color-ajinomoto-red) }
.bg-twitter-blue { background-color: #1da1f2 }
.bg-dark-gray { background-color: #4a4a4a }
.bg-light-gray { background-color: #e2e2e2 }
.text-red { color: var(--color-ajinomoto-red) !important; }

.max-width-lg {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}


/**
 * Twitter card style.
 */
.card-twitter {
	margin: 0 auto;
	border: none;
	border-radius: 0;
}
.card-twitter .card-body { color: rgba(0, 0, 0, .6) }
.card-twitter .card-body a { color: black }

.card-twitter .card-footer { padding: 0 }
.card-twitter .card-footer > .btn {
	font-weight: bold;
	color: white;
	font-size: 1.25rem;
	text-transform: uppercase;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	background-color: #1da1f2;
	border-radius: 0;
}
.card-twitter .card-footer > .btn:hover {
	background-color: #1cb7ff;
}
/* End */


/*
 * Bootstrap Card style #2
 */
.card-style-2 {
	--spacing-x: 1.7rem;
	--spacing-y: 1.5rem;

	height: 100%;
	border: none;
	border-radius: 1rem;
}
.card-style-2 .card-header {
	background-color: transparent;
	border-bottom: 0.3rem solid var(--color-ajinomoto-red);
}
.card-style-2 .card-header h3 { font-weight: bold }
.card-style-2.bg-red .card-header { border-bottom-color: white }

.card-style-2 .card-header {
	padding-top: var(--spacing-y);

	/* The following rules are to make border-bottom not to be 100% of the card. */
	padding-left: 0;
	padding-right: 0;
	margin-left: var(--spacing-x);
	margin-right: var(--spacing-x);
}
.card-style-2 .card-body {
	padding: var(--spacing-y) var(--spacing-x);
}
.card-style-2 .card-text { font-size: 1.15rem }
.card-style-2 .card-footer {
	background-color: transparent;
	padding: 0 var(--spacing-x) var(--spacing-y);
	border: none;
}
/* End */



/**
 * Header image overlay
 */
.header-img-overlay .page-header-title {
	line-height: 1;
	font-weight: bold;
	margin: 0;
}
.header-img-overlay .page-header-intro {
	max-width: 68%;
	font-size: 1.25rem;
	line-height: 1.1;
	padding: 1rem 0;
	margin: 0;
}
@media (min-width: 768px) {
	.header-img-overlay .page-header-intro {
		font-size: 2rem;
	}
}
@media (min-width: 992px) {
	.header-img-overlay .page-header-intro {
		font-size: 2.5rem;
		padding: 3rem 0;
	}
}
/* End */



/**
 *
 */
.round-numbers {
	list-style: none;
	counter-reset: roundList;
	padding: 0;
	margin: 0;
}
.round-numbers > li {
	counter-increment: roundList;
	text-align: center;
}
.round-numbers > li:before {
	--counter-size: 5.7rem;
	--border-width: .3rem;

	content: counter(roundList);
	display: block;
	width: var(--counter-size);
	height: var(--counter-size);
	font-size: 3.2rem;
	font-weight: bold;
	line-height: calc(var(--counter-size) - var(--border-width));
	border: var(--border-width) solid;
	border-radius: 50%;
	margin: 0 auto 1rem;
}
.round-numbers > li:not(:last-child) { margin: 0 0 2rem }

@media (min-width: 576px) {
	.round-numbers {
		display: flex;
		flex-wrap: wrap;
		font-size: 2.5rem;
	}
	.round-numbers > li {
		flex-grow: 1;
		flex-basis: 0;
	}

	.round-numbers.columns-3 > li:first-child { margin: 0 .75rem 2rem 0 }
	.round-numbers.columns-3 > li:nth-child(2) { margin: 0 0 2rem .75rem }
	.round-numbers.columns-3 > li:last-child { flex-basis: 100% }
}
@media (min-width: 768px) {
	.round-numbers > li { margin: 0 2rem !important }
	.round-numbers > li:first-child { margin-left: 0 !important }
	.round-numbers > li:last-child { margin-right: 0 !important }

	.round-numbers.columns-3 > li:last-child { flex-basis: 0 }
}
/* End */