/* Web Fonts
============================================================= */
/* @import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@300;400;500;700&display=swap'); */

/* カスタムプロパティ
============================================================= */

:root {
  /* 色 */
  --color-fonts: #4d4d4d; /* 文字 */
  --color-base: #fff; /* ベースカラー */
  --color-main: #bdd764; /* メインカラー */
  --color-sub-1: #f1aac9; /* サブカラー */
  --color-sub-2: #72c6f1; /* サブカラー */
  --color-sub-3: #ffd400; /* サブカラー */
  --color-accent: #f884b6; /* アクセントカラー */
  --color-bcg-1: #f3f7e2;
  --color-bcg-2: #f7f7f7;
  --color-border: #cdd6dd;

  /* z-index */
  --z-index-container: 0;
  --z-index-header: 100;
  --z-index-overlay: 200;
  --z-index-spmenu: 300;
  --z-index-hamburger: 400;
  /* font-family */
  --font-family-noto-sans-jp: "Noto Sans JP", "Helvetica Neue", arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", meiryo, sans-serif;
  --font-family-open-sans: "Open Sans", sans-serif;
  --font-family-zen-maru-gothic: "Zen Maru Gothic", "Helvetica Neue", arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", meiryo, sans-serif;
  /* 幅 */
  /* --width-xs: 0; */
  --width-sm: 576px;
  --width-md: 768px;
  --width-lg: 992px;
  --width-xl: 1200px;
  --width-xxl: 1400px;
}

/* Note
=============================================================

  ブレイクポイント一覧
  
  xs: 0
  sm: 576px
  md: 768px
  lg: 992px
  xl: 1200px
  xxl: 1400px

  @media only screen and (max-width: 1399.98px) {
  }
  @media only screen and (max-width: 1199.98px) {
  }
  @media only screen and (max-width: 991.98px) {
  }
  @media only screen and (max-width: 767.98px) {
  }
  @media only screen and (max-width: 575.98px) {
  }

  @media only screen and (min-width: 1400px) {
  }
  @media only screen and (min-width: 1200px) {
  }
  @media only screen and (min-width: 992px) {
  }
  @media only screen and (min-width: 768px) {
  }
  @media only screen and (min-width: 576px) {
  }
  
/* 初期化
============================================================= */

html {
  scroll-behavior: smooth;
}

a {
  font-weight: 700;
  color: inherit;

  &:hover {
    opacity: 0.8;
  }
}

address {
  font-style: normal;
}

img {
  image-rendering: auto;
}

hr {
  width: 100%;
  height: 0;
  margin: 20px 0;
  border: none;
  border-top: 2px solid var(--color-border);
}

/* input */

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,
select {
  max-width: 100%;
  padding: 0.5em;
  margin-top: 10px;
  line-height: 1.2em;
  appearance: auto;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
}

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,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-sub-2);
}

input[type="checkbox"] {
  accent-color: var(--color-sub-1);
}

/* CSS Hack */

/* Chromeで画像がぼやけるのを防ぐ */
/* stylelint-disable-next-line selector-type-no-unknown */
/* _:lang(x)::-internal-media-controls-overlay-cast-button,
img {
  image-rendering: -webkit-optimize-contrast;
} */

/* Fonts
============================================================= */

body {
  font-family: var(--font-family-zen-maru-gothic);
  font-weight: 400;
  color: var(--color-fonts);
}

/* Wrapper
============================================================= */

.container {
  position: relative;
  z-index: var(--z-index-container);
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--color-base);
}

/* Main
============================================================= */

.main {
  width: 100%;
}
/* Header 'header, h'
============================================================= */

.header {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
}

.header__top {
  z-index: var(--z-index-header);
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: auto;
  min-height: 80px;
  padding: 0 30px;
  background-color: var(--color-main);
}

@media only screen and (max-width: 575.98px) {
  .header__top {
    padding: 0 15px;
  }
}

.h-logo {
  width: 100%;
  max-width: 240px;
}

.h-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 767.98px) {
  .h-logo {
    max-width: 180px;
  }
}

/* グローバルナビ
============================================================= */

.g-nav {
  display: block;
  font-size: 16px;
}

