/*!
Theme Name: happoen
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.6
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: happoen
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

happoen is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Link button
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
	- Headings
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
# Custom styles
  - Header
  - Footer

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

:root {
  --custom_style_color_gold: #9f9038;
  --custom_style_color_white: #fff;
  --custom_style_color_black: #333;
  --custom_style_color_gray: #dcdcdc;
  --custom_style_color_bg: #fffffa;
}

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

@media screen and (min-width: 768px) {
  html {
    font-size: calc(100vw / 1440 * 10);
  }
}

/* @media screen and (max-width: 1439px) and (min-width: 1366px) {
  html {
    font-size: 9.486px;
  }
}

@media screen and (max-width: 1365px) and (min-width: 1280px) {
  html {
    font-size: 8.889px;
  }
}

@media screen and (max-width: 1279px) and (min-width: 1152px) {
  html {
    font-size: 8px;
  }
}

@media screen and (max-width: 1151px) and (min-width: 1024px) {
  html {
    font-size: 7.111px;
  }
}

@media screen and (max-width: 1023px) and (min-width: 960px) {
  html {
    font-size: 6.667px;
  }
}

@media screen and (max-width: 959px) and (min-width: 800px) {
  html {
    font-size: 5.556px;
  }
}

@media screen and (max-width: 799px) and (min-width: 768px) {
  html {
    font-size: 5px;
  }
} */

/* @media screen and (max-width: 767px) {
  html {
    font-size: calc(100vw / 430 * 10);
  }
} */

@media screen and (max-width: 767px) {
  html {
    font-size: calc(100vw / 390 * 10);
  }
}

