@charset "UTF-8";

/**
 * GASGASエネルギー 基本スタイル
 * 全ページ共通のスタイルを定義
 */

/* ==============================
 * カスタムプロパティ（変数）
 * ============================== */

:root {
  /* レイアウト変数 */
  --header-width: clamp(13.75rem, 11rem + 13.75vw, 27.5rem);
  --header-width-mobile: 100%;
  --header-height: 5rem; /* 80px */
  --header-height-mobile: 3.75rem; /* 60px */
  --footer-min-height: 3.5em;
  --content-width: 40rem; /* 640px */
  --content-wide-width: 45rem; /* 720px */
  --container-gutter: clamp(0.75rem, -0.35rem + 5.5vw, 6.25rem);
  --container-width: calc(var(--content-width) + (var(--container-gutter) * 2));
  --container-wide-width: calc(var(--content-wide-width) + (var(--container-gutter) * 2));
  --scroll-margin-top: calc(var(--header-height));

  /* ブレイクポイント */
  --breakpoint-mobile: 600px;
  --breakpoint-tablet: 960px;

  /* フォントサイズ変数 */
  --scale-start: 1920; /* スケーリング開始ポイント */
  --font-min: 16px; /* 最小フォントサイズ */
  --font-max: 24px; /* 最大フォントサイズ */
  --scale-factor: calc(100vw / var(--scale-start) * 16);
  --line-height: 1.6;
  --tracking: 0;

  /* カラー変数 */
  --color-black: #000;
  --color-white: #fff;
  --color-accent: #dd3333;
  --color-bg-light: #f5f5f5;
  --color-text: #333;
  --color-text-light: #fff;
  --color-border: #ddd;
  --color-link: #333333;
  --color-gray: #eeeeec;
  --color-brand: #e65353;

  /* カテゴリーカラー */
  --color-lifestyle: #00a8eb;
  --color-appliance: #fac100;
  --color-housing: #009b68;
  /*--color-carlife: #b99131;*/
  --color-carlife: #000;
  --color-foodsafety: #ea68a2;

  /* フォント変数 */
  --font-gothic: "Noto Sans JP";
  --font-serif: "Noto Serif JP";
  --font-base-family: var(--font-gothic);

  /* z-index変数 */
  --index-global-menu: 90;
  --index-header: 100;
  --index-sticky-entry: 100;
  --index-overlay: 200;
  --index-fixed-element: 250;
  --index-modal: 900;
  --index-loading-screen: 1000;

  /* セーフエリア変数 */
  --env-safe-area-inset-top: env(safe-area-inset-top, 0);
  --env-safe-area-inset-right: env(safe-area-inset-right, 0);
  --env-safe-area-inset-bottom: env(safe-area-inset-bottom, 0);
  --env-safe-area-inset-left: env(safe-area-inset-left, 0);
}

/*
流体フォントサイズ
@link https://utopia.fyi/type/calculator?c=320,15,1.2,1920,16,1.2,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12
*/
:root {
  /* Step -2: 10.4167px → 11.1111px */
  --step--2: clamp(0.651rem, 0.6424rem + 0.0434vw, 0.6944rem);
  /* Step -1: 12.5px → 13.3333px */
  --step--1: clamp(0.7813rem, 0.7708rem + 0.0521vw, 0.8333rem);
  /* Step 0: 15px → 16px */
  --step-0: clamp(0.9375rem, 0.925rem + 0.0625vw, 1rem);
  /* Step 1: 18px → 19.2px */
  --step-1: clamp(1.125rem, 1.11rem + 0.075vw, 1.2rem);
  /* Step 2: 21.6px → 23.04px */
  --step-2: clamp(1.35rem, 1.332rem + 0.09vw, 1.44rem);
  /* Step 3: 25.92px → 27.648px */
  --step-3: clamp(1.62rem, 1.5984rem + 0.108vw, 1.728rem);
  /* Step 4: 31.104px → 33.1776px */
  --step-4: clamp(1.944rem, 1.9181rem + 0.1296vw, 2.0736rem);
  /* Step 5: 37.3248px → 39.8131px */
  --step-5: clamp(2.3328rem, 2.3017rem + 0.1555vw, 2.4883rem);
}