.g-nav__ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 3em;
  list-style: none;
}

.g-nav__ul li {
  line-height: 1em;
}

.g-nav__ul a {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

@media only screen and (max-width: 1199.98px) {
  .g-nav {
    font-size: 14px;
  }
}

@media only screen and (max-width: 767.98px) {
  .g-nav {
    display: none;
  }
}

/* モバイルメニュー
============================================================= */
.m-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-index-spmenu);
  display: none;
  width: 100%;
  padding: 0;
  overflow-y: auto;
  font-size: 18px;
  background: none;
  transition: all 0.6s;
  transform: translateY(-100%);

  &.active {
    transform: translateY(0%);
  }
}

@media only screen and (max-width: 767.98px) {
  .m-nav {
    display: block;
  }
}

.m-nav__ul {
  display: flex;
  flex-flow: column nowrap;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;

  & li {
    justify-content: center;
    width: 100%;
    color: var(--color-fonts);
    background-color: rgb(255 255 255 / 90%);

    &:not(:first-child) {
      border-top: 1px solid #ccc;
    }
  }

  & a {
    position: relative;
    display: block;
    padding: 0.75em 0;
    font-weight: 500;
    color: inherit;
    text-align: center;
    text-decoration: none;
  }
}

/* ハンバーガーメニューのボタン */
.hamburger {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: var(--z-index-hamburger);
  display: none;
  width: 42px;
  height: 42px;
  text-align: center;
  cursor: pointer;
  /* background: rgb(240 240 240 / 80%); */
  background-color: rgb(241 170 201 / 80%);
  border-radius: 3px;
}

@media only screen and (max-width: 767.98px) {
  .hamburger {
    display: block;
  }
}

.hamburger::before {
  position: absolute;
  bottom: -12px;
  left: 0;
  display: block;
  width: 100%;
  font-family: var(--font-family-open-sans);
  font-size: 10px;
  font-weight: 700;
  color: #666;
  content: "MENU";
  transition: 0.6s ease-in-out;
}

.hamburger span {
  position: absolute;
  left: 6px;
  display: block;
  width: 30px;
  height: 2px;
  /* background: #666; */
  background-color: #fff;
  transition: 0.3s ease-in-out;
}

.hamburger span:nth-of-type(1) {
  top: 10px;
}

.hamburger span:nth-of-type(2) {
  top: 20px;
}

.hamburger span:nth-of-type(3) {
  top: 30px;
}

.hamburger.active {
  position: fixed;
}

.hamburger.active span {
  background: var(--color-accent);
}

.hamburger.active::before {
  content: "CLOSE";
}

.hamburger.active span:nth-of-type(1) {
  top: 20px;
  left: 6px;
  transform: rotate(-45deg);
}

.hamburger.active span:nth-of-type(2),
.hamburger.active span:nth-of-type(3) {
  top: 20px;
  transform: rotate(45deg);
}

/* ハンバーガーメニュー表示時のオーバーレイ */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-index-overlay);
  display: none;
  width: 100%;
  height: 100vh;
  content: "";
  background-color: rgb(0 0 0 / 40%);
}

@media only screen and (max-width: 991.98px) {
  .overlay.active {
    display: block;
  }
}

/* オーバーレイのフェードアニメーション */
@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Footer 'footer, f'
============================================================= */
.footer {
  width: 100%;
  background-color: var(--color-bcg-1);
}

.footer__inner {
  position: relative;
  max-width: var(--width-xl);
  padding: 0 30px;
  margin: 0 auto;
}

@media only screen and (max-width: 575.98px) {
  .footer__inner {
    padding: 0 15px;
  }
}

/* フッターナビ */
.f-nav {
  padding: 20px 0;
  margin: 0 auto;
  font-size: 14px;
}

.f-nav__ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 3em;
  justify-content: center;
  list-style: none;

  & a {
    font-weight: 500;
    color: inherit;
    text-decoration: none;
  }

  & a::before {
    display: inline-block;
    margin-right: 5px;
    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    font-weight: 900;
    vertical-align: 1px;
    content: "\f0da"; /* caret-right */
  }
}

@media only screen and (max-width: 575.98px) {
  .f-nav__ul {
    flex-direction: column;
    align-items: center;
  }
}

