/* reset/global styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Noto Sans', sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

html body.body_jp {
    font-family: "Noto Sans JP", sans-serif;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

textarea {
    resize: vertical;
}

h1,
h2,
h3,
p {
    margin: 0;
}

/* site styles */

a {
    color: #c4850f;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.navbar,
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: #FCC117;
}

.navbar_logo {
    display: flex;
    align-items: center;
}

.navbar_logo>svg {
    height: 70px;
}

.navbar>ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    justify-content: space-between;
}

.navbar>ul>li {
    padding-left: 50px;
}


.navbar_dropdown {
    position: relative;
    display: inline-block;
}

.navbar_flags_container {
    display: none;
    position: absolute;
    width: 40px;
    margin-left: -5px;
    text-align: center;
}

.navbar_flags_container a {
    padding: 5px 0 0 0;
    display: block;
}

.navbar_flags_container a:first-of-type {
    margin: 10px 0 0 0;
}

.navbar_dropdown:hover .navbar_flags_container {
    display: block;
}

.navbar_flag {
    display: flex;
}

.navbar_flag>svg {
    height: 30px;
}

.nav_header_link {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease 0s;
}

.nav_header_link:hover {
    color: #383838;
    text-decoration: none;
}

/* Language switcher */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-switcher__toggle {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 4px;
    border-radius: 999px;
}

/* Dropdown menu overlay */
.lang-switcher__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

    margin: 0;
    padding: 5px 5px 0 0;

    list-style: none;

    z-index: 1000;
    /* above page content */
}

.lang-switcher__menu[hidden] {
    display: none !important;
}

.lang-switcher__menu .navbar_flag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
}

.footer>nav>ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    justify-content: space-between;
    padding: 0;
}

.footer>nav>ul>li {
    padding-right: 50px;
    font-size: 0.9em;
}

.footer_copyright {
    color: white;
    font-weight: 700;
    font-size: 0.9em;
}

.success_bar,
.error_bar,
.logged_in_bar {
    background: #E930FC;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    font-weight: bold;
}

.success_bar {
    background: #38E620;
    padding: 15px 0;
}

.error_bar {
    background: #FC0A34;
    padding: 15px 0;
}

.log_out_btn {
    color: white;
    background: #E930FC;
    border: 2px solid white;
    border-radius: 4px;
    padding: 4px 8px;
    margin: 10px 0 10px 20px;
    transition: all 0.3s ease 0s;
}

.log_out_btn:hover {
    box-shadow: inset 71px 0 0 0 #FCC117;
    text-decoration: none;
}

.our_products,
.about_us_text,
.contact_us,
.policy_text,
.policy_menu,
.sitemap {
    padding: 2em 25px;
}

.hero {
    color: white;
    text-shadow: 0px 4px 3px rgba(0, 0, 0, 0.4),
        0px 8px 13px rgba(0, 0, 0, 0.1);
    font-size: 1.8rem;
    text-align: center;
    padding: 10em 0;
    background-image: url(https://res.cloudinary.com/dhkoip7cy/image/upload/q_auto/v1600782584/hero_v0qsmu.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section_title {
    font-family: 'Dancing Script', cursive;
    font-weight: normal;
    font-size: 3rem;
    text-align: center;
}

.section_title_jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    text-align: center;
}

.products_split {
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    padding: 0 10%;
}

.product {
    flex: 1 300px;
    padding: 0 2em;
    text-decoration: none;
    color: #383838;
    font-weight: bold;
    position: relative;
    max-width: 25%;
}

.product:hover>.product_images>.product_img_open {
    opacity: 1;
}

.product:hover>.product_images>.product_img {
    opacity: 0;
}

.product_images {
    position: relative;
}

.product_img {
    margin: 0;
    text-align: center;
}

