/*
Theme Name: ZEN for Elementor
Theme URI: https://wpzen.jp
Author: YOSHIZUMI LLC
Author URI: https://yoshizumi.tech
Description: WordPressテーマ「ZEN」のElementorでの利用に特化したバージョンです。
Version: 1.1.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zen-for-elementor
Tags: light, dark, two-columns, right-sidebar, responsive-layout
Update URI: https://wpzen.jp/assets/update-info-zene4ele.json
*/

/* 全体に border-box を適用 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden; /* 追加: 横スクロールを防ぐ */
  box-sizing: border-box;
  line-height: 1.6;
}

.customize-partial-edit-shortcut button,
.widget .customize-partial-edit-shortcut button {
  left: -15px;
  top: -20px;
}

/* ヘッダー全体のスタイル */
.site-header {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 15px 8px;
  flex-wrap: wrap;
}

.site-title {
  margin-top: 0;
  margin-bottom: 0px;
}

.site-title a {
  text-decoration: none;
  font-size: 24px;
  font-weight: bold;
}

.site-description {
  margin: 0;
  font-size: 14px;
}

.site-menu {
  display: flex;
  flex: 1;
  justify-content: end;
  gap: 40px;
  height: 74.19px;
}

/* ナビゲーションスタイル */
.pc-navigation {
  display: none; /* デフォルトでPCナビゲーションを非表示 */
}

/* スマホメニューのスタイル */
.mobile-navigation {
  position: fixed;
  left: -100%;
  top: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: #fff; /* カスタマイザーで設定された色に置き換えられます */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: left 0.3s ease-in-out;
  z-index: 1000;
}

.mobile-navigation.toggled-on {
  left: 0;
}

.mobile-navigation .mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-navigation .mobile-menu li {
  margin-right: 0;
}

.mobile-navigation .mobile-menu a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 16px;
  color: #333; /* カスタマイザーで設定された色に置き換えられます */
}

.mobile-navigation .mobile-menu a:hover,
.mobile-navigation .mobile-menu a:focus {
  background-color: #ddd;
  color: #000;
}

/* ハンバーガーメニュースタイル */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 0 22px;
  position: relative;
  z-index: 1001; /* メニューの上に表示するために追加 */
  max-width: 70px;
  width: 100%;
}

.menu-toggle .menu-icon {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  position: relative;
}

.menu-toggle .menu-icon::before,
.menu-toggle .menu-icon::after {
  content: "";
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  position: absolute;
  left: 0;
}

.menu-toggle .menu-icon::before {
  top: -8px;
}

.menu-toggle .menu-icon::after {
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(90deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(90deg);
}

/* PC用ナビゲーションのスタイル */
.pc-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pc-menu {
  list-style: none;
  display: flex; /* 子要素を横並びに */
  padding: 0;
  margin: 0;
  gap: 40px;
}

.pc-menu a {
  text-decoration: none;
  color: #333; /* カスタマイザーの設定に応じて変更 */
  font-size: 16px;
}
.header-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: end;
  align-items: center;
}