.f-copy {
  padding: 20px 0;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  background-color: var(--color-main);
}

/* 上に戻るボタン */
.backtotop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: block;
  width: 42px;
  height: 42px;
  background-color: rgb(241 170 201 / 80%);
  border-radius: 3px;
}

.backtotop::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 16px;
  height: 16px;
  content: "";
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, -25%) rotate(45deg);
}

@media only screen and (max-width: 767.98px) {
  .backtotop {
    font-size: 12px;
  }
}

/* メインビジュアル
============================================================= */

/* テーマカスタマイザー */
.wp-custom-header {
  width: 100%;
  padding: 0;
  margin: 0;
  background-color: var(--color-base);
}

.wp-custom-header img {
  display: block;
  width: 100%;
  max-width: 2000px;
  height: auto;
  margin: 0 auto;
}

@media only screen and (max-width: 767.98px) {
  .wp-custom-header img {
    height: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
}

/* レイアウト
============================================================= */

.layout-full-width {
  width: 100%;
}

/* 1カラム */
.layout-singlecol {
  width: 100%;
  max-width: var(--width-xl);
  margin: 0 auto;
}

@media only screen and (max-width: 1199.98px) {
  .layout-singlecol {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 575.98px) {
  .layout-singlecol {
    padding: 0 15px;
  }
}

/* 2カラム */
.layout-twocol {
  display: flex;
  gap: 40px 20px;
  align-items: stretch;
  width: 100%;
  max-width: var(--width-xl);
  margin: 0 auto;
}

.layout-twocol__main {
  flex: 3;
  height: 100%;
  overflow: hidden;
}

.layout-twocol__side {
  flex: 1;
  max-width: 280px;
  height: 100%;
}

@media only screen and (max-width: 1199.98px) {
  .layout-twocol {
    padding: 0 30px;
  }
}

@media only screen and (max-width: 991.98px) {
  .layout-twocol {
    flex-direction: column;
    /* padding: 0 15px; */
  }

  .layout-twocol__main {
    flex: 1;
    max-width: initial;
  }

  .layout-twocol__side {
    flex: 1;
    max-width: initial;
  }
}

@media only screen and (max-width: 575.98px) {
  .layout-twocol {
    padding: 0 15px;
  }
}

/* Content
============================================================= */
.content {
  width: 100%;
  min-height: 200px;
}

.content--border {
  padding: 30px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

@media only screen and (max-width: 767.98px) {
  .content--border {
    padding: 20px 10px;
  }
}

/* Sidebar
============================================================= */

.sidebar {
  font-size: 16px;

  & ul {
    padding: 0;
    margin: 0;
    list-style: none;
  }

  /* stylelint-disable-next-line no-descending-specificity */
  & li {
    margin: 0.5em 0;
  }

  /* サイドバー見出し */
  &:where(h1, h2, h3, h4, h5, h6) {
    padding-bottom: 0.25em;
    margin-bottom: 1em;
    color: inherit;
    border-bottom: 1px dashed #ccc;
  }
}

.sidebar--border {
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* 項 'sect, section'
============================================================= */

/* 基本 */
.sect {
  width: 100%;
  margin: 0;
}

/* 見出し 'heading'
============================================================= */
.heading-page {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.5em;
}

.heading-page--center {
  text-align: center;
}

@media only screen and (max-width: 767.98px) {
  .heading-page {
    font-size: 24px;
  }
}

/* category
============================================================= */

.post-card {
  &:not(:first-child) {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px dashed #ccc;
  }
}

/* 投稿 'post'
============================================================= */

/* 投稿カテゴリー */

.post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 1em 0.5em;
  padding: 0 !important;
  margin: 0;
  list-style: none;
}

.entry-categories {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1em;
  list-style: none;

  & a {
    display: inline-block;
    padding: 0.3em 0.4em;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    background-color: var(--color-sub-1);
    border-radius: 3px;
    transition: all ease 0.5s;
  }
}

.entry-tags {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1em;
  list-style: none;

  /* stylelint-disable-next-line no-descending-specificity */
  & a {
    display: inline-block;
    padding: 0.2em 0.4em;
    border: 2px solid transparent;

    &::before {
      display: inline;
      content: "#";
    }
  }
}

/* 投稿日 */
.post-date {
  margin: 8px 0 0;
  font-family: var(--font-family-open-sans);
  font-size: 14px;
  color: #ccc;

  & img {
    display: inline;
    width: auto;
    height: 1.1em;
    vertical-align: -10%;
  }

  & time {
    display: inline;
    margin: 0 0.5em;
    line-height: 1em;
  }
}

/* リンク */
.post-link {
  text-decoration: none;

  &:hover {
    opacity: 1;
  }
}

/* 投稿タイトル */
.post-title {
  font-size: 24px;
  font-weight: 500;

  & a:hover {
    color: var(--color-sub-1);
  }
}

@media only screen and (max-width: 767.98px) {
  .post-title {
    font-size: 20px;
  }
}

/* 投稿 抜粋 */
.post-excerpt {
  position: relative;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.8em;
  text-align: justify;
}

.post-excerpt__thumbnail {
  float: left;
  margin: 0 10px 0 0;

  & img {
    display: block;
    width: 200px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--color-border);
  }
}

.post-excerpt__date {
  position: absolute;
  right: 0;
  bottom: 0;
}

@media only screen and (max-width: 575.98px) {
  .post-excerpt__thumbnail {
    float: none;
    margin: 0 0 10px;
  }

  .post-excerpt__date {
    position: relative;
  }
}

.post-more {
  display: block;
  width: fit-content;
  margin-left: auto;
  text-decoration: underline;
}

/* 前後ページナビ */

.post-nav {
  display: flex;
  gap: 0 2em;
  justify-content: space-between;
  margin: 80px 0 0;
  font-weight: 500;

  /* stylelint-disable-next-line no-descending-specificity */
  & a {
    text-decoration: underline;
  }
}

.post-nav__item {
  text-decoration: none;
  white-space: nowrap;
}

.post-nav__empty {
  width: 50px;
}

/* ウィジェット
============================================================= */

/* コンテンツ上部エリア */
/* .content-top-entry {
  max-width: var(--width-xl);
  margin: 0 auto;
} */

/* コンテンツ下部エリア */
/* .contents-bottom-entry {
  max-width: var(--width-xl);
  margin: 0 auto;
} */

/* ショートコード
============================================================= */

/* ブログ新着 */
.new-arrival {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  padding: 0 !important;
  list-style: none;
}

.new-arrival__item {
  width: calc((100% - 40px) / 3);
}

.new-arrival__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #fff;
  border: 1px solid var(--color-border);
}

.new-arrival__title {
  margin: 5px 0 0;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-main);
  text-align: justify;
}

