@charset "UTF-8";

/**************************************************
フォント設定
**************************************************/
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
  --_global--font-family: "Noto Serif JP", serif;
}

.font-en {
  font-family: "Playfair Display", serif;
}


/**************************************************
サイト全体の設定
**************************************************/
html {
  scrollbar-gutter: stable;
}

a {
  color: var(--wp--preset--color--sm-text);
  transition: opacity 0.3s ease-out;
}

a:hover {
  opacity: 0.8;
}

.c-site-branding__title a,
.c-copyright {
  font-family: "Playfair Display", serif;
}

.c-entry__content,
.top-genre {
  h2 {
    background-color: unset !important;
    padding-inline: unset !important;
    border-left: unset !important;
  }

  /* ボタン */
  .is-style-ghost a.smb-btn:hover {
    background-color: var(--smb-btn--style--ghost--color);
    color: #ffffff;
    opacity: 1 !important;
  }
}


/* フォントサイズ */
.has-sm-xs-font-size {
  font-size: clamp(10px, 0.8vw, 12px) !important;
}

.has-sm-s-font-size {
  font-size: clamp(12px, 0.97vw, 14px) !important;
}

.has-sm-m-font-size {
  font-size: clamp(14px, 1.1vw, 16px) !important;
}

.has-sm-l-font-size {
  font-size: clamp(16px, 1.25vw, 18px) !important;
}

.has-sm-xl-font-size {
  font-size: clamp(18px, 1.52vw, 22px) !important;
}

.has-sm-2-xl-font-size {
  font-size: clamp(20px, 1.8vw, 26px) !important;
}

.has-sm-3-xl-font-size {
  font-size: clamp(24px, 2.2vw, 32px) !important;
}

.has-sm-4-xl-font-size {
  font-size: clamp(28px, 2.8vw, 40px) !important;
}

.has-sm-5-xl-font-size {
  font-size: clamp(34px, 3.4vw, 50px) !important;
}

.has-sm-6-xl-font-size {
  font-size: clamp(38px, 4.5vw, 64px) !important;
}



/**************************************************
ヘッダー
**************************************************/
.l-header {
  box-shadow: unset;
}

.l-header__content,
.media-menu,
.l-footer {
  background: color-mix(in oklab, var(--wp--preset--color--sm-sub-accent) 20%, transparent) !important;
  background: linear-gradient(to right,
      color-mix(in oklab, var(--wp--preset--color--sm-sub-accent) 10%, transparent),
      color-mix(in oklab, var(--wp--preset--color--sm-sub-accent) 30%, transparent)) !important;
  background-attachment: fixed !important;
}



/**************************************************
ヘッダー調整
**************************************************/
/* ==============================
ヘッダー下パディング調整
============================== */
.l-simple-header__row {
  padding-bottom: 0;
}

/* ==============================
ハンバーガーボタンの「MENU」テキスト非表示
============================== */
.c-hamburger-btn__label {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==============================
コンテンツ上部の余白調整(記事カテゴリメニューのため)
============================== */
.l-contents__body {
  margin-top: 46px !important;
  position: relative;
  z-index: 10;
  background-color: #ffffff;
}

.l-footer {
  position: relative;
  z-index: 10;
}

@media (max-width:767px) {
  body.single .c-page-header {
    transform: translateY(40px);
  }
}


/* ==============================
記事カテゴリメニュー
============================== */
.media-menu {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 1;
  overflow-x: clip;
}

.media-menu__inner {
  width: 100%;
  max-width: calc(1280px + 28.8px * 2);
  margin-inline: auto;
  padding-inline: 28.8px;
}

.media-menu__scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

@media (max-width:767px) {
  .media-menu__scroll {
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
    width: 100vw;
    max-width: unset;
  }
}

.media-menu__scroll > * {
  flex-shrink: 0;
}

.media-menu__nav > ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
  display: flex;
  gap: 1em;
  align-items: center;
}


.media-menu__nav > ul > li {
  position: relative;
}

/* リンク/ボタン共通（見た目） */
.media-menu__nav a,
.media-menu__nav button {
  display: block;
  text-decoration: none;
  padding: 12px 0 !important;
  position: relative;
  font-size: clamp(12px, 1.5vw, 16px);
}

/* ホバー時下線  ※a/button::after は使わない */
.media-menu__nav > ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease-out;
  pointer-events: none;
}

.media-menu__nav > ul > li:hover::before {
  background-color: var(--accent-color);
}

@media (min-width:1350px) {
  .media-menu__scroll {
    width: calc(1280px + 28.8px * 2);
  }
}

@media (min-width:768px) {
  .media-menu__nav > ul {
    gap: 1.5em;
  }
}