@media screen and (min-width: 768px) {
  .sp_only {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .pc_only {
    display: none;
  }
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  text-decoration: underline;
  text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
  display: block;
  border-style: none;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}
.site-main {
  padding-top: 0.1px;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */

body {
  color: #333333;
  font-weight: 400;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.1em;
}
.gothic,
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.font-white {
  color: var(--custom_style_color_white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
}

p {
  margin-block: 0;
}

dfn,
cite,
em,
i {
  font-style: italic;
}

blockquote {
  margin: 0 1.5em;
}

address {
  margin: 0 0 1.5em;
}

pre {
  background: #eee;
  font-family: "Courier 10 Pitch", courier, monospace;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
}

code,
kbd,
tt,
var {
  font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
  border-bottom: 1px dotted #666;
  cursor: help;
}

mark,
ins {
  background: #fff9c0;
  text-decoration: none;
}

big {
  font-size: 125%;
}

.site-footer,
.floating-btn,
.link-btn,
.sec-btn,
.nav-btn,
.heading,
.mincho,
.nav-main__list__title,
.section-heading,
.home-about__top-heading-main,
.home-garden__content-heading-main,
.about-facility__list__item__title-main {
  font-family: "Zen Old Mincho", serif;
}

.section-sub-heading,
.garamond {
  font-family: "EB Garamond", serif;
}

.heading {
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin: 0;
}
.section-heading {
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.08em;
  margin: 0;
}
.section-sub-heading {
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.1em;
}
.link-btn,
.sec-btn {
  line-height: 1;
  letter-spacing: 0.2em;
}

.is-fade-in {
  opacity: 0;
  transition:
    opacity 0.6s 0.3s,
    transform 0.6s 0.3s;
  transform: translateY(0.5em);
}
.is-fade-in.is-fade-in-active {
  opacity: 1;
  transform: translateY(0);
}
body.is-fade-in,
body.is-fade-in.is-fade-in-active {
  transform: unset;
}
.font-sm {
  letter-spacing: 0.1em;
}

.font-xs,
.font-md,
.font-md-b {
  line-height: 2;
  letter-spacing: 0.1em;
}
.font-md-b {
  font-weight: 600;
}
.font-xs {
  font-size: 1rem;
}
.writing-vrl {
  writing-mode: vertical-rl;
}

@media screen and (min-width: 768px) {
  body {
    letter-spacing: 0.15em;
    font-size: 1.4rem;
  }
  .font-sm {
    font-size: 1.2rem;
  }
  .font-md,
  .font-md-b {
    font-size: 1.4rem;
  }
  .section-heading {
    font-size: 3.2rem;
  }
  .section-heading.writing-vrl {
    letter-spacing: 0.18em;
  }
  .section-heading.section-heading-sm {
    letter-spacing: 0.2em;
    font-size: 2.4rem;
  }
  .section-heading.main-visual__heading-title {
    font-size: 4rem;
  }
  .heading {
    font-size: 1.4rem;
  }
  .section-sub-heading {
    font-size: 1.6rem;
  }
  .section-sub-heading.main-visual__heading-sub {
    font-size: 1.2rem;
  }
  .link-btn,
  .sec-btn,
  .nav-btn {
    font-size: 1.4rem;
  }
  .about-facility__list__item__title-main {
    font-size: 2.3rem;
    letter-spacing: 0.1em;
    line-height: 1.2;
  }
  .writing-vrl-pc {
    writing-mode: vertical-rl;
  }
}
@media screen and (max-width: 767px) {
  body {
    font-size: 1.2rem;
  }
  .font-sm {
    font-size: 1.1rem;
  }
  .font-md {
    font-size: 1.2rem;
  }
  .font-md-b {
    font-size: 1.3rem;
  }
  .section-heading {
    font-size: 2.3rem;
  }
  .section-heading.writing-vrl {
    letter-spacing: 0.2em;
  }
  .section-heading.section-heading-sm {
    letter-spacing: 0.18em;
    font-size: 2rem;
  }
  .heading {
    font-size: 1.3rem;
  }
  .section-sub-heading {
    font-size: 1.4rem;
  }
  .section-sub-heading.section-sub-heading-sm {
    font-size: 1.2rem;
  }
  .section-sub-heading.main-visual__heading-sub {
    font-size: 1rem;
  }
  .link-btn,
  .sec-btn,
  .nav-btn {
    font-size: 1.2rem;
  }
  .about-facility__list__item__title-main {
    font-size: 2rem;
    letter-spacing: 0.1em;
    line-height: 1.5;
  }
  .writing-vrl-sp {
    writing-mode: vertical-rl;
  }
}

/* Elements
--------------------------------------------- */
body {
  background: var(--custom_style_color_bg);
}

hr {
  background-color: #ccc;
  border: 0;
  height: 1px;
  margin-bottom: 1.5em;
}

ul,
ol {
  margin: 0 0 1.5em 3em;
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li > ul,
li > ol {
  margin-bottom: 0;
  margin-left: 1.5em;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  max-width: 100%;
}

figure {
  margin: 1em 0;
}

table {
  margin: 0 0 1.5em;
  width: 100%;
}

/* Links
--------------------------------------------- */
a {
  color: var(--custom_style_color_black);
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: var(--custom_style_color_black);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
/* button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid;
  border-color: #ccc #ccc #bbb;
  border-radius: 3px;
  background: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1;
  padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
} */

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
  display: grid;
  grid-auto-flow: column;
  gap: 3rem;
  justify-content: end;
}
#masthead > .header {
  pointer-events: none;
}
.header .custom-logo-link,
.header .menu-toggle,
.header .main-navigation__primary,
.header .nav-drawer {
  pointer-events: auto;
}

.nav-menu {
  display: flex;
  flex-direction: row-reverse;
  list-style: none;
  justify-content: end;
  gap: 2.5rem;
}

#primary-menu .menu-item {
  writing-mode: vertical-rl;
  line-height: 1;
}

#primary-menu .menu-item a {
  display: inline-block;
  text-decoration: none;
  color: var(--custom_style_color_white);
  font-size: 1.5rem;
  margin-top: 1em;
}

.menu-toggle {
  background-color: var(--custom_style_color_bg);
  border-radius: 50%;
  aspect-ratio: 1;
  padding: 0;
  color: transparent;
  position: relative;
  border: solid 1px var(--custom_style_color_black);
  z-index: 100;
  width: 4.5rem;
}
.menu-toggle:hover {
  border-color: transparent;
}

.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  content: "";
  background-color: var(--custom_style_color_black);
  width: 1.5rem;
  height: 0.1rem;
  left: 50%;
  translate: -50% 0;
  transition: rotate 0.3s;
}
.menu-toggle::before {
  top: 1.9rem;
}
.menu-toggle::after {
  bottom: 1.9rem;
}
.main-navigation.toggled .menu-toggle {
  border-color: var(--custom_style_color_gray);
}
.main-navigation.toggled .menu-toggle::before {
  rotate: -0.125turn;
  top: 50%;
  translate: -50% -50%;
}
.main-navigation.toggled .menu-toggle::after {
  rotate: 0.125turn;
  bottom: 50%;
  translate: -50% 50%;
}
header {
  padding-top: 10rem;
}