/* stylelint-disable-next-line no-descending-specificity */
.new-arrival__title a {
  color: inherit;
  text-decoration: none;
}

.new-arrival__detail {
  padding: 0 10px;
  margin: 8px 0 0;
}

@media only screen and (max-width: 767.98px) {
  .new-arrival__item {
    width: calc((100% - 20px) / 2);
  }
}

@media only screen and (max-width: 575.98px) {
  .new-arrival {
    justify-content: center;
  }

  .new-arrival__item {
    width: 100%;
  }
}

/* ターム一覧 */
.list-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  padding: 0 !important;
  margin: 10px 0 0;
  list-style: none;
}

/* 記事の属するターム */
.post-term {
  width: fit-content;
  min-width: 3em;
  font-size: 14px;
  font-weight: 500;
  font-feature-settings: "palt";
  color: #aaa;
  text-align: center;
  white-space: nowrap;
  background-color: #efefef;
  border: 1px solid var(--color-border);
  border-radius: 24px;
}

/* 新着 */
.post-term--small {
  font-size: 12px;
}

/* stylelint-disable-next-line no-descending-specificity */
.post-term a {
  display: block;
  width: 100%;
  padding: 0.1em 0.75em;
  color: inherit;
  text-decoration: none;
}

.post-term--tags a::before {
  display: inline;
  content: "#";
}

/* stylelint-disable-next-line no-descending-specificity */
.post-term--tags a {
  padding: 0.1em 0 0.1em 0.5em;
}
