/**
 * My Snow Monkey — メインスタイル
 * テーブルのデバイス別横スクロールは render_block が出力するインライン style で付与します。
 */

html {
  /* スムーズスクロールを有効にする */
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

.c-page-header[data-has-image="true"] {
  height: clamp(200px, 62.5vw, 300px);
}

.l-header .l-2row-header__row {
  padding-right: 20px;
  padding-left: 20px;
}
.l-header .l-2row-header__row.u-invisible-md-down {
  padding: 0;
  color: #fff;
  background-color: var(--sub-accent-color);
}
.l-header .l-2row-header__row.u-invisible-md-down .p-global-nav {
  max-width: 1000px;
  margin: auto;
}

.l-header .l-2row-header__row.u-invisible-md-down .p-global-nav .c-navbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.l-header .l-2row-header__row.u-invisible-md-down .p-global-nav .menu-item {
  border-right: 1px solid #fff;
}
.l-header
  .l-2row-header__row.u-invisible-md-down
  .p-global-nav
  .menu-item:first-child {
  border-left: 1px solid #fff;
}

.l-2row-header .p-global-nav .c-navbar__item > a {
  padding: 10px;
}

/* メニュー Font Awesome アイコン（msm-menu-item-fa-classes） */
.p-global-nav .c-navbar__item > a .fa-fw,
.p-global-nav .c-navbar__item > a [class*="fa-"] {
  margin-right: 0.35em;
}

/* カスタマイザー：ヘッダー電話・CTA・SNS（.l-2row-header__row 内 .c-row） */
.msm-header-extras__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}
.msm-header-extras__phone-partial {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.msm-header-extras__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.msm-header-extras__phone:hover,
.msm-header-extras__phone:focus {
  text-decoration: none;
}
.msm-header-extras__phone-iconbox {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}
.msm-header-extras__phone-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.15em;
  line-height: 1.25;
  text-align: left;
}
.msm-header-extras__phone-number--fluid {
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
}
.msm-header-extras__phone-sub {
  display: block;
  line-height: 1.3;
}
.msm-header-extras__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  background-color: var(--accent-color, #2e7d32);
  color: #fff;
}
.msm-header-extras__cta:hover,
.msm-header-extras__cta:focus {
  color: #fff;
  opacity: 0.92;
}
.msm-header-extras__cta-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-sizing: border-box;
}
/* アイコンの色・サイズはカスタマイザーでインライン指定（未設定時は文字に追随） */
.msm-header-extras__cta-icon i {
  line-height: 1;
}
.msm-header-extras__sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.msm-header-extras__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  border-radius: var(--msm-sns-radius, 50%);
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
}
.msm-header-extras__sns-item--line .msm-header-extras__sns-link {
  background: #06c755;
}
.msm-header-extras__sns-item--instagram .msm-header-extras__sns-link {
  background: linear-gradient(145deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
}
.msm-header-extras__sns-item--x .msm-header-extras__sns-link {
  background: #000;
}
.msm-header-extras__sns-item--youtube .msm-header-extras__sns-link {
  background: #f00;
}
.msm-header-extras__sns-item--facebook .msm-header-extras__sns-link {
  background: #1877f2;
}

/* --------------------------------------------------------------------------
   カスタムフッター（メニュー位置「フッター」／msm-footer）
   -------------------------------------------------------------------------- */

.l-footer .msm-footer-mega {
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  background-color: var(--msm-footer-mega-bg, #4a4a4a);
  color: #fff;
  padding: clamp(1.75rem, 4vw, 3rem) 0 2rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  overflow: visible;
  position: relative;
  z-index: 0;
}

.msm-footer-mega a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.msm-footer-mega a:hover,
.msm-footer-mega a:focus {
  opacity: 0.85;
  text-decoration: underline;
}

.msm-footer-mega__inner {
  position: relative;
}

.msm-footer-mega__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.msm-footer-mega__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.msm-footer-mega__logo .msm-footer-mega__logo-img {
  display: block;
  max-height: 52px;
  width: auto;
  height: auto;
}

.msm-footer-mega__taglines {
  flex: 1 1 200px;
  min-width: 0;
}

.msm-footer-mega__tagline {
  margin: 0.1em 0 0;
}

.msm-footer-mega__tagline--1 {
  font-size: 1.05em;
  font-weight: 700;
}

.msm-footer-mega__tagline--3 {
  font-weight: 600;
}

.msm-footer-mega__sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msm-footer-mega__sns--pc {
  justify-content: flex-end;
  flex: 0 0 auto;
}

.msm-footer-mega__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--msm-sns-radius, 50%);
  color: #fff;
  text-decoration: none;
}