header#masthead {
  padding-top: 0;
}
#masthead > .header {
  display: grid;
  grid-auto-flow: column;
  width: 100%;
  overflow: hidden;
  position: absolute;
  z-index: 100;
}

#masthead.is-fixed > .header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}

.nav-open #masthead > .header {
  position: fixed;
}

#masthead.is-fixed.is-fixed-fade-in > .header {
  opacity: 1;
  transition: opacity 0.3s;
}
.custom-logo.mono-logo {
  transition: opacity 1s;
}
.custom-logo.color-logo {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;
  position: absolute;
  top: 0;
  left: 0;
}
.custom-logo-link {
  position: relative;
}
#masthead.is-fixed.is-fixed-fade-in .custom-logo.mono-logo {
  opacity: 0;
}
#masthead.is-fixed.is-fixed-fade-in .custom-logo.color-logo {
  opacity: 1;
}

.site-header {
  position: relative;
}

.nav-drawer {
  position: fixed;
  display: grid;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition:
    visibility 0.3s,
    opacity 0.3s;
}

.nav-open .nav-drawer,
.nav-main__list__item-active .nav-sub,
.nav-main__list__item-active .nav-sub__container {
  opacity: 1;
  visibility: visible;
}

.nav-drawer a {
  font-family: "Zen Old Mincho", serif;
}

.nav-main {
  display: grid;
  background-color: var(--custom_style_color_bg);
}

.nav-main__list {
  margin: 0;
  height: 100vh;
  list-style: none;
  display: grid;
  align-content: start;
  overflow: scroll;
}
.nav-main__list::-webkit-scrollbar {
  display: none;
}

.nav-main__list > li > .nav-main__list__title {
  transition:
    top 0.5s,
    opacity 0.5s;
  opacity: 0;
  position: relative;
  top: -2rem;
}

.toggled .nav-main__list > li > .nav-main__list__title {
  opacity: 1;
  top: 0;
}

.nav-main__list__anchor,
.nav-sub__title,
.nav-main__list__title {
  text-decoration: none;
  display: block;
  line-height: 1;
  color: var(--custom_style_color_black);
  width: 100%;
  border-radius: 0;
  border: 0;
  border-bottom: solid 0.1rem var(--custom_style_color_gray);
  text-align: left;
  background: transparent;
  transition: background-color 0.3s;
  position: relative;
}

.nav-sub__title,
.nav-main__list__title {
  font-size: 1.4rem;
}

button.nav-main__list__title::after {
  content: "";
  position: absolute;
  clip-path: polygon(79% 0, 74% 11%, 88% 42%, 0 42%, 0 58%, 88% 58%, 74% 89%, 79% 100%, 100% 56%, 100% 44%);
  background-color: var(--custom_style_color_black);
  right: 1rem;
  top: 50%;
  translate: 0 calc(-50% + 0.25rem);
  width: 1.3rem;
  height: 0.6rem;
  transition: right 0.3s;
}

.nav-sub__list-type2 .nav-main__list__anchor {
  text-align: center;
  padding: 2.4rem 0;
  border: solid 0.1rem var(--custom_style_color_black);
}

.nav-main__list__anchor:hover,
.nav-sub__title:hover,
.nav-main__list__title:hover {
  background-color: rgba(17, 17, 17, 0.0235294118);
}

a.nav-sub__title:hover,
a.nav-main__list__anchor:hover,
a.nav-main__list__title:hover,
a.nav-sub__title:visited,
a.nav-main__list__anchor:visited,
a.nav-main__list__title:visited {
  color: var(--custom_style_color_black);
}

.nav-logo {
  justify-self: center;
  margin-top: 10rem;
}

.nav-sub {
  position: fixed;
  top: 0;
  translate: -50%;
  height: 100vh;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  background-color: var(--custom_style_color_bg);
}

.nav-main__list__item {
  position: relative;
}

.nav-main__list__item.nav-main__list__item-active {
  z-index: 2;
}