/*
スペース（余白）
@link https://utopia.fyi/space/calculator?c=320,15,1.2,1920,16,1.2,5,2,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12
*/
:root {
  /* Space 3xs: 4px → 4px */
  --space-3xs: clamp(0.25rem, 0.25rem + 0vw, 0.25rem);
  /* Space 2xs: 8px → 8px */
  --space-2xs: clamp(0.5rem, 0.5rem + 0vw, 0.5rem);
  /* Space xs: 11px → 12px */
  --space-xs: clamp(0.6875rem, 0.675rem + 0.0625vw, 0.75rem);
  /* Space s: 15px → 16px */
  --space-s: clamp(0.9375rem, 0.925rem + 0.0625vw, 1rem);
  /* Space m: 23px → 24px */
  --space-m: clamp(1.4375rem, 1.425rem + 0.0625vw, 1.5rem);
  /* Space l: 30px → 32px */
  --space-l: clamp(1.875rem, 1.85rem + 0.125vw, 2rem);
  /* Space xl: 45px → 48px */
  --space-xl: clamp(2.8125rem, 2.775rem + 0.1875vw, 3rem);
  /* Space 2xl: 60px → 64px */
  --space-2xl: clamp(3.75rem, 3.7rem + 0.25vw, 4rem);
  /* Space 3xl: 90px → 96px */
  --space-3xl: clamp(5.625rem, 5.55rem + 0.375vw, 6rem);

  /* One-up pairs */
  /* Space 3xs-2xs: 4px → 8px */
  --space-3xs-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  /* Space 2xs-xs: 8px → 12px */
  --space-2xs-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  /* Space xs-s: 11px → 16px */
  --space-xs-s: clamp(0.6875rem, 0.625rem + 0.3125vw, 1rem);
  /* Space s-m: 15px → 24px */
  --space-s-m: clamp(0.9375rem, 0.825rem + 0.5625vw, 1.5rem);
  /* Space m-l: 23px → 32px */
  --space-m-l: clamp(1.4375rem, 1.325rem + 0.5625vw, 2rem);
  /* Space l-xl: 30px → 48px */
  --space-l-xl: clamp(1.875rem, 1.65rem + 1.125vw, 3rem);
  /* Space xl-2xl: 45px → 64px */
  --space-xl-2xl: clamp(2.8125rem, 2.575rem + 1.1875vw, 4rem);
  /* Space 2xl-3xl: 60px → 96px */
  --space-2xl-3xl: clamp(3.75rem, 3.3rem + 2.25vw, 6rem);

  /* Custom pairs */
  /* Space s-l: 15px → 32px */
  --space-s-l: clamp(0.9375rem, 0.725rem + 1.0625vw, 2rem);
}

/* グリッド */
:root {
  --grid-max-width: 62.00rem;
  --grid-gutter: var(--space-s-l, clamp(0.9375rem, 0.4315rem + 2.5298vw, 2rem));
  --grid-columns: 12;
}

.u-container {
  max-width: var(--grid-max-width);
  padding-inline: var(--grid-gutter);
  margin-inline: auto;
}

.u-grid {
  display: grid;
  gap: var(--grid-gutter);
}

/* タブレット以上のブレイクポイント */
@media screen and (960px <= width) {
  :root {
    --content-width: 61.875rem; /* 990px */
    --content-wide-width: 82.625rem; /* 1322px */
    --header-height: 6.25rem; /* 100px */
  }
}

/* ==============================
 * ベーススタイル
 * ============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed;
  }
}

html,
body {
  width: 100%;
  height: auto;
  min-height: 100vh;
  /* モバイルブラウザでの100vhの問題に対応するための代替高さ設定 */
  min-height: calc((var(--vh, 1vh) * 100) - var(--wp-admin--admin-bar--height, 0px));
}