/* --------------------
ドロップダウンメニュー（アニメ対応）
-------------------- */

/* リスト親 */
.media-menu__nav .menu-item-has-children {
  position: relative;
  padding-right: 30px;
}

/* ボタン（全面クリック） */
.media-menu__nav .menu-item-has-children > .children-expander {
  position: absolute;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  z-index: 10;
  transform: none !important;
}

/* 矢印 */
.media-menu__nav .menu-item-has-children::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: transform .18s ease;
  pointer-events: none;
}

.media-menu__nav .menu-item-has-children:has(.children-expander[data-is-expanded="true"])::after {
  transform: translateY(-50%) rotate(-135deg);
}

/* 子リスト（初期：閉じ） */
.media-menu__nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  background: var(--wp--preset--color--sm-sub-accent);
  list-style: none;
  margin: 0;
  padding-left: 0;

  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility 0s linear .18s;
}

/* 開いた状態（Snow Monkeyの data-is-hidden に追従） */
.media-menu__nav .sub-menu[data-is-hidden="false"] {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity .18s ease,
    transform .18s ease,
    visibility 0s;
}

/* 元々のドロップダウンメニューリンク */
.media-menu__nav .sub-menu a {
  display: none;
}

/* body直下に複製した sub-menu */
.media-menu-portal-submenu {
  position: fixed;
  z-index: 999999;
  background: var(--wp--preset--color--sm-sub-accent);
  list-style: none;
  padding-left: 0;
}

.media-menu-portal-submenu a {
  display: block;
  color: #fff !important;
  white-space: nowrap;
  padding: 5px 15px !important;
  position: relative;
  text-decoration: none;
  font-size: clamp(12px, 1.5vw, 16px);
}

.media-menu-portal-submenu a:hover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .2);
}


/* ==============================
記事カテゴリ横：検索フォーム
============================== */
.media-menu__search input {
  padding: 0;
  padding-inline: 5px !important;
  width: 200px;
}

.media-menu__search button {
  font-size: 0;
  width: 40px;
  padding: 5px !important;
}

.media-menu__search button::before {
  display: block;
  content: "";
  width: 18px;
  height: 18px;
  margin: auto;
  background: url("data:image/svg+xml;utf8,<svg fill='black' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M21 20l-5.6-5.6a7 7 0 10-1.4 1.4L20 21l1-1zM5 10a5 5 0 1110 0A5 5 0 015 10z'/></svg>") no-repeat center;
  background-size: contain;
}



/**************************************************
フッター
**************************************************/
/* ==============================
フッター調整
============================== */
footer {

  .l-footer__body .c-row__col--lg-fit,
  .l-footer__branding {
    display: none;
  }

}


.footer_logo-icon{
  width: 60px;
}

.footer_logo-text a{
	text-decoration:none !important;
}

/* ==============================
メニュー一覧
============================== */
.l-footer__footer {
  background-color: transparent !important;
}

.l-footer-widget-area__item {

  h2,
  h3 {
    justify-content: start !important;
  }

  h2::before,
  h2::after,
  h3::before,
  h3::after {
    content: unset !important;
  }

  h2 {
    font-size: 30px !important;
  }

  .widget_nav_menu {
    margin-top: 20px;
  }
}

/* --------------------
メニュー一覧のレイアウト調整
-------------------- */
@media (min-width:768px) {

  /* 4つ並びの行（flexの親） */
  .l-footer-widget-area > .c-row {
    display: flex;
    flex-wrap: nowrap;
    border-bottom: solid 1px #ffffff;
  }

  /* 共通：Snow Monkeyのカラム幅制限を解除（重要） */
  .l-footer-widget-area > .c-row > .l-footer-widget-area__item {
    max-width: none;
  }

  /* 1つ目：残り幅を全部使う */
  .l-footer-widget-area > .c-row > .l-footer-widget-area__item:first-child {
    flex: 1 1 auto;
  }

  /* 2〜4つ目：200px固定 */
  .l-footer-widget-area > .c-row > .l-footer-widget-area__item:not(:first-child) {
    flex: 0 0 220px !important;
  }
}


/**************************************************
アーカイブページ
**************************************************/
.c-entry-summary {
  margin-bottom: 40px;
}

.c-entry-summary__figure {
  border-radius: 16px;
}