.nav-sub__container {
  height: 100vh;
  overflow: scroll;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.nav-sub__list {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: opacity 0.3s;
}

.nav-sub__list-type2 {
  gap: 2.5rem 4rem;
}

.nav-open {
  overflow: hidden;
}

.floating-btn {
  position: fixed;
  bottom: 4.5rem;
  z-index: 10;
  background-color: var(--custom_style_color_bg);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  place-items: center;
  color: var(--custom_style_color_black);
  text-decoration: none;
  gap: 1.2rem;
  border: solid 0.1rem var(--custom_style_color_gray);
}
.floating-btn > p {
  padding-right: 1.2rem;
  border: 0;
  border-right: solid 0.1rem var(--custom_style_color_gray);
  line-height: 2rem;
  font-size: 1.2rem;
}
.floating-btn > img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}
@media screen and (min-width: 768px) {
  #masthead > .header {
    padding: 4.6rem 6rem 0;
  }
  .main-navigation__primary {
    transition: opacity 0.3s;
  }
  #masthead.is-fixed > .header .main-navigation__primary {
    opacity: 0;
    visibility: hidden;
  }
  .custom-logo {
    width: 17.2rem;
  }
  .nav-drawer {
    grid-template-columns: 1fr 1fr;
  }
  .nav-main {
    grid-template-columns: 1fr 1fr;
  }
  .nav-main__list {
    padding: 10.8rem 6rem 2.8rem 0;
  }
  .nav-main__list__anchor,
  .nav-sub__title,
  .nav-main__list__title {
    padding: 2.5rem 0 2rem;
  }
  button.nav-main__list__title::after {
    content: "";
    position: absolute;
    clip-path: polygon(79% 0, 74% 11%, 88% 42%, 0 42%, 0 58%, 88% 58%, 74% 89%, 79% 100%, 100% 56%, 100% 44%);
    background-color: var(--custom_style_color_black);
    right: 1rem;
    top: 50%;
    translate: 0 calc(-50% + 0.25rem);
    width: 1.3rem;
    height: 0.6rem;
    transition: 0.3s;
  }
  button.nav-main__list__title:hover:after {
    right: 0.75rem;
  }
  .nav-sub__list-type2 .nav-main__list__anchor {
    text-align: center;
    padding: 2.4rem 0;
    border: solid 0.1rem var(--custom_style_color_black);
  }
  .nav-main__list__anchor:hover,
  .nav-sub__title:hover,
  .nav-main__list__title:hover {
    background-color: rgba(17, 17, 17, 0.0235294118);
  }
  a.nav-sub__title:hover,
  a.nav-main__list__anchor:hover,
  a.nav-main__list__title:hover,
  a.nav-sub__title:visited,
  a.nav-main__list__anchor:visited,
  a.nav-main__list__title:visited {
    color: var(--custom_style_color_black);
  }
  .nav-logo {
    width: 18rem;
    aspect-ratio: 1;
    justify-self: center;
    margin-top: 10rem;
  }
  .nav-logo img {
    width: 100%;
  }
  .nav-sub {
    left: 75%;
    width: 50vw;
  }
  .nav-open .nav-main__list__item:first-of-type .nav-sub,
  .nav-main__list__title:hover ~ .nav-sub {
    opacity: 1;
    visibility: visible;
  }
  .nav-sub img {
    object-fit: cover;
    height: 100vh;
    width: 50vw;
    position: absolute;
    transition: opacity 0.3s;
  }
  /* .nav-main__list__item-active .nav-sub img {
    opacity: 0;
    visibility: hidden;
  } */
  .nav-sub__container {
    padding: 9rem 6rem 1rem;
  }
  .nav-sub__list {
    grid-template-columns: 1fr 1fr;
  }
  .nav-sub__list-type1 {
    margin-top: 2.5rem;
    gap: 0 2rem;
  }
  .nav-sub__list-type2 {
    margin-top: 4.6rem;
  }
  .floating-btn {
    padding: 2rem;
    right: 6rem;
  }
}
@media screen and (max-width: 767px) {
  #masthead > .header {
    padding: 4rem 2.5rem 0;
  }
  .main-navigation__primary {
    display: none;
  }
  .nav-main__list {
    padding: 9.5rem 4rem 2.8rem;
  }
  .nav-main__list__anchor,
  .nav-sub__title,
  .nav-main__list__title {
    padding: 2.5rem 0 2rem;
  }
  .nav-main__list__anchor:hover,
  .nav-sub__title:hover,
  .nav-main__list__title:hover {
    background-color: rgba(17, 17, 17, 0.0235294118);
  }
  .nav-logo {
    display: none;
  }
  .nav-sub {
    left: 50%;
    width: 100%;
    visibility: hidden;
    background-color: var(--custom_style_color_bg);
  }
  .nav-sub img {
    display: none;
  }
  .nav-sub__container {
    padding: 9.5rem 4rem 1rem;
  }
  .nav-sub__list-type2 {
    margin-top: 2.5rem;
  }
  .nav-main__list__item-active > button.nav-main__list__title::after {
    position: fixed;
    right: unset;
    z-index: 2;
    rotate: -0.5turn;
    left: 4rem;
    top: 6rem;
    transition: left 0.3s;
  }
  .nav-main__list__item-active > button.nav-main__list__title::before {
    content: "";
    position: fixed;
    right: unset;
    z-index: 2;
    rotate: -0.5turn;
    left: 4rem;
    top: 6rem;
    width: 4rem;
    height: 4rem;
    translate: -1.4rem -1.7rem;
    transition: left 0.3s;
    background-color: var(--custom_style_color_bg);
    border-radius: 50%;
  }
  .floating-btn {
    padding: 1.5rem 2rem;
    right: 50%;
    translate: 50%;
  }
}