html {
  line-height: var(--line-height);
  touch-action: manipulation;
  cursor: auto;
  visibility: visible;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /*font-size: clamp(var(--font-min), var(--scale-factor), var(--font-max));*/
  font-size: 16px;
}

html.wf-active {
  visibility: visible;
}

html.is-drawer-open {
  overflow: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-base-family), sans-serif !important;
  color: var(--color-text);
  line-height: var(--line-height);
  margin: 0;
  padding: 0;
  background-color: var(--color-white);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

@media (hover: hover) {
  a {
    color: var(--color-accent);
    transition: opacity .3s ease-in-out;
  }
  a:hover {
    opacity: .7;
  }

  #wpadminbar a:hover {
    color: #72aee6 !important;
  }
}

/* 見出しスタイル */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: bold;
  margin-bottom: .5em;
}

/* 段落スタイル */
p {
  font-family: var(--font-gothic), sans-serif;
  margin-top: 0;
  margin-bottom: 1rem;
}

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

/* 画像最適化プラグインによる遅延ロード時、フェードイン表示 */
img[data-eio-rwidth] {
  opacity: 0;
  transition: opacity .3s ease-in-out;
}

img[data-eio-rwidth].lazyloaded {
  opacity: 1;
}

/* ==============================
 * レイアウト構造
 * ============================== */
body.page-template-template-home .site-main-nav {
  order: 1;
}

body.page-template-template-home .home-search {
  order: 2;
}

body.page-template-template-home .site-main-content {
  order: 4;
}

body.page-template-template-home .home-banner {
  order: 3;
}

.site-wrapper {
  display: grid;
  grid-template-columns: var(--header-width) 1fr;
  min-height: 100vh;
  /* モバイルブラウザでの100vhの問題に対応するための代替高さ設定 */
  min-height: calc((var(--vh, 1vh) * 100) - var(--wp-admin--admin-bar--height, 0px));
  grid-template-rows: 1fr var(--footer-min-height);
}

/* ヘッダー（左固定） */
.site-header {
  background-color: var(--color-gray);
  left: 0;
  width: var(--header-width);
  display: flex;
  flex-direction: column;
  z-index: var(--index-header);
}

.site-header__inner {
  position: sticky;
  top: var(--follow-area-top, 0px);
  bottom: var(--follow-area-bottom, 0px);
  /*padding-bottom: calc(var(--space-s));*/
  padding: var(--space-xl);
}

.site-header__logo {
  margin-bottom: var(--space-m);
  text-align: center;
}

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

.site-header__tagline {
  font-size: var(--step--1);
  margin-top: var(--space-3xs);
  color: var(--color-text);
  text-align: center;
}

.site-header__nav {
  margin-bottom: var(--space-m);

}

.site-header__nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header__nav-item a {
  padding: var(--space-s);
  color: var(--color-text);
  background-color: #fff;
  border-radius: 1.25rem;
  display: block;
  font-weight: bold;
  text-align: center;
  font-size: var(--step-1);
  border: solid .0625rem var(--color-brand);
}

.site-header__nav-item.current-menu-item a {
  background-color: var(--color-brand);
  color: #fff;
}

/*.site-header__nav-item--top {*/
/*  background-color: #e65353;*/
/*  color: #fff;*/
/*  border-color: transparent;*/
/*}*/

@media (hover: hover) {
  .site-header__nav-item a {
    transition: color .1s ease-in-out, background-color .1s ease-in-out;
  }
  .site-header__nav-item a:hover {
    background-color: var(--color-brand);
    color: #fff;
    opacity: 1;
    text-decoration: none;
    /*border-color: transparent;*/
  }

  /*.site-header__nav-item--top:hover {*/
  /*  background-color: #fff;*/
  /*  color: var(--color-brand);*/
  /*  opacity: 1;*/
  /*  text-decoration: none;*/
  /*}*/
}