.c-entry-summary__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.c-entry-summary__content {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c-entry-summary__meta {
  display: unset;
}

.c-entry-summary__meta .c-meta {
  justify-content: space-between;
  margin-top: 20px;
}



/**************************************************
サイド：人気記事ランキング
**************************************************/
body.archive .l-contents__sidebar {
  padding-top: 10px;
}

.l-contents__sidebar {
  .wpaw-ranking {
    margin-top: 40px;
  }

  .wpaw-ranking__item,
  .wpaw-ranking__figure {
    border-radius: 8px;
    overflow: hidden;
  }

  .wpaw-term {
    padding: 0 4px;
    font-size: 12px;
    border: solid 1px var(--accent-color);
    background-color: unset;
    color: var(--accent-color);
  }

  .wpaw-ranking__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wpaw-ranking__date {
    display: none;
  }
}


/**************************************************
記事詳細ページ
**************************************************/
/* サイドバーを非表示 */
.c-page-header,
body.single .l-contents__sidebar {
  display: none;
}

/* 記事の横幅を制限 */
body.single {
  .l-contents__inner {
    max-width: 960px;
  }
}


/* 見出しのデザイン */
body.single {

  /* h3 */
  h3.wp-block-heading {
    display: flex;
    align-items: center;
    gap: 20px !important;
    border-bottom: none;
  }

  h3.wp-block-heading::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--wp--preset--color--sm-sub-accent);
    flex: 1;
  }

  /* ｈ4 */
  h4.wp-block-heading {
    border-left: solid 4px var(--wp--preset--color--sm-sub-accent);
    padding-left: 0.5em;

  }


}

/**************************************************
パンくずリスト調整
**************************************************/
.p-breadcrumbs-wrapper {
  padding-top: 20px !important;
}


/**************************************************
お問い合わせフォーム
**************************************************/
.snow-monkey-form {

  .smf-button-control__control[data-action="confirm"],
  .smf-button-control__control[data-action="complete"] {
    color: #fff;
    border: solid 1px var(--wp--preset--color--sm-accent);
    background: var(--wp--preset--color--sm-accent) !important;
  }

  .smf-button-control__control[data-action="back"] {
    color: var(--wp--preset--color--sm-accent);
    border: solid 1px var(--wp--preset--color--sm-accent);
    background: #fff !important;
  }
}

.snow-monkey-form:not([data-screen="confirm"]) .smf-item:has([data-validations*="required"]) .smf-item__label__text::after {
  content: "必須";
  color: #fff;
  background: #bc3420;
  font-size: 12px;
  margin-left: 8px;
  padding: 2px 6px;
  border-radius: 3px;
}

.smf-complete-content .wp-block-heading{
	margin-top:80px;
	text-align:center;
}


/**************************************************
固定ページ：共通設定
**************************************************/
body.page:not(:where(.pickup)) {
  .c-entry__header {
    margin-bottom: 0;
  }

  .c-entry__title {
    text-align: center;
    font-size: 1rem;
  }
}

/**************************************************
固定ページ：トップページ
**************************************************/
/* テーマのスタイルを調整 */
.p-section-front-page-content {
  padding-top: unset !important;
}

.p-section-front-page-content h2 {
  padding-top: unset !important;
}


/* トップページ全体 */
body.home {
  .l-contents__body {
    background-color: #fafafa;
  }
}


/* スライダー */
.top-slider {
  padding-top: 40px !important;
}

.top-slider {
  .spider {
    border-radius: 16px;
    overflow: hidden;
  }

  .smb-spider-pickup-slider__item__meta {
    display: none;
  }

  .smb-spider-pickup-slider__item__title {
    font-size: clamp(16px, 2.8vw, 28px);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }


  /* 記事一覧へリンク */
  > p {
    margin-top: 10px;
    padding-right: 5px;
  }

  > p a {
    text-decoration: none;
  }
}




/* ジャンルから探す */
.top-genre {
  background-color: #ffffff;
  margin-inline: calc(50% - 50vw) !important;
  padding-inline: calc(50vw - 50%) !important;
  width: 100vw;
  padding-block: 40px;
}

