/*
Theme Name: NativeSense
Author: super_amateur_c with PACkage Inc.
Description: for NativeSense. Created 2021.
*/
@charset "utf-8";

body {
  opacity: 0;
  transition: opacity 550ms;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

body.finish-load {
  opacity: 1;
}

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  border: 0px solid transparent;
  outline: 0px solid transparent;
  box-sizing: border-box;

  text-decoration: none;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;

  list-style: none;

  will-change: none;
  font-smooth: none;
  /* image-rendering: pixelated; */

  font-kerning: normal;
  font-feature-settings: "palt";

  font-weight: bold;
  font-family: mplus-1c, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bolder;
  margin-bottom: 0.3em;
}

h1:not(:first-child),
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child),
h5:not(:first-child),
h6:not(:first-child) {
  margin-top: 1.2em;
}

#main>p:not(:first-child),
#main>div:not(:first-child) {
  margin-top: 0.8em;
}

a:any-link {
  color: inherit;
}

*:not(.anti-antialias):not(html):not(body) {
  transform: rotate(0.028deg);
  /* アンチエイリアシング */
}

#main,
.main-width {
  width: 100%;
  margin: auto;
}

@media screen and (max-width: 860px) {

  #main,
  .main-width {
    max-width: 100%;
  }
}

@media screen and (min-width: 861px) and (max-width: 1200px) {

  #main,
  .main-width {
    max-width: 820px;
  }
}

@media screen and (min-width: 1201px) {

  #main,
  .main-width {
    max-width: 1100px;
  }
}

body:not(.is-front-page) #main>*:first-child:not(.no-padding-top) {
  padding-top: 80px;
}

.flex {
  display: flex;
}

.flex-space-between {
  justify-content: space-between;
}

#footer {
  margin-top: 5em;
}

/* #footer .flex {
} */

#footer .flex-row-content {
  max-width: 100%;
  min-height: 12em;
}

/* --- Header --- */

.header {
  position: fixed;
  z-index: 100;
  left: 0px;
  width: 100%;
  /* height: 50px; */

  transition-property: opacity, top;
  opacity: 1;
  top: 0px;
}

.finish-load .header {
  transition-duration: 500ms;
}

.header.hide {
  opacity: 0;
  top: -1.5em;
}

.header #header_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
}

.header_logo {
  width: 64px;
  height: 100%;
  margin-left: 8px;
}

.header a:hover {
  opacity: 0.65;
}

.header a:not(.no-hover-bgcolor) {
  transition-property: background-color, opacity;
  transition-duration: 250ms;
}

.header a.no-hover-bgcolor {
  transition-property: opacity;
  transition-duration: 150ms;
}

body:not(.use-mobile-menu) .menu,
body:not(.use-mobile-menu) .menu * {
  height: 100%;
}

.menu li>a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.menu>ul,
#header_sns_menu,
#menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.menu>ul li {
  height: 100%;
}

#header_sns_menu {
  margin-right: 8px;
}

#header_sns_menu a {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 100%;
}

#header_sns_menu a * {
  background-color: transparent;
}

#header_sns_menu svg {
  height: 1em;
}

#header_sns_menu a:hover svg {
  animation-name: wobble-horizontal;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 36px;
  padding: 8px;
  margin: 6px;
  background: none;
  cursor: pointer;
  z-index: 110;
}

.hamburger span {
  display: block;
  height: 4px;
  background: #000;
  border-radius: 2px;
}

body.use-mobile-menu #hamburger:not(.open)+header.header {
  opacity: 0;
  top: -1.5em;
  pointer-events: none;
}

body.use-mobile-menu #header_inner {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

body.use-mobile-menu header {
  height: 100%;
}

body.use-mobile-menu div#header_sns_menu {
  height: 3em;
}

body.use-mobile-menu #menu-header {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 0;
}

body.use-mobile-menu .header_logo {
  height: 8em;
  width: 8em;
}

body.use-mobile-menu .menu-item:not(:last-child) {
  margin-block-end: 1em;
}

body.use-mobile-menu .flex-blank-space {
  display: none;
}

@media screen and (max-width: 560px) {
  .hamburger {
    display: flex;
  }

  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: #fff;
    width: 100%;
  }

  .menu.show {
    display: flex;
  }
}

/* --- // Header --- */

/* Wobble Horizontal */
@keyframes wobble-horizontal {
  5% {
    transform: translateY(6px);
  }

  16.65% {
    transform: translateY(-8px);
  }

  33.3% {
    transform: translateY(0px);
  }

  49.95% {
    transform: translateY(-4px);
  }

  66.6% {
    transform: translateY(0px);
  }

  83.25% {
    transform: translateY(-1px);
  }

  100% {
    transform: translateY(0);
  }
}

/* --- // Header --- */

/* --- Front Page. --- */

/* SVGフィルターアニメーション参考: https://liginc.co.jp/376776 */

#hero_front {
  padding-bottom: 25vh;
}

.hero_front {
  text-align: center;
  line-height: 500%;
}

.hero_logo {
  width: 50vw;
  height: 50vh;
  margin-top: 50vh;
  margin-bottom: 16vmin;
  transform: translateY(-50%);
}

.logo-mini-img,
.logo-img {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
}

#hero_front_searefrection {
  position: fixed;
  top: 0vh;
  left: 0px;
  /* background: white; */
  width: 100%;
  height: 50vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;

  transition: opacity, backdrop-filter, background-color;
  opacity: 1;

  filter: url("#searefrectionFilter");

  will-change: height, top, opacity, backdrop-filter, background-color;
}

body:not(.backdrop-filter-incompatible) #hero_front_searefrection {
  backdrop-filter: blur(10px);
}

body.backdrop-filter-incompatible #hero_front_searefrection {
  opacity: 0.9;
}

.finish-load #hero_front_searefrection {
  transition-duration: 1s;
}

#hero_front_searefrection.hide {
  opacity: 0 !important;
  backdrop-filter: none;
}

#hero_front_searefrection_content {
  transform: scaleY(-1);
  position: absolute;
  width: 100%;
  left: 0px;
  bottom: 0px;
  opacity: 0.8;
}

@keyframes squiggly-anim {
  0% {
    filter: url("#squiggly-0");
  }

  25% {
    filter: url("#squiggly-1");
  }

  50% {
    filter: url("#squiggly-2");
  }

  75% {
    filter: url("#squiggly-3");
  }

  100% {
    filter: url("#squiggly-4");
  }
}

/* --- // Front Page. --- */

/* --- Home Page. --- */

.article-img {
  display: block;
  /* height: 100%; */
  width: 30%;
  margin-right: 12px;
  background-size: cover;
  background-position: center;
}

.article {
  margin: 6px;
  padding: 8px;
  height: 9em;
}

.article .date {
  font-size: 0.8em;
}

.category,
.tag {
  flex-wrap: wrap;
}

.category li,
.tag li {
  background-color: #f60;
  padding: 1px 10px;
  margin: 2px 4px;
  border-radius: 4px;
  color: #fff;
}

.tag li {
  font-size: 0.8em;
}

/* --- // Home Page. --- */

.sp-only {
  display: none;
}

@media screen and (max-width: 560px) {
  body {
    margin-inline: 12px;
  }

  .sp-only {
    display: inherit;
  }
}

.pc-only {
  display: inherit;
}

@media screen and (max-width: 560px) {
  .pc-only {
    display: none !important;
  }
}

/* Additional Style */

.wp-block-embed__wrapper {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.wp-block-image img {
  max-width: 80%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

figure.wp-block-table {
  overflow: inherit !important;
}