.site-header__banner {
  margin: var(--space-m) 0;
}

.site-header__banner img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.site-header__social {
  display: flex;
  justify-content: center;
  gap: var(--space-s);
  margin-top: auto;
}

.site-header__social-item {
  font-size: 24px;
  color: #fff;
  background-color: #333;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* メインナビゲーション */
.site-main-nav {
  --hover-height: 0px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--color-white);
  overflow: hidden;
  gap: var(--space-xs);
}

@media (960px <= width) {
  .site-main-nav {
    --hover-height: .5rem;
    display: flex;
    align-items: flex-end;
    padding-top: 2rem;
    gap: 0;
  }
}

a.site-main-nav__item {
  --pad-block: clamp(0.75rem, 0.6rem + 0.75vw, 1.5rem);
  --border-bottom-size: clamp(0.5rem, 0.438rem + 0.31vw, 0.813rem);
  position: relative;
  padding: 0 0 calc(var(--pad-block) + var(--border-bottom-size));
  height: clamp(3.625rem, 3.1rem + 2.63vw, 6.25rem);
  text-align: center;
  cursor: pointer;
  flex: 1;
  transition: all 0.3s ease;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: var(--space-3xs);
}

.site-main-nav__item.site-main-nav__item--active > span {
  translate: 0 0;
  background: #eeeeec;
}

.site-main-nav__item.site-main-nav__item--active .site-main-nav__title {
  color: #333;
}

.site-main-nav__item::before {
  position: absolute;
  content: "";
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  border-bottom: var(--border-bottom-size) solid transparent;
}

.site-main-nav__item > span {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--hover-height) + 100%);
  translate: 0 var(--hover-height);
  background: #333;
  overflow: hidden;
  border-radius: .4rem;
}

/*@media (960px > width) {*/
/*  .site-main-nav__item:not(:nth-child(n+3)) > span {*/
/*    border-radius: 1.25rem 1.25rem 0 0;*/
/*  }*/
/*}*/

@media (960px > width) {
  .site-main-nav__item:first-child {
    grid-column: 1 / -1;
  }
}


@media (960px <= width) {
  .site-main-nav__item > span {
    border-radius: 1.25rem 1.25rem 0 0;
  }
}


.site-main-nav__item > span::after {
  position: absolute;
  content: '';
  display: inline-block;
  top: -180px;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #b5e7ff;
  /*transition: 300ms;*/
  animation: none;
}

@media (hover: hover) {
  .site-main-nav__item:hover {
    opacity: 1;
  }
  .site-main-nav__item:hover > span::after {
    /*animation: shinyshiny 2.5s ease-in-out 0s forwards;*/
  }

  .site-main-nav__item > span {
    overflow: hidden;
    transition:
      translate 0.1s ease-in-out,
      background 0.1s ease-in-out;
  }
  .site-main-nav__item:hover > span {
    translate: 0 0;
  }

  .site-main-nav__title {
    transition:
      color 0.1s ease-in-out;
  }

  .site-main-nav__item.site-main-nav__item--active:hover > span {
    background: #333;
  }

  .site-main-nav__item.site-main-nav__item--active:hover .site-main-nav__title {
    color: #fff;
  }

  .site-main-nav__item > span::before {
    position: absolute;
    content: "";
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    transform: skewX(-30deg);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
  }
  .site-main-nav__item:hover > span::before {
    animation: shine .25s linear;
  }

  @keyframes shine {
    100% {
      left: 100%;
    }
  }
}

/*@-webkit-keyframes shinyshiny {*/
/*  0% { -webkit-transform: scale(2) rotate(45deg); opacity: 0; }*/
/*  10% { -webkit-transform: scale(50) rotate(45deg); opacity: 1; }*/
/*  12% { -webkit-transform: scale(2) rotate(45deg); opacity: 0; }*/
/*  100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }*/
/*}*/

