/*
Theme Name: yStandard Child Clean
Template: ystandard
*/

/*
Template:ystandard
Theme Name:ystandard-child
Theme URI: https://wp-ystandard.com
Author: yosiakatsuki
Author URI: https://yosiakatsuki.net
Description:「自分色に染めた、自分だけのサイトを作る楽しさ」を感じてもらうために作った一風変わったWordPressテーマ「ystandard」の子テーマ
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/************************************************
 * 全体に関する調整
 * **********************************************/

/* 空の段落や &nbsp; だけの段落を非表示にする */
p:empty {
  display: none;
}

/* &nbsp; だけが入っている段落の高さを0にする */
p {
  line-height: 1.6;
}

p:where(:not(:empty)) {
  min-height: 0;
  font-size: 14px;
}

p:has(> br), p:has(> img:empty), p:has(> svg:empty) {
  display: none;
}

/* &nbsp;だけの段落を無効化（最新ブラウザ対応） */
p:has(> abbr:empty),
p:has(> span:empty),
p:has(> [aria-hidden="true"]) {
  display: none;
}

/* YStandard の .site-content の上下マージンを無効化 */
.site-content {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fv-section picture,
.fv-section img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 800px) {
  .fv-section {
    width: 100%;
   height: auto;
    background-color: #fff; /* 必要なら背景色 */
  }
}

/**********************************************
 * ファーストビュースライド
 **********************************************/
.fv-slider {
  width: 100%;
  margin: 0 auto;
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.fv-slide picture,
.fv-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* ▼ Slickの矢印スタイル（テキスト非表示＋カスタム矢印） */
.fv-slider .slick-prev,
.fv-slider .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 0; /* ← Next/Prevテキスト非表示 */
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

/* 左矢印位置 */
.fv-slider .slick-prev {
  left: 10px;
}

/* 右矢印位置 */
.fv-slider .slick-next {
  right: 10px;
}

/* カスタム矢印の中身 */
.fv-slider .slick-prev::before,
.fv-slider .slick-next::before {
  content: "◀"; /* または ▶ */
  font-family: "Arial", sans-serif;
  font-size: 16px; /* ← 少し小さめ（元は22pxなど） */
  line-height: 40px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  text-align: center;
}


.fv-slider .slick-prev::before {
  content: "◀";
}

.fv-slider .slick-next::before {
  content: "▶";
}


/* ▼ Slickのドットナビ中央下配置 */
.fv-slider .slick-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 10;
}

.fv-slider .slick-dots li {
  display: inline-block;
  margin: 0 6px;
}

.fv-slider .slick-dots button {
  font-size: 0;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

.fv-slider .slick-dots .slick-active button {
  background: #fff;
}


/**********************************************
 * ヘッダー部分（ロゴ・電話・ボタン）
 **********************************************/
.custom-header {
  background: #fff;
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 60px;
}
.tel-banner {
  width: 200px;
  height: auto;
  margin-right: 10px;
}
.header-btn {
  background: #333;
  color: #fff;
  padding: 8px 12px;
  margin-left: 5px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .custom-header,
  .header-inner {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .logo img {
    max-width: 100px;
    height: auto;
    margin-left : 10px;
  }

  .tel-banner {
    max-width: 100px;
    height: auto;
    margin-right: 5px;
  }

  .menu-toggle {
    max-width: 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    margin-right : 10px;
  }

  body {
    overflow-x: hidden !important;
  }
}

/**********************************************
 * トグルボタン（三本線＋MENU）
 **********************************************/
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 4px;
  white-space: nowrap;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}
.menu-label {
  font-size: 12px;
  color: #333;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
}

/**********************************************
 * モーダルメニュー（SP）
 **********************************************/
.sp-menu-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease forwards;
}
.sp-menu-content {
  background: #fff;
  width: 90%;
  max-width: 320px;
  margin: 80px auto;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  animation: slideUp 0.3s ease forwards;
}
.sp-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-menu-list li {
  margin: 15px 0;
}
.sp-menu-list a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
}

/**********************************************
 * メディアクエリ（レスポンシブ対応）
 **********************************************/
.pc-only { display: flex; }
.sp-only { display: none; }
@media screen and (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .header-inner > .logo,
  .header-left .logo {
    display: none !important;
  }

  .sp-only {
    display: flex;
    align-items: center; /* ここで子要素を縦中央に */
    justify-content: space-between;
    width: 100%;
    padding: 0 10px; /* スマホの左右に少し余白 */
    box-sizing: border-box;
    padding-left: 0px; /* ← 必要に応じて0にしてもOK */
  padding-right: 10px;
  }

  .sp-only .logo,
  .tel-banner,
  .menu-toggle {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .sp-only img {
    display: block;
    max-height: 60px; /* 高さの上限だけ設定（任意） */
    height: auto;
    width: auto;
  }

  .menu-toggle {
    flex-direction: column;
    justify-content: center;
    width: auto;
    text-align: center;
  }

  .menu-label {
    font-size: 11px;
    line-height: 1.1;
    word-break: keep-all;
  }
}


@media screen and (min-width: 769px) {
  .sp-only { display: none !important; }
  .sp-menu-modal { display: none !important; }
}

/**********************************************
 * アニメーション
 **********************************************/
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/*****************************************
 *  スマホ用固定フッターボタン *
 * ***************************************/
.sp-fixed-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  background: #ffffffee; /* 背景白＋半透明 */
  border-top: 1px solid #ccc;
}