.top-genre {
  .smb-items__banner {
    border-radius: 16px;
  }

  .smb-items__banner__body {
    justify-content: center !important;
  }

  .smb-items__banner__title {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
}

@media (max-width:767px) {
  .top-genre {
    .c-row {
      --_item-width: 50%;
    }

    .c-row__col {
      padding: 5px;
      margin-bottom: 5px;
    }

    .smb-items__banner__body-inner {
      text-align: center;
    }

    .smb-items__banner__title {
      font-size: 16px;
    }

    .smb-items__banner__lede {
      margin-top: 0;
    }
  }
}



/* 新着記事 */
.top-post {
  .c-entry-summary {
    margin-bottom: 20px;
  }

  .smb-buttons {
    margin-top: 40px;
  }
}


/**************************************************
固定ページ：ランキング
**************************************************/
body.ranking {

  .popular-ranking-title {
    display: none;
  }

  .wpaw-posts-list__item:not(:first-child) {
    margin-top: 40px;
  }

  .wpaw-ranking__item:before {
    font-size: 20px;
    width: 40px;
    height: 40px;
  }

  .wpaw-ranking__item a:hover {
    text-decoration: none;

  }

  .wpaw-ranking__item:nth-child(1) .wpaw-ranking__figure,
  .wpaw-ranking__item:nth-child(2) .wpaw-ranking__figure,
  .wpaw-ranking__item:nth-child(3) .wpaw-ranking__figure {
    width: 40%;
  }

  .wpaw-ranking__figure {
    width: 20%;
    height: unset;
    aspect-ratio: 3/2 !important;
    border-radius: 16px;
    overflow: hidden;
  }

  @media (max-width:767px) {

    .wpaw-ranking__item:nth-child(1) > a,
    .wpaw-ranking__item:nth-child(2) > a,
    .wpaw-ranking__item:nth-child(3) > a {
      flex-direction: column;
      gap: 1em;
    }

    .wpaw-ranking__item:nth-child(1) .wpaw-ranking__figure,
    .wpaw-ranking__item:nth-child(2) .wpaw-ranking__figure,
    .wpaw-ranking__item:nth-child(3) .wpaw-ranking__figure {
      width: 100%;
    }

    .wpaw-ranking__figure {
      width: 40%;
    }
  }

  .wpaw-ranking__figure > img:first-child {
    display: block;
    aspect-ratio: 3/2 !important;
    width: 100%;
    height: 100% !important;
    position: relative;
  }

  .wpaw-ranking__title {
    font-size: clamp(14px, 1.38vw, 20px);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .wpaw-posts-list__date {
    margin-top: unset;
  }
}


/**************************************************
固定ページ：特集記事一覧
**************************************************/
body.pickup {
  .c-entries--simple {
    border-top: none;
  }

  .c-entries--simple .c-entries__item {
    border-top: none;
    border-bottom: none;
  }

  .c-entries--simple .c-entry-summary__figure {
    width: 100%;
    float: unset;
    margin-bottom: 40px;
    aspect-ratio: 16 / 9;
  }

  .c-entry-summary__content {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}


/**************************************************
固定ページ：ライター・編集部紹介
**************************************************/
body.writer {
  .writer-list {
    gap: 100px 60px;
  }

  .writer-item {

    /* 右側 */
    .wp-block-columns .wp-block-column:last-child {

      p {
        margin-top: 1em !important;
      }

      .wp-block-heading {
        margin-bottom: unset !important;
        padding-bottom: unset !important;
        font-size: 1.14rem;
      }

      .wp-block-heading::before {
        content: "Name";
        color: var(--_light-color-gray);
        margin-right: 1em;
        font-size: 0.8rem;
      }

      .wp-block-buttons {
        margin-top: 1em !important;
      }

      .wp-block-button__link {
        font-size: 14px !important;
      }
    }
  }

  .writer-chief .writer-item {

    /* 左側 */
    .wp-block-columns .wp-block-column:first-child {
      figure {
        /* border: solid 3px var(--wp--preset--color--sm-sub-accent); */
      }

      img {
        width: 100%;
        height: auto;
        object-fit: cover;
      }
    }
  }

  .writer-our .writer-item {

    /* 左側 */
    .wp-block-columns .wp-block-column:first-child {
      figure {
        aspect-ratio: 1 / 1 !important;
        border-radius: calc(1px * infinity);
        overflow: hidden;
        /* border: solid 3px var(--wp--preset--color--sm-sub-accent); */
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  .writer-chief > .wp-block-heading,
  .writer-our > .wp-block-heading {
    margin-bottom: 1em;
    border-left: solid 1px var(--wp--preset--color--sm-sub-accent) !important;
    padding-left: 0.5em !important;
    line-height: 1;
  }

  @media (max-width:767px) {

    .writer-chief .wp-block-button,
    .writer-our .wp-block-button {
      width: 100%;
    }

    .writer-our .smb-grid {
      --smb-grid--columns: 1 !important;
    }

    .writer-our .writer-item {
      .wp-block-columns .wp-block-column:first-child figure {
        max-width: 180px !important;
      }
    }
  }
}


/**************************************************
固定ページ：バッカンテについて
**************************************************/
body.about {
  .about-vision > div:first-child {
    background-color: #fff;
    width: fit-content;
    padding-inline: 1em;
    margin-top: -0.75em;
  }

  .about-promise {
    /* background: color-mix(in oklab, var(--wp--preset--color--sm-accent) 20%, transparent) !important; */
  }

  .about-values {
    @media (max-width:767px) {
      .wp-block-group:has(.wp-block-heading) {
        flex-direction: column;
        gap: 0 !important;
      }

      > .smb-grid {
        --smb-grid--columns: 1 !important;
      }
    }
  }

  .about-history {}
}