@media (960px > width) {
  .site-main-nav__item:nth-child(n+3) {
    border-radius: 0;
  }
}

.site-main-nav__item--life::before {
  border-bottom-color: var(--color-lifestyle);
}

.site-main-nav__item--appliance::before {
  border-bottom-color: var(--color-appliance);
}

.site-main-nav__item--house::before {
  border-bottom-color: var(--color-housing);
}

.site-main-nav__item--car::before {
  border-bottom-color: var(--color-carlife);
}

.site-main-nav__item--health::before {
  border-bottom-color: var(--color-foodsafety);
}

.site-main-nav__icon {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: clamp(2rem, 1.4rem + 3vw, 5rem);
  translate: 0 calc(-.3em + var(--pad-block));
}

@media (1500px > width) {
  .site-main-nav__icon {
    max-width: clamp(1.5rem, 1.2rem + 1.5vw, 3rem);
  }
}

.site-main-nav__icon img {
  position: absolute;
  left: 0;
  bottom: 0;
  aspect-ratio: 80 / 110;
}

a.site-main-nav__item .site-main-nav__title {
  margin: 0;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  font-weight: bold;
  position: relative;
  z-index: 1;
  line-height: 1.2;
  color: #fff;
}

.site-main-nav__item:nth-child(3) .site-main-nav__title {
  transform: translateY(.4em);
}

.site-main-nav__item:nth-child(5) .site-main-nav__title {
  transform: translateY(.4em);
}

@media (1500px > width) {
  .site-main-nav__title {
    font-size: 1rem;
  }
}

/* メインコンテンツエリア（右側） */
.site-content {
  display: grid;
  grid-column: 2;
  padding: var(--space-s-l) var(--space-s-l) var(--space-l);
  gap: var(--space-m);
  align-items: start;
  grid-auto-rows: min-content;
  margin: 0;
}

@media (960px <= width) {
  .site-content {
    padding-top: .5rem;
  }
}

/* フッター */
.site-footer {
  grid-column: 1 / -1;
}

@media (960px <= width) {
  .site-footer {
    grid-column: 1 / -1;
    z-index: calc(var(--index-header) + 1);
  }
}

.site-footer-main {
  background-color: #333;
  color: var(--color-white);
  padding: var(--space-s) var(--space-xl);
  min-height: var(--footer-min-height);
  display: flex;
  align-items: center;
}

.site-info {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  text-align: center;
}

.footer-contact {
  font-size: 14px;
}

.footer-copyright {
  text-align: left;
}

.footer-copyright p {
  margin: 0;
  font-size: var(--step--1);
}

/* ==============================
 * モバイルヘッダー
 * ============================== */

.mobile-header {
  display: none;
  position: fixed;
  top: var(--wp-admin--admin-bar--height, 0px);
  left: 0;
  width: 100%;
  height: var(--header-height-mobile, 3.75rem);
  background-color: var(--color-gray);
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
  z-index: calc(var(--index-header) + 1);
  padding: 0 56px;
  align-items: center;
  justify-content: center;
}

.mobile-header__menu-btn {
  position: absolute;
  left: var(--space-s);
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  z-index: calc(var(--index-header) + 10);
}

.mobile-header__menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-header__menu-btn.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
}

.mobile-header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-header__menu-btn.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
}

.mobile-header__logo {
  text-align: center;
}

.mobile-header__logo img {
  max-height: 40px;
  width: auto;
}

/* ==============================
 * レスポンシブスタイル
 * ============================== */