/*
.main-navigation:not(.toggled) .menu-toggle::before,
.main-navigation:not(.toggled) .menu-toggle::after{
  animation: togglemenu 0.3s ease-in 0s 1 normal backwards;
}
.main-navigation.toggled .menu-toggle::before,
.main-navigation.toggled .menu-toggle::after{
  animation: togglemenu2 0.3s ease-in 0s 1 normal backwards;
}
@keyframes togglemenu {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}
@keyframes togglemenu2 {
  0%{
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
} */

/* Link button
--------------------------------------------- */
.link-btn {
  align-content: center;
  position: relative;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  color: var(--custom_style_color_black);
}
.link-btn__text {
  position: relative;
}
.link-btn__text::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  width: 0;
  background-color: var(--custom_style_color_black);
  height: 1px;
  transition: width 0.7s;
}

.link-btn:hover .link-btn__text::after {
  width: 100%;
  right: unset;
  left: 0;
}

.link-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  background-color: var(--custom_style_color_black);
  clip-path: polygon(79% 0, 74% 11%, 88% 42%, 0 42%, 0 58%, 88% 58%, 74% 89%, 79% 100%, 100% 56%, 100% 44%);
}
.footer-link-btn.link-btn::after {
  rotate: -0.125turn;
}
.link-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  translate: 0 -50%;
  width: 1rem;
  border: solid 0.1rem var(--custom_style_color_gray);
  transition: 0.3s;
  border-radius: 50%;
}
.link-btn__circle {
  position: absolute;
  top: 50%;
  right: 0;
  translate: 0 -50%;
  rotate: -90deg;
  stroke: var(--custom_style_color_black);
  stroke-width: 1%;
  stroke-dashoffset: 3.15;
  stroke-dasharray: 3.15 3.15;
  overflow: visible;
  animation: btn__circle-out 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) 1 forwards;
}

.link-btn-invert.link-btn {
  color: var(--custom_style_color_white);
}
.link-btn-invert .link-btn__circle {
  stroke: var(--custom_style_color_white);
}
.link-btn-invert .link-btn__text::after {
  background-color: var(--custom_style_color_white);
}
.link-btn-invert.link-btn::after {
  background-color: var(--custom_style_color_white);
}
.link-btn:hover .link-btn__circle {
  animation: btn__circle 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) 1 forwards;
}

.invert-color.link-btn {
  color: var(--custom_style_color_white);
}
.invert-color.link-btn::after {
  background-color: var(--custom_style_color_white);
}
.invert-color.link-btn .link-btn__text::after {
  background-color: var(--custom_style_color_white);
}
.invert-color.link-btn .link-btn__circle {
  stroke: var(--custom_style_color_white);
}

.sec-btn {
  display: grid;
  justify-content: center;
  width: fit-content;
  width: -moz-fit-content;
  position: relative;
  border: solid 1px var(--custom_style_color_gray);
  transition: opacity 0.3s;
}

.sec-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.9rem;
  translate: 0 -50%;
  background-color: var(--custom_style_color_black);
  width: 1.3rem;
  height: 0.6rem;
  clip-path: polygon(79% 0, 74% 11%, 88% 42%, 0 42%, 0 58%, 88% 58%, 74% 89%, 79% 100%, 100% 56%, 100% 44%);
  transition: right 0.3s;
}