.msm-footer-mega__sns-item--line .msm-footer-mega__sns-link {
  background: #06c755;
}
.msm-footer-mega__sns-item--instagram .msm-footer-mega__sns-link {
  background: linear-gradient(145deg, #f58529 0%, #dd2a7b 55%, #8134af 100%);
}
.msm-footer-mega__sns-item--x .msm-footer-mega__sns-link {
  background: #000;
}
.msm-footer-mega__sns-item--youtube .msm-footer-mega__sns-link {
  background: #f00;
}
.msm-footer-mega__sns-item--facebook .msm-footer-mega__sns-link {
  background: #1877f2;
}

.msm-footer-mega__sns-block {
  display: none;
  text-align: center;
  padding: 1.35rem 1rem 1.5rem;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  box-sizing: border-box;
  background: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 6px,
    transparent 6px,
    transparent 12px
  );
  background-color: var(--msm-footer-mega-bg, #4a4a4a);
}

.msm-footer-mega__sns-lead {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.msm-footer-mega__sns--mobile .msm-footer-mega__sns-link {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.35rem;
}

/* カスタマイズプレビュー専用（core の partial ショートカットをヘッダー行左に配置） */
.msm-footer-mega
  .msm-footer-mega__partial-edit-shortcut.customize-partial-edit-shortcut {
  position: relative;
  float: none;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0.15rem 0 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  flex-shrink: 0;
  z-index: 5;
}

.msm-footer-mega
  .msm-footer-mega__partial-edit-shortcut.customize-partial-edit-shortcut
  .customize-partial-edit-shortcut-button {
  position: relative;
  left: auto;
  top: auto;
  opacity: 1 !important;
  pointer-events: auto !important;
  animation: none !important;
  visibility: visible !important;
}

.msm-footer-mega__nav {
  margin-top: 0.25rem;
}

/* 1段メニュー（子項目なし）：グリッドでリンク一覧 */
.msm-footer-mega__flat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22.222%, 1fr));
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.msm-footer-mega__flat-list > .menu-item {
  margin: 0;
}

.msm-footer-mega__flat-list a {
  display: block;
  padding: 0.25em 0;
}

.msm-footer-mega__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22.222%, 1fr));
  gap: 10px;
  align-items: start;
}

/*
 * 商品カテゴリ「分割」ブロック: PC は __desktop-cols 内のカラムがグリッド行に並ぶ。
 * スマホでは __desktop-cols を隠し、親1アコ＋子リンク一覧のみ表示。
 */
.msm-footer-product-cat-split {
  display: contents;
}

.msm-footer-col__title-desktop {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  text-decoration: none;
}

.msm-footer-col__title-desktop-inner {
  display: inline-block;
}

.msm-footer-col__panel {
  display: block;
  padding-top: 0.35rem;
}

.msm-footer-col__panel--empty {
  display: none !important;
}

.msm-footer-col__list,
.msm-footer-col__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media screen and (max-width: 639px) {
  .msm-footer-col__list {
    margin-top: 10px;
  }
}

.msm-footer-col__list > .msm-footer-col__item,
.msm-footer-col__sublist > .msm-footer-col__subitem {
  margin: 0 0 0.45em;
}

.msm-footer-col__group {
  margin: 0 0 1rem;
  list-style: none;
}

.msm-footer-col__group:last-child {
  margin-bottom: 0;
}

.msm-footer-col__subhead {
  display: block;
  font-weight: 700;
  font-size: 0.95em;
  margin: 0 0 0.4em;
  color: #fff;
  text-decoration: none;
}

.msm-footer-col__subhead:hover,
.msm-footer-col__subhead:focus {
  text-decoration: underline;
}

.msm-footer-col__sublist {
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}