@media (max-width: 960px) {
  /* レイアウト構造の変更 */
  .site-wrapper {
    grid-template-columns: 1fr;
  }

  /* モバイルヘッダーを表示 */
  .mobile-header {
    display: flex;
  }

  /* メインコンテンツの位置調整 */
  .site-content {
    margin-top: var(--header-height-mobile);
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  /* サイドバーヘッダーをドロワーメニューに変更 */
  .site-header {
    top: var(--wp-admin--admin-bar--height, 0px);
    left: -100%;
    width: 80%;
    max-width: calc(320 / 16 * 1rem);
    position: fixed;
    height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
    /* モバイルブラウザでの100vhの問題に対応するための代替高さ設定 */
    height: calc((var(--vh, 1vh) * 100) - var(--wp-admin--admin-bar--height, 0px));
    padding: calc(var(--space-m) + var(--header-height-mobile)) var(--space-m) var(--space-m);
    background-color: var(--color-gray);
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .site-header__inner {
    padding: var(--space-2xs);
  }

  /* ドロワーメニューが開いているとき */
  .drawer-open .site-header {
    left: 0;
  }

  /* オーバーレイ */
  .drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* モバイルブラウザでの100vhの問題に対応するための代替高さ設定 */
    height: calc(var(--vh, 1vh) * 100);
    background-color: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--index-header) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .drawer-open .drawer-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* ドロワー内のスタイル調整 */
  .site-header__logo {
    display: none; /* モバイルヘッダーにロゴがあるため非表示 */
  }

  .site-header__nav {
    margin-bottom: var(--space-m);
  }

  .site-header__nav ul {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .site-header__nav-item a {
    padding: var(--space-xs) var(--space-s);
    border-radius: 8px;
    font-size: var(--step-0);
  }

  .site-header__banner {
    margin: var(--space-m) auto;
    max-width: 100%;
  }

  .site-header__social {
    padding: var(--space-s) 0;
    gap: var(--space-s);
  }

  .site-header__social-item {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* フッター */
  .site-info {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-copyright {
    text-align: center;
  }
}

/* パンくずリスト */
.breadcrumbs-wrapper {
  padding: var(--space-xs) 0;
  background-color: var(--color-bg-light);
  border-radius: 4px;
}

.breadcrumbs {
  font-size: var(--step--1);
  padding: 0 var(--space-s);
  color: var(--color-text);
}

.breadcrumbs i {
  margin-right: .3em;
}

.breadcrumbs a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.breadcrumbs .breadcrumb_last {
  color: var(--color-text);
  font-weight: bold;
}

/* スマホ向けスタイル */
@media (max-width: 600px) {
  .site-header__nav-item {
    padding: var(--space-2xs) var(--space-xs);
  }

  .site-header__social-item {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* search form */
.common-search-form {
  display: flex;
  width: 100%;
}

.common-search-form__input {
  flex-grow: 1;
  padding: 1.2rem;
  line-height: 1;
  border: 1px solid var(--color-border);
  border-radius: 20px 0 0 20px;
  font-size: 16px;
}

.common-search-form__input:focus {
  outline: none;
}

.common-search-form__button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0 30px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-weight: bold;
  font-size: var(--step-1);
  min-width: 8.375rem;
}

@media (max-width: 600px) {
  /* 検索フォーム */
  .common-search-form {
    flex-wrap: wrap;
    gap: var(--space-xs);
  }

  .common-search-form__input {
    height: 40px;
    padding: 10px;
    border-radius: 0;
  }

  .common-search-form__button {
    height: 40px;
    padding: 0 15px;
    font-size: 14px;
    border-radius: 0;
    width: 100%;
    min-width: 0;
  }
}

/* バナーエリア（4カラム） */
.home-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-s);
}

.home-banner__item {
  background-color: var(--color-white);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.home-banner__item .wp-block-image {
  margin: 0;
}

.home-banner__item .wp-block-image a {
  display: block;
}

.home-banner__item .wp-block-image img {
  display: block;
  width: 100%;
}

.home-banner__link {
  display: block;
}

.home-banner__link img {
  width: 100%;
  display: block;
}

/* メインコンテンツ（2カラム） */
.site-main-content {
  --main-content-width: calc(100% - (34% + var(--space-s)));
  display: grid;
  grid-template-columns: var(--main-content-width) 34%;
  gap: var(--space-s);
}

@media (1200px > width) {
  .site-main-content {
    grid-template-columns: 1fr;
  }
}

/* 左カラム（ダミーエリア） */
.site-main-content__left {
  /*min-height: 400px;*/
  /*border-radius: 5px;*/

  /* Elementorで作られたページなどがスマホで崩れる（はみ出る）ため、強制的に隠して一旦対処 */
  overflow: hidden;
}

/* 右カラム（お知らせ） */
.site-main-content__right {
  background-color: var(--color-gray);
  /*box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);*/
  padding: var(--space-m-l) var(--space-s) var(--space-s);
}

.sidebar {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 1rem);
}

.sidebar-news__title {
  font-size: var(--step-2);
  margin-top: 0;
  margin-bottom: 20px;
}

.sidebar-news__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: 0;
}

.sidebar-news__item {
  list-style: none;
}

.sidebar-news__item a {
  display: flex;
  width: 100%;
  color: #333;
}

.sidebar-news__image {
  width: 35%;
  flex-shrink: 0;
}

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

.sidebar-news__content {
  flex-grow: 1;
  background: #fff;
  padding: var(--space-xs-s);
}

.sidebar-news__meta {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  justify-content: space-between;
}

.sidebar-news__date {
  font-size: var(--step-0);
  font-weight: bold;
  display: inline-block;
}

.sidebar-news__label {
  display: inline-block;
  background-color: #e05d5d;
  color: white;
  font-size: var(--step--1);
  padding: 2px 8px;
  font-weight: bold;
}

.sidebar-news__item-title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: bold;
  line-height: 1.4;
}

.sidebar-news__more {
  text-align: center;
  margin-top: 20px;
}

.sidebar-news__more-link {
  display: inline-block;
  background-color: #333;
  color: white;
  font-weight: bold;
  font-size: var(--step-0);
  padding: 8px 20px;
  border-radius: 0.625rem;
  width: 100%;
  text-align: center;
}

@media (max-width: 960px) {
  /* バナーエリア（4カラム→2カラム） */
  .home-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  /* バナーエリア（2カラム→1カラム） */
  .home-banner {
    /*grid-template-columns: 1fr;*/
    margin-inline: auto;
  }
}

.sound-toggle-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: var(--index-fixed-element);
  background-color: var(--color-brand);
  color: var(--color-white);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.sound-toggle-button button {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sound-toggle-button:hover {
  transform: scale(1.1);
  opacity: 1;
}

.sound-toggle-button.sound-on .sound-off-icon {
  display: none;
}

.sound-toggle-button.sound-off .sound-on-icon {
  display: none;
}

.sound-toggle-button.sound-off {
  background-color: #666;
}

@media (max-width: 600px) {
  .sound-toggle-button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Elementorアドオン */
.elementor-widget-ha-pdf-view div[id^="viewer-"] > p {
  display: none; /* iPhoneなど非対応デバイス用の英語警告文を非表示 */
}
.elementor-widget-ha-pdf-view .pdf-button a {
  display: block; /* Phoneで崩れて文字にかぶさるため */
}

.elementor-widget-ha-pdf-view .pdf_viewer_options {
  gap: var(--space-2xs-xs);
}

.elementor-widget-ha-pdf-view .ha-pdf-title {
  margin-top: 0;
  margin-bottom: 0;
}

/* Yoast SEOのパンくず */
.breadcrumbs-wrapper .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
}
.breadcrumbs-wrapper .breadcrumbs > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3em;
}

.the-content .separate-containers {
  max-width: 1000px;
  margin: 0 auto;
}

.the-content .separate-containers th,
.the-content .separate-containers td {
  padding: 10px;
}

.the-content .separate-containers .hm-event-detail-recurring-event-header {
  font-size: 18px;
}

.site-main-one-column {
  min-width: 0;
}