/* レスポンシブ対応：ビューポートのサイズに応じてスタイルを調整 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .pc-navigation {
    display: none;
  }

  .mobile-navigation {
    display: block;
  }
}

@media (min-width: 769px) {
  .pc-navigation {
    display: flex;
  }

  .mobile-navigation {
    display: none;
  }
}

.entry-title {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.page-links {
  margin-top: 20px;
  text-align: center;
}

.page-header {
  background-color: #f4f4f4;
  padding: 20px;
  margin-bottom: 20px;
}

.page-title {
  margin: 0;
  color: #333;
  font-size: 24px;
  color: #23282d;
}

.page-title span {
  color: #0073aa;
}

.archive-description {
  font-size: 1.2em;
  color: #666;
}

.error-404 {
  text-align: center;
  padding: 50px 0;
}

.page-content p {
  font-size: 16px;
}

.widget-title {
  font-size: 18px;
  color: #0073aa;
}

.comments-area {
  margin-top: 2em;
}

.comments-title {
  margin: 2em 0 1em;
  font-size: 1.5em;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.no-comments {
  margin-top: 1em;
  font-style: italic;
}

.swiper-container {
  width: 100%;
  height: 600px;
  position: relative;
}

.swiper-slide {
  position: relative;
}

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

.slider-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
}

.slider-text-left {
  left: 0;
  text-align: left;
}

.slider-text-center {
  left: 50%;
  transform: translate(-50%, -50%);
}

.slider-text-right {
  right: 0;
  text-align: right;
}

.font-size-small {
  font-size: 1em;
}

.font-size-medium {
  font-size: 1.2em;
}

.font-size-large {
  font-size: 2.5em;
}

.font-size-x-large {
  font-size: 3em;
}

.slider-catchphrase {
  margin: 0;
  padding: 0;
}

.slider-bodycopy {
  margin: 0.5em 0 0;
  padding: 0;
}

.background-media video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -100;
  object-fit: cover;
}

.background-media {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -100;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header-widgets,
.footer-widgets {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.header-widget-column,
.footer-widget-column {
  padding: 0 15px;
  box-sizing: border-box;
}

.footer-widgets {
  padding: 20px 0;
}

.site-info {
  text-align: center;
  padding: 20px 0;
}

#main-visual {
  width: 100%;
}

.header-cta-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-cta-buttons .cta-button {
  padding: 10px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  gap: 5px;
}

#content {
  display: flex;
  width: 100%;
  gap: 40px;
  justify-content: center;
}

#primary {
  flex: 1;
  min-width: 0;
  padding: 60px;
}

#primary h1 {
  margin-top: 0;
}

#primary article {
  border-bottom: 2px solid #ddd;
  padding: 40px 0;
}

#primary article:first-child {
  padding-top: 0;
}

.entry-footer {
  display: flex;
  margin-top: 20px;
  padding-top: 20px;
  font-size: 14px;
  color: #555;
  gap: 20px;
}

.entry-footer span {
  display: flex;
  gap: 5px;
  align-items: center;
}

.entry-footer span svg {
  width: 18px;
}

#secondary {
  flex: 0 0 25%;
  min-width: 250px;
  padding: 20px;
}

#secondary ul {
  padding: 0px;
}

#secondary li {
  margin-bottom: 10px;
}

#secondary li:last-child {
  margin-bottom: 0px;
}

#secondary .wp-block-archives-list,
#secondary .wp-block-categories-list {
  padding-left: 1em;
}

.site-content {
  display: flex;
  flex-direction: row;
  width: 100%;
}

/* スマホ用レイアウト */
@media (max-width: 768px) {
  #content {
    flex-direction: column;
  }

  #primary,
  #secondary {
    min-width: 100%;
  }

  #primary {
    padding: 40px 20px;
  }
  .site-header {
    gap: 10px;
    padding: 0 0 0 10px;
  }
  .site-menu {
    gap: 0;
  }
  .site-branding {
    flex: initial;
  }
  .site-title a {
    font-size: 20px;
  }

  .header-cta-buttons {
    justify-content: end;

    gap: 0px;
  }
  .header-cta-buttons[data-count="1"],
  .header-cta-buttons[data-count="2"],
  .header-cta-buttons[data-count="3"] {
    flex: 1 1 auto;
  }
  .header-cta-buttons .cta-button {
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0px;
    font-size: 12px;
    max-width: 70px;
    box-sizing: border-box;
  }

  .header-cta-buttons .cta-button i {
    font-size: 30px;
  }
}
/* レスポンシブ */
/* デスクトップ（1024px以上）で非表示 */
@media (min-width: 1024px) {
  .hide-on-desktop {
    display: none !important;
  }
}

/* タブレット（768px～1023px）で非表示 */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-on-tablet {
    display: none !important;
  }
}

/* モバイル（767px以下）で非表示 */
@media (max-width: 767px) {
  .hide-on-mobile {
    display: none !important;
  }
}

.wp-block[data-align="center"] {
  text-align: center;
}