.msm-footer-col__sublist .msm-footer-col__subitem:last-child {
  margin-bottom: 0;
}

/* スマホで開閉するグループ（.msm-footer-col__group--accordion） */
.msm-footer-col__group--accordion {
  margin-bottom: 0.65rem;
}

.msm-footer-col__group--accordion:last-child {
  margin-bottom: 0;
}

.msm-footer-accordion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}

.msm-footer-accordion__label {
  flex: 1 1 auto;
  min-width: 0;
}

.msm-footer-accordion__icon {
  flex-shrink: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
}

.msm-footer-accordion__panel {
  display: block;
}

@media screen and (min-width: 768px) {
  .msm-footer-mega__sns-block {
    display: none !important;
  }

  .msm-footer-mega__sns--mobile {
    display: none !important;
  }

  .msm-footer-mega__top {
    flex-wrap: nowrap;
  }

  .msm-footer-mega__taglines {
    padding-inline: 1rem;
  }

  .msm-footer-col__title-desktop {
    display: block;
  }

  .msm-footer-col__panel {
    display: block !important;
    padding-top: 0;
  }

  /* 商品カテゴリ分割: PC は子カラムだけグリッド参加。スマホ用ラップは非表示 */
  .msm-footer-product-cat-split {
    display: contents;
  }

  .msm-footer-col--product-cat-mobile-wrap {
    display: none !important;
  }

  .msm-footer-product-cat-split__desktop-cols {
    display: contents;
  }

  .msm-footer-accordion {
    display: block;
    pointer-events: none;
    cursor: default;
    border: none;
    padding: 0;
    margin: 0 0 0.4em;
    font-weight: 700;
    font-size: 0.95em;
    color: #fff;
  }

  .msm-footer-accordion__icon {
    display: none !important;
  }

  .msm-footer-accordion__panel {
    display: block !important;
  }
}