.product_img_open {
    opacity: 0;
    margin: 0;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pate_img {
    margin-top: 4em;
    text-align: center;
}

.product_title {
    margin-top: 1em;
}

.about_us {
    background: #f8f8f8;
    display: flex;
    flex-wrap: wrap;
}

.about_us>* {
    flex: 1;
}

.about_us_slider {
    position: relative;
    overflow: hidden;
    vertical-align: middle;
}

.slider_img {
    position: absolute;
    max-width: none;
}

.about_us_text>p {
    text-align: center;
    margin: 2em 0;
}

.recipes {
    display: flex;
    justify-content: start;
    flex-wrap: wrap;
}

.recipe_box {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 1px;
    box-sizing: border-box;
    overflow: hidden;
}

.recipe_box:hover>.recipe_item>.recipe_title,
.recipe_box:hover>.recipe_item>.recipe_shade {
    opacity: 1;
}

.recipe_box:before {
    content: '';
    display: table;
    padding-top: 100%;
}

.recipe_item {
    flex-grow: 1;
    background: #FCC117;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.recipe_item>* {
    position: absolute;
}

.recipe_item>img {
    height: 100%;
    max-width: none;
}

.recipe_new {
    background: #FE650A;
}

.recipe_box:hover>.recipe_new>.recipe_new_h2 {
    padding: 40px 50px;
}

.recipes_h2 {
    color: black;
    background: white;
    padding: 20px 30px;
    border-radius: 50%;
    transition: all 0.3s ease 0s;
}

.recipe_shade {
    background: rgba(0, 0, 0, 0.2);
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: all 0.3s ease 0s;
}

.recipe_title {
    font-size: 1.8rem;
    text-shadow: 0px 0px 10px #000;
    opacity: 0;
    transition: all 0.3s ease 0s;
    padding: 5%;
}

.form_container {
    display: flex;
    flex-direction: column;
}

.form {
    display: flex;
    flex-direction: column;
    align-self: center;
}

.contact_form {
    max-width: 600px;
}

.form_item {
    margin-top: 1em;
    color: #383838;
    flex: 1;
}

.form_item>label {
    margin-top: 1em;
    font-weight: bold;
}

.form_input {
    outline: none;
    border: 1px solid #383838;
    border-radius: 4px;
    padding: .8rem;
    font-size: 1em;
    width: 100%;
    font-family: inherit;
}

.form_input:focus {
    border: 1px solid #FCC117;
}

.form_input_error {
    border-color: #d50000;
    background: #fff8f8;
}

.form_error {
    padding-top: 5px;
    color: #d50000;
    font-size: .8em;
    display: none;
}

.form_input_error+.form_error {
    display: block;
}

.form_submit_item {
    display: inline-block;
    text-align: center;
}

.contact_submit_btn {
    color: #383838;
    background: transparent;
    font-family: inherit;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #383838;
    border-radius: 4px;
    padding: 15px 30px;
    transition: all 0.3s ease 0s;
    cursor: pointer;
    outline: none;
}

.contact_submit_btn:hover {
    background: transparent;
    box-shadow: inset 130px 0 0 0 #FCC117;
}

.contact_submit_btn_se:hover {
    box-shadow: inset 150px 0 0 0 #FCC117;
}

.contact_submit_btn_jp:hover {
    box-shadow: inset 110px 0 0 0 #FCC117;
}

.article {
    padding: 0 10%;
}

.article_title {
    font-family: 'Dancing Script', cursive;
    font-weight: normal;
    font-size: 3rem;
    text-align: center;
    padding: 1em 0;
}

.article_image {
    position: relative;
}

.article_image>img {
    width: 100%;
    margin: 0;
}

.article_slider {
    width: 100%;
    color: white;
    position: absolute;
    left: 50%;
    bottom: 45%;
    transform: translate(-50%, 0%);
    -ms-transform: translate(-50%, 0%);
    text-align: center;
}

.article_slider_image {
    display: none;
}

.article_slider_image:first-of-type {
    display: block;
}

.article_slider_arrow_left,
.article_slider_arrow_right {
    background: transparent;
    padding: 15px 22px;
}

.article_slider_arrow_left {
    cursor: pointer;
    float: left;
}

.article_slider_arrow_right {
    cursor: pointer;
    float: right;
}

.article_text {
    display: flex;
    flex-wrap: wrap;
    padding: 25px 0;
    color: #383838;
}

.article_text_content>p {
    margin-bottom: 1em;
}

.article_col {
    flex: 1 300px;
    /* background: pink; */
}

.article_col:nth-of-type(1) {
    padding-right: 15px;
}

.article_col:nth-of-type(2) {
    padding-left: 15px;
}

.article_section {
    margin-bottom: 1em;
}

.article_btns_row {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.article_btn {
    margin: 0 15px;
    padding: 15px;
    line-height: 1.5;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

.article_btn_edit {
    background: rgb(42, 153, 238);
}

.article_btn_edit:hover {
    background: rgb(16, 110, 182);
}

.article_btn_delete {
    background: rgb(248, 67, 67);
}

.article_btn_delete:hover {
    background: rgb(184, 29, 29);
}

.article_admin {
    padding: 0 10%;
    margin: 5em 0;
}

.article_form_submit {
    display: flex;
    justify-content: center;
}

.article_form_row {
    display: flex;
    flex-wrap: wrap;
}

.article_form_flag {
    margin-top: 1em;
}

.article_form_flag>svg {
    height: 50px;
}

.article_form_flag_title>svg {
    height: 20px;
}

.article_form_col:nth-of-type(1) {
    padding-right: 15px;
}

.article_form_col:nth-of-type(2) {
    padding-left: 15px;
}

.article_form_col {
    flex: 1 300px;
}

.article_form_item_2:nth-of-type(1) {
    padding: 0 15px 0 0;
}

.article_form_item_2:nth-of-type(2) {
    padding: 0 0 0 15px;
}

.article_form_item_3:nth-of-type(1) {
    padding: 0 15px 0 0;
}

.article_form_item_3:nth-of-type(2) {
    padding: 0 15px 0 15px;
}

.article_form_item_3:nth-of-type(3) {
    padding: 0 0 0 15px;
}

.policy {
    display: flex;
    flex-wrap: wrap;
}

.policy_text {
    flex: 2;
    color: #383838;
}

.policy_menu {
    flex: 1;
    color: #c4850f;
}

.policy_text>h1,
.policy_text>h2,
.policy_text>h3,
.policy_text>p,
.sitemap>h1,
.sitemap>h2,
.sitemap>p {
    margin-bottom: 1em;
}

.policy_text>h2,
.policy_text>h3,
.sitemap>h2 {
    margin-top: 2em;
}

.policy_attribution {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    margin-top: 2em;
}

.error {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 5em;
}

.error_img {
    margin: auto;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 16px;
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, .1);
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: center;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2500;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal__inner {
    width: 100%;
    max-width: 640px;
    background: #fff;
    border-radius: 4px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0px 4px 15px rgba(0, 0, 0, .1);
}

.cookie-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

.cookie-modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.cookie-btn {
    border-radius: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    cursor: pointer;
}

.cookie-btn--primary {
    background: #FCC117;
    color: #fff;
    border-color: transparent;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
    display: none !important;
}



/* iPad wide */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero {
        font-size: 1.7rem;
        padding: 8em 0;
    }

    .section_title_jp {
        font-size: 2.3rem;
    }

    .products_split {
        padding: 0 5%;
    }

    .recipe_title {
        font-size: 1.6rem;
    }

    .policy_menu {
        font-size: 0.8rem;
    }

}

/* iPad tall */
@media (min-width: 768px) and (max-width: 991.98px) {

    .footer>nav>ul>li {
        padding-right: 40px;
    }

    .hero {
        font-size: 1.4rem;
        padding: 7em 0;
    }

    .section_title_jp {
        font-size: 2.1rem;
    }

    .products_split {
        padding: 0;
    }

    .product {
        padding: 0 1em;
    }

    .our_products,
    .about_us_text,
    .contact_us,
    .article_text,
    .sitemap {
        padding: 1em 25px;
    }

    .slider_img {
        height: 100%;
        top: 0;
    }

    .about_us_text>p {
        margin: 1em 0;
    }

    .recipe_box {
        flex: 0 0 33.333333%;
    }

    .recipe_title {
        font-size: 1.6rem;
    }

    .article {
        padding: 0;
    }

    .article_form_row {
        flex-direction: column;
    }

    .article_form_col:nth-of-type(1),
    .article_form_col:nth-of-type(2),
    .article_form_item_2:nth-of-type(1),
    .article_form_item_2:nth-of-type(2),
    .article_form_item_3:nth-of-type(1),
    .article_form_item_3:nth-of-type(2),
    .article_form_item_3:nth-of-type(3) {
        padding: 0;
    }

    .policy_text {
        flex: 2;
    }

    .policy_menu {
        font-size: 0.8rem;
    }
}

/* iPhone 6+ wide */
@media (min-width: 576px) and (max-width: 767.98px) {

    .navbar,
    .footer {
        flex-direction: column;
    }

    .navbar>ul {
        margin: 0;
        padding: 10px 0 0 0;
    }

    .navbar>ul>li {
        padding: 0 20px;
    }

    .footer>nav>ul {
        margin: 0;
        padding: 0 0 10px 0;
    }

    .footer>nav>ul>li {
        padding: 0 20px;
    }

    .hero {
        font-size: 1.3rem;
        padding: 5em 0;
    }

    .section_title_jp {
        font-size: 2rem;
    }

    .products_split {
        padding: 0;
    }

    .product {
        max-width: 50%;
    }


    .about_us {
        flex-direction: column;
    }

    .about_us_slider {
        position: static;
        overflow: hidden;
    }

    .slider_img {
        position: static;
        height: 100%;
        width: 100%;
    }

    .recipe_box {
        flex: 0 0 33.333333%;
    }

    .recipe_title {
        font-size: 1.6rem;
    }

    .article {
        padding: 0;
    }

    .article_text {
        padding: 1em 25px;
    }

    .article_form_row {
        flex-direction: column;
    }

    .article_form_col:nth-of-type(1),
    .article_form_col:nth-of-type(2),
    .article_form_item_2:nth-of-type(1),
    .article_form_item_2:nth-of-type(2),
    .article_form_item_3:nth-of-type(1),
    .article_form_item_3:nth-of-type(2),
    .article_form_item_3:nth-of-type(3) {
        padding: 0;
    }

    .article_slider {
        bottom: 44%;
    }

    .policy_menu {
        display: none
    }
}

/* iPhone 6 tall */
@media (max-width: 575.98px) {

    .navbar,
    .footer,
    .our_products,
    .about_us_text,
    .hero,
    .contact_us,
    .article_text,
    .sitemap {
        padding: 10px;
    }

    .navbar,
    .footer {
        flex-direction: column;
    }

    .navbar>ul {
        margin: 0;
        padding: 10px 0 0 0;
    }

    .navbar>ul>li {
        padding: 0 8px;
    }

    .navbar_mobile_center_ul {
        padding: 0 !important;
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .navbar_mobile_center_li {
        margin-top: 10px;
        text-align: center;
    }

    .footer>nav>ul {
        margin: 0;
        padding: 0 0 10px 0;
    }

    .footer>nav>ul>li {
        padding: 0 5px;
        font-size: 0.8rem;
    }

    .hero {
        font-size: 1.2rem;
        padding: 3em 1em;
    }

    .section_title {
        font-size: 2.5rem;
    }

    .section_title_jp {
        font-size: 2rem;
    }

    .products_split {
        padding: 0;
    }

    .product {
        max-width: 50%;
        padding: 0 1em;
    }

    .pate_img {
        margin-top: 1.5em;
    }

    .about_us {
        flex-direction: column;
    }

    .about_us_slider {
        position: static;
        overflow: hidden;
    }

    .slider_img {
        position: static;
        height: 100%;
        width: 100%;
    }

    .recipe_box {
        flex: 0 0 33.333333%;
    }

    .recipes_h2 {
        font-size: 2rem;
        padding: 8px 12px;
    }

    .recipe_title {
        font-size: 1.2rem;
    }

    .article_title {
        font-size: 2.5rem;
    }

    .article {
        padding: 0;
    }

    .article_col:nth-last-of-type(1),
    .article_col:nth-last-of-type(2) {
        padding: 0;
    }

    .article_form_row {
        flex-direction: column;
    }

    .article_form_col:nth-of-type(1),
    .article_form_col:nth-of-type(2),
    .article_form_item_2:nth-of-type(1),
    .article_form_item_2:nth-of-type(2),
    .article_form_item_3:nth-of-type(1),
    .article_form_item_3:nth-of-type(2),
    .article_form_item_3:nth-of-type(3) {
        padding: 0;
    }

    .article_slider {
        bottom: 40%;
    }

    .policy_menu {
        display: none
    }

}

/* iPhone 5 tall */
@media (max-width: 321px) {

    .navbar,
    .footer,
    .our_products,
    .about_us_text,
    .hero,
    .contact_us,
    .sitemap {
        padding: 10px;
    }

    .navbar,
    .footer {
        flex-direction: column;
    }

    .navbar>ul {
        margin: 0;
        padding: 10px 0 0 0;
    }

    .navbar>ul>li {
        padding: 0 8px;
        font-size: 0.8em;
    }

    .footer>nav>ul {
        flex-wrap: wrap;
        margin: 0;
        padding: 0 0 10px 0;
    }

    .footer>nav>ul>li {
        flex: 1 150px;
        padding: 0;
        text-align: center;
        font-size: 0.8em;
    }

    .hero {
        font-size: 1.1rem;
        padding: 2em 0;
    }

    .section_title {
        font-size: 2.5rem;
    }

    .products_split {
        padding: 0;
    }

    .product {
        max-width: 50%;
        padding: 0 1em;
    }

    .pate_img {
        margin-top: 1em;
    }

    .about_us_slider {
        position: static;
        overflow: hidden;
    }

    .slider_img {
        position: static;
        height: 100%;
        width: 100%;
    }

    .recipe_box {
        flex: 0 0 50%;
    }

    .recipes_h2 {
        font-size: 2.5rem;
        padding: 8px 12px;
    }

    .recipe_title {
        font-size: 1.2rem;
    }

    .article_title {
        font-size: 2.5rem;
    }

    .article {
        padding: 0;
    }

    .article_form_row {
        flex-direction: column;
    }

    .article_form_col:nth-of-type(1),
    .article_form_col:nth-of-type(2),
    .article_form_item_2:nth-of-type(1),
    .article_form_item_2:nth-of-type(2),
    .article_form_item_3:nth-of-type(1),
    .article_form_item_3:nth-of-type(2),
    .article_form_item_3:nth-of-type(3) {
        padding: 0;
    }

    .policy_menu {
        display: none
    }

}