.sp-fixed-buttons .sp-btn {
  flex: 1;
  display: block;
  text-align: center;
  padding: 12px 0;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  /* background を削除 */
}


/* スクロール後に表示 */
.sp-fixed-buttons.visible {
  opacity: 1;
  pointer-events: auto;
}
.btn-blue { background: #007bff; }
.btn-green { background: #28a745; }
.btn-yellow { background: #ffc107; color: #333; }


/* PCでは非表示 */
@media screen and (min-width: 769px) {
  .sp-fixed-buttons {
    display: none;
  }
}

/***********************************************
 *  各セクション共通のベース *
 * ********************************************/
[class^="section-wrap"] {
  width: 100%;
  padding: 60px 0;
  margin: 0; /* ←セクション同士の隙間防止 */
  border: none;
}

/* セクション内の要素の余白もリセットして調整 */
.section-inner > *:first-child {
  margin-top: 0;
}
.section-inner > *:last-child {
  margin-bottom: 0;
}

h1, h2, h3, p {
  margin-top: 0;
  margin-bottom: 1em; /* 必要な余白だけ調整 */
}


/*****************************************
 * セクション全体ラッパー
 *****************************************/
.section-wrap-1 {
  width: 100%;
  background: #f9f9f9; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-2 {
  width: 100%;
  background: #fffef8; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-3{
  width: 100%;
  background: #ffffff; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-4 {
  width: 100%;
  background: #fffef8; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-5 {
  width: 100%;
  background: #f4feee; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-6 {
  width: 100%;
  background: #fffef8; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-7 {
  width: 100%;
  background: #ffffff; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-8 {
  width: 100%;
  background: #fffef8; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-faq {
  width: 100%;
  background: #d2f8f2; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-column {
  width: 100%;
  background: #e9e3de; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
.section-wrap-cta {
  width: 100%;
  background: #f9e791; /* 任意：各セクション背景色 */
  padding: 60px 0;
}
/*****************************************
 * セクション内コンテンツ（中央寄せ）
 *****************************************/
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/*****************************************
 * スマホ時の余白調整
 *****************************************/
@media screen and (max-width: 768px) {
  .section-inner {
    padding: 0 15px;
  }
}

/*****************************************
 * 投稿一覧：1カラム中央・グリッド表示調整
 *****************************************/

/* 共通 */
.container {
  max-width: 1280px !important;
  margin: 40px auto 0 !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}
.content__wrap,
.content__wrap.content__wrap--one-column {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}
.archive__main.site-main {
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

/* サイドバー完全削除 */
.sidebar,
#sidebar,
.sidebar-area {
  display: none !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}


@media (min-width: 1025px) {
    .has-sidebar .archive__item.is-card {
        --ystd-archive-item-width:calc(100% - var(--ystd-archive-gap)/2)
    }
}

@media screen and (min-width: 1024px) {
  /* アーカイブ全体を3列グリッドにする */
  .archive__container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    max-width: 1280px !important;
    box-sizing: border-box;
  }

  /* 各記事がその列幅いっぱいに広がるように */
  .archive__detail {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  /* 内部構造もリセット */
  .archive__detail * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* スマホ：記事間に余白をつける */
@media (max-width: 767px) {
  .content__wrap.content__wrap--one-column {
    margin-top: 20px !important;
    padding: 0 10px !important;
  }

  .archive__container {
    display: block !important;
  }

  .archive__detail {
    margin-bottom: 30px !important; /* 各記事の下に余白追加 */
    padding: 0 0 10px 0 !important;
    border-bottom: 1px solid #ccc; /* 任意：記事間の区切り線 */
  }
}


/* *****************************************
 * 記事ページ投稿詳細ページ：900px中央寄せ＋上下余白 *
 * ****************************************/
body.single-post .container.no-sidebar {
  max-width: 900px !important;
  margin: 40px auto !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

body.single-post .content__wrap,
body.single-post .content__wrap--one-column {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
  float: none !important;
}

/* main領域を幅100％で中央に */
body.single-post main.content__main,
body.single-post .site-main {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* サイドバーを完全削除 */
body.single-post .sidebar,
body.single-post #sidebar,
body.single-post .sidebar-area {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* アイキャッチ画像を中央寄せ */
body.single-post .post-thumbnail,
body.single-post .post-thumbnail img {
  display: block !important;
  margin: 0 auto 30px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ※アイキャッチ画像を非表示にしたい場合はこちらを代わりに使ってください */
/*
body.single-post .post-thumbnail {
  display: none !important;
}
*/