@media screen and (max-width: 767px) {
  .msm-footer-mega__sns--pc {
    display: none !important;
  }

  .msm-footer-mega__inner {
    display: flex;
    flex-direction: column;
  }

  .msm-footer-mega__sns-block {
    display: block;
    order: 1;
  }

  .msm-footer-mega__head {
    order: 2;
    width: 100%;
  }

  .msm-footer-mega__top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .msm-footer-mega__taglines {
    flex: none;
    width: 100%;
  }

  .msm-footer-mega__nav {
    order: 3;
    margin-top: 0.15rem;
  }

  .msm-footer-mega--flat .msm-footer-mega__flat-list {
    grid-template-columns: 1fr;
  }

  .msm-footer-mega__columns {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .msm-footer-product-cat-split {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .msm-footer-product-cat-split__desktop-cols {
    display: none !important;
  }

  .msm-footer-col--product-cat-mobile-wrap {
    order: -1;
  }

  /* カラムは常に展開。アコーディオン付きパネルは除外 */
  .msm-footer-col__title-desktop {
    display: block !important;
  }

  .msm-footer-col__panel:not(.msm-footer-col__panel--empty):not(
      .msm-footer-accordion__panel
    ) {
    display: block !important;
    padding: 0 0.25rem 0.85rem 0.25rem;
  }

  /* 商品カテゴリサイド: 親見出し1本＋子リンク一覧（スマホ） */
  .msm-footer-col--product-cat-mobile-wrap
    .msm-footer-col__panel.msm-footer-accordion__panel:not(.is-open) {
    display: none !important;
  }

  .msm-footer-col--product-cat-mobile-wrap
    .msm-footer-col__panel.msm-footer-accordion__panel.is-open {
    display: block !important;
    padding: 0 0.35rem 0.85rem 0.35rem;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    border-top: none;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
  }

  .msm-footer-col--product-cat-mobile-wrap .msm-footer-accordion {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .msm-footer-col--product-cat-mobile-wrap
    .msm-footer-col__list
    > .msm-footer-col__item
    > a {
    display: block;
    padding: 0.35em 0 0.35em 0.35em;
  }

  .msm-footer-col--product-cat-mobile-wrap
    .msm-footer-col__list
    > .msm-footer-col__item
    > a::before {
    content: ">";
    display: inline-block;
    margin-right: 0.4em;
    opacity: 0.95;
    font-weight: 400;
  }

  .msm-footer-col__group--accordion .msm-footer-accordion__panel:not(.is-open) {
    display: none !important;
  }

  .msm-footer-col__group--accordion .msm-footer-accordion__panel.is-open {
    display: block !important;
    padding: 0.35rem 0.35rem 0.65rem 0.35rem;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.85);
    border-top: none;
  }

  .msm-footer-col__group--accordion .msm-footer-accordion {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .msm-footer-col__group--accordion .msm-footer-accordion__panel.is-open {
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
  }

  .msm-footer-col__group--accordion
    .msm-footer-col__sublist
    > .msm-footer-col__subitem
    > a {
    display: block;
    padding: 0.35em 0 0.35em 0.35em;
  }

  .msm-footer-col__group--accordion
    .msm-footer-col__sublist
    > .msm-footer-col__subitem
    > a::before {
    content: ">";
    display: inline-block;
    margin-right: 0.4em;
    opacity: 0.95;
    font-weight: 400;
  }
}

/* フッター著作権バー：左コピーライト・右追加リンク（PC を基準） */
.msm-footer-copyright-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem 1.5rem;
}

.msm-footer-copyright-bar__left {
  flex: 0 1 auto;
  min-width: 0;
}

.msm-footer-copyright-bar__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.15em;
}

.c-copyright--inverse .msm-footer-copyright-bar__right a {
  color: inherit;
  text-decoration: underline;
}

.c-copyright--inverse .msm-footer-copyright-bar__right a:hover,
.c-copyright--inverse .msm-footer-copyright-bar__right a:focus {
  text-decoration: underline;
  opacity: 0.9;
}

@media screen and (max-width: 767px) {
  .msm-footer-copyright-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .msm-footer-copyright-bar__right {
    align-items: flex-start;
    text-align: left;
  }
}

/* お知らせバー：本文と SNS／電話（My Snow Monkey） */
.msm-infobar__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.msm-infobar__content-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

a.msm-infobar__content-link {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

a.msm-infobar__content-link:hover,
a.msm-infobar__content-link:focus {
  opacity: 0.92;
}

.msm-infobar__extras {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  flex: 0 0 auto;
}

.msm-infobar__sns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.msm-infobar__sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  color: inherit;
  font-size: var(--msm-infobar-sns-icon-size, inherit);
  font-weight: var(--msm-infobar-sns-font-weight, inherit);
}

.msm-infobar__sns-link:hover,
.msm-infobar__sns-link:focus {
  opacity: 0.85;
}

.msm-infobar__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
}

.msm-infobar__phone-icon {
  flex-shrink: 0;
  font-size: var(--msm-infobar-phone-icon-size, 1em);
  color: var(--msm-infobar-phone-icon-color, inherit);
}

.msm-infobar__phone-text {
  font-size: var(--msm-infobar-phone-font-size, inherit);
  font-weight: var(--msm-infobar-phone-font-weight, inherit);
  color: var(--msm-infobar-phone-text-color, inherit);
}

@media screen and (max-width: 639px) {
  .msm-infobar__extras {
    width: 100%;
    justify-content: flex-start;
  }
}

/* お知らせバー：スクロールで非表示（JS が body に msm-infobar-scroll-hide-enabled を付与） */
body.msm-infobar-scroll-hide-enabled .p-infobar-wrapper {
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

body.msm-infobar-scroll-hide-enabled
  .p-infobar-wrapper.msm-infobar-wrapper--scroll-hidden {
  opacity: 0;
  transform: translateY(-0.5rem);
  margin-top: var(--msm-infobar-collapse, 0px);
  pointer-events: none;
}

.c-meta__item--author {
  display: none !important;
}

.c-drawer a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
}

.nav-contact {
  align-items: center;
}
.nav-contact a {
  height: fit-content;
}

.msm-infobar__phone,
.msm-infobar__sns-item {
  display: flex;
  align-items: center;
}

@media (max-width: 639px) {
  .wp-block-snow-monkey-blocks-media-text {
    width: 100%;
  }
  [data-msm-rfs="msm-rfs-10"] .smb-media-text__figure {
    width: 100%;
  }
}

.l-contents__inner {
	margin-top: 0;
}