.nav-btn {
  padding: 2.5rem 0 2rem;
  text-decoration: none;
  display: block;
  line-height: 1;
  color: var(--custom_style_color_black);
  border-radius: 0;
  border: 0;
  border-bottom: solid 0.1rem var(--custom_style_color_gray);
  text-align: left;
  background: transparent;
  position: relative;
  width: fit-content;
  width: -moz-fit-content;
  transition: opacity 0.3s;
}
.nav-btn::after {
  content: "";
  position: absolute;
  clip-path: polygon(79% 0, 74% 11%, 88% 42%, 0 42%, 0 58%, 88% 58%, 74% 89%, 79% 100%, 100% 56%, 100% 44%);
  background-color: var(--custom_style_color_black);
  right: 1rem;
  top: 50%;
  translate: 0 calc(-50% + 0.25rem);
  width: 1.3rem;
  height: 0.6rem;
  transition: right 0.3s;
}
.sec-btn:hover,
.nav-btn:hover {
  opacity: 0.5;
}
.sec-btn:hover:after {
  right: 1.5rem;
}
.nav-btn:hover:after {
  right: 0.75rem;
}

@keyframes btn__circle {
  0% {
    stroke-dashoffset: 3.15;
    rotate: -0.25turn;
  }
  100% {
    stroke-dashoffset: 0;
    rotate: 1turn;
  }
}
@keyframes btn__circle-out {
  0% {
    rotate: 1turn;
    stroke-dashoffset: 0;
  }
  100% {
    rotate: 2.25turn;
    stroke-dashoffset: -3.15;
  }
}

@media screen and (min-width: 768px) {
  .link-btn {
    padding: 1.8rem 6.6rem 1.8rem 0;
  }
  .footer-link-btn.link-btn {
    padding-right: 6rem;
  }

  .link-btn::after {
    translate: -1.8rem -50%;
    width: 1.3rem;
    height: 0.6rem;
  }
  .link-btn__circle,
  .link-btn::before {
    width: 5rem;
    height: 5rem;
  }
  .sec-btn {
    padding: 3.3rem 0;
    min-width: 36rem;
  }
  .nav-btn {
    min-width: 30rem;
  }
}
@media screen and (max-width: 767px) {
  .link-btn {
    padding: 1.4rem 5.6rem 1.4rem 0;
  }
  .footer-link-btn.link-btn {
    padding-right: 5rem;
  }

  .link-btn::after {
    translate: -1.5rem -50%;
    width: 1.1rem;
    height: 0.5rem;
  }
  .link-btn__circle,
  .link-btn::before {
    width: 4rem;
    height: 4rem;
  }
  .sec-btn {
    padding: 2.4rem 0;
    min-width: 31rem;
  }
  .nav-btn {
    min-width: 31rem;
  }
}

/* Small menu. */

/* Posts and pages
--------------------------------------------- */
.sticky {
  display: block;
}

/* .post,
.page {
  margin: 0 0 1.5em;
} */

.updated:not(.published) {
  display: none;
}

.page-content,
.entry-content,
.entry-summary {
  margin: 1.5em 0 0;
}

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
  word-wrap: break-word;
}

.bypostauthor {
  display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
  margin: 0 0 1.5em;
}

.widget select {
  max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
  padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
  display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption .wp-caption-text {
  margin: 0.8075em 0;
}

.wp-caption-text {
  text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
  margin-bottom: 1.5em;
  display: grid;
  grid-gap: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  width: 100%;
}

.gallery-columns-2 {
  grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
  grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
  grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
  grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
  grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
  display: block;
}

/* Headings
--------------------------------------------- */

.section-sub-heading.is-anim {
  height: fit-content;
  opacity: 0;
  transition: opacity 0.5s 0.1s;
  position: relative;
  display: inline-block;
}

.section-sub-heading.is-anim.is-anim-active {
  opacity: 1;
}
.section-sub-heading.is-anim::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  background-color: var(--custom_style_color_black);
  height: 1px;
  transition: width 0.5s 0.6s;
}
.section-sub-heading.is-anim.is-anim-active::after {
  width: 100%;
}
.component-section-title {
  display: grid;
  justify-items: center;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .section-sub-heading.is-anim::after {
    bottom: -1.5rem;
  }
  .component-section-title {
    gap: 5.5rem;
  }
}

@media screen and (max-width: 767px) {
  .section-sub-heading.is-anim::after {
    bottom: -0.8rem;
  }
  .component-section-title {
    gap: 3.8rem;
  }
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
  display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
  /*rtl:ignore*/
  float: left;

  /*rtl:ignore*/
  margin-right: 1.5em;
  margin-bottom: 1.5em;
}

.alignright {
  /*rtl:ignore*/
  float: right;

  /*rtl:ignore*/
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/*
*   Custom styles
*/

/* footer */
