/*
Theme Name: Xwrite child
Version: 2.0.0
Template: xwrite
*/

.header {
    position: relative;
    z-index: 99;
    background-color: var(--headbg-color);
    background-image: url(https://niinamesai.norib.net/wp-content/uploads/2026/08/background.png);
}

/* スライダー親要素の溢れ出し（overflow）を許可 */
.mainVisual .xw-swiper {
  overflow: visible !important;
}

/* 矢印ボタンの基本デザイン（小さめの丸型・薄い黒背景） */
.xw-swiper .swiper-button-prev,
.xw-swiper .swiper-button-next {
  width: 40px;                            /* ボタン全体を小ぶりに変更 (旧: 48px) */
  height: 40px;                           /* ボタン全体を小ぶりに変更 (旧: 48px) */
  background-color: rgba(0, 0, 0, 0.4);   /* 薄い黒背景 (透過率40%) */
  border-radius: 50%;                       /* 完全な丸型 */
  color: #ffffff;                           /* 矢印アイコンの色 */
  backdrop-filter: blur(2px);               /* すりガラス風のボカシ効果 */
  top: 50%;
  margin-top: -16px;                        /* 高さの半分戻して上下中央揃え */
  z-index: 20;
  transition: background-color 0.3s ease, transform 0.2s ease;
  padding: 8px;
}

/* 左矢印：スライダーの左端をまたぐ（半分外側に飛び出す） */
.xw-swiper .swiper-button-prev {
    left: 10px;
    opacity: 0.8;
}

/* 右矢印：スライダーの右端をまたぐ（半分外側に飛び出す） */
.xw-swiper .swiper-button-next {
    right: 10px;
    opacity: 0.8;
}

/* 矢印アイコン（内側の「<」「>」記号）のサイズを縮小 */
.xw-swiper .swiper-button-prev::after,
.xw-swiper .swiper-button-next::after {
  font-size: 12px !important;              /* 矢印自体を小さく指定 (旧: 18px) */
  font-weight: bold;
}

/* ホバー（マウスを載せたとき）の表示変化 */
.xw-swiper .swiper-button-prev:hover,
.xw-swiper .swiper-button-next:hover {
  background-color: rgba(0, 0, 0, 0.7);   /* 背景を少し濃くする */
  transform: scale(1.1);                  /* ほんの少し拡大 */
}

/* スマホ表示（画面幅767px以下）の場合のさらに小さいサイズ調整 */
@media screen and (max-width: 767px) {
  .xw-swiper .swiper-button-prev,
  .xw-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
    margin-top: -13px;
	padding: 8px;
  }

  .xw-swiper .swiper-button-prev {
    left: 10px;
    opacity: 0.8;
  }
  .xw-swiper .swiper-button-next {
    right: 10px;
    opacity: 0.8;
  }

  .xw-swiper .swiper-button-prev::after,
  .xw-swiper .swiper-button-next::after {
    font-size: 10px !important;
  }
}

/* PC表示（画面幅768px以上）でもハンバーガーボタンを表示させる */
@media screen and (min-width: 768px) {
  /* ハンバーガーアイコン（開くボタン）の常時表示 */
  .gnav #drawer__open {
    display: flex !important; /* または display: block !important; */
    cursor: pointer;
  }

  /* ドロワーメニューが開いたときの背景オーバーレイ */
  .gnav #drawer__input:checked ~ .drawer__overlay {
    display: block !important;
  }

  /* ドロワーメニュー本体の表示設定 */
  .gnav #drawer__input:checked ~ .nav__drawers {
    transform: translateX(0) !important; /* スライドインして表示 */
    visibility: visible !important;
    opacity: 1 !important;
	max-width: 500px;
  }

  /* PC時に通常の横並びメニューが別に出力されている場合の非表示処理 */
  .gnav > .gNavList:not(.nav__drawers .gNavList) {
    display: none !important;
  }
}
@media (min-width: 992px) {
    .gnav-fix {
        display: block;
    }
}

/* ・・・・・・・・・・・・・・・・・・・・
お問い合わせフォームの装飾
・・・・・・・・・・・・・・・・・・・・ */
/* フォーム全体の枠 */
.Form {
  max-width: ;
  margin: 0 auto;
  padding: 0px 40px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  box-sizing: border-box;
}

/* 各項目の余白 */
.Form-Item {
  margin-bottom: 24px;
}

/* ラベル */
.Form-Item-Label {
  margin-bottom: 8px;
  font-weight: bold;
  font-size: 16px;
  color: #333;
}

/* 必須マーク */
.Form-Item-Label-Required {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 6px;
  font-size: 12px;
  background: #e74c3c;
  color: #fff;
  border-radius: 3px;
}

/* input、textarea の共通装飾 */
.Form input[type="text"],
.Form input[type="email"],
.Form input[type="tel"],
.Form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background: #fff;
}

.Form input[type="text"]:focus,
.Form input[type="email"]:focus,
.Form input[type="tel"]:focus,
.Form textarea:focus {
  border-color: #0073aa;
  outline: none;
}

/* textarea は高さを固定しておく */
.Form textarea {
  height: 160px;
  resize: vertical;
}

/* ラジオ・チェックボックス項目の調整 */
.Form .wpcf7-radio,
.Form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.Form .wpcf7-radio label,
.Form .wpcf7-checkbox label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  cursor: pointer;
}
	
/* 送信ボタン */
.button-wrap {
  text-align: center;
  margin-top: 40px;
}

.confirm_button {
  background: #0073aa;
  color: #fff;
  font-size: 16px;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .3s;
}

.confirm_button:hover:not([disabled]) {
  background: #005f8d;
}

.confirm_button:disabled {
  background: #ccc;
  cursor: default;
}

.wpcf7-submit {
  background: #0073aa;
  color: #fff;
  font-size: 16px;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .3s;
}

.mainVisual.title-layout-contents-top .item__overlay {
    background: linear-gradient(to right, #c79210 0%, #9f7000 50%, #b78d2f 100%) !important;
    opacity: var(--title-overlay-opacity, .5);
}
@media (min-width: 768px) {
    .contents {
        padding-top: 0;
		margin-top: 50px;
    }
}
.gnav-fix .drawer__close, .gnav-fix .drawer__open {
    position: fixed;
    right: 0;
    margin: 16px;
}
.toc_block {
    position: relative;
    margin-top: var(--widget--block--mrg);
    margin-bottom: var(--widget--block--mrg);
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: var(--block--border-radius);
}

@keyframes sway-reverse {
  0% {
    transform: scaleX(-1) rotate(0deg);
  }
  100% {
    transform: scaleX(-1) rotate(-6deg);
  }
}

/* アニメーション用コンテナ */
.rice-animation-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* 各セクションの背景より上、かつ文字やボタンの邪魔にならないレイヤーに配置 */
  z-index: 10; 
  /* マウス操作（クリックやテキスト選択）をすべて背後のコンテンツに通過させる */
  pointer-events: none; 
  overflow: hidden;
  opacity: 0.1; /* 透け感の調整（お好みの薄さに調整してください） */
}

/* 稲穂画像要素 */
.rice-item {
  position: absolute;
  bottom: -20px;
  width: 120px; /* サイズはサイトの見た目にあわせて調整してください */
  height: 180px;
  background-image: url(/wp-content/uploads/2026/09/2_Crop-Image-e1789614883712.png); 
  background-size: contain;
  background-repeat: no-repeat;
  transform-origin: bottom center;
  animation: sway 4s ease-in-out infinite alternate;
}

/* 左下の配置 */
.rice-item.left {
  left: 1%;
}

/* 右下の配置 */
.rice-item.right {
  right: 1%;
  transform: scaleX(-1);
  animation: sway-reverse 5s ease-in-out infinite alternate;
}

/* アニメーション定義 */
@keyframes sway {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(5deg); }
}

@keyframes sway-reverse {
  0% { transform: scaleX(-1) rotate(0deg); }
  100% { transform: scaleX(-1) rotate(-5deg); }
}
/* --------------------------------------------------
   スマートフォン表示（画面幅768px以下）では非表示にする
-------------------------------------------------- */
@media screen and (max-width: 768px) {
  .rice-animation-container {
    display: none !important;
  }
}

/* ==================================================
   1. 上に戻る（Page Top）ボタンのデザイン＆配置
================================================== */
.page-top-btn {
  position: fixed;
  right: 30px;
  bottom: 80px; /* PCサイズ：右下の稲穂を避けた位置 */
  width: 50px;
  height: 50px;
  background-color: #79663b; /* サイト全体の雰囲気に合わせた落ち着いたゴールドブラウン */
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 100; /* アニメーションやコンテンツの前面 */
}

.page-top-btn:hover {
  background-color: #5a4b2a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}


/* ==========================================
   共通・スマホ向けスタイル (初期設定)
   ========================================== */
.sticky-accordion-wrapper {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px; /* スマホ時の幅制限 */
  z-index: 9999;
  font-family: inherit;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

/* ヘッダーボタン（開閉トリガー） */
.accordion-trigger {
  width: 100%;
  background-color: #4e9362;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}

.accordion-trigger .icon {
  transition: transform 0.3s ease;
  font-size: 12px;
}

/* 開いたときのアイコン回転 */
.accordion-trigger[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

/* アコーディオン開閉部分 */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.accordion-trigger[aria-expanded="true"] + .accordion-content {
  max-height: 500px; /* PCで縦並びになっても十分納まる高さ */
}

/* ボタンの配置（スマホ：2列） */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 15px;
}

/* 各ボタン共通デザイン */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-honou { background-color: #a02222; } /* 奉納：朱赤 */
.btn-sanka { background-color: #d7a009; } /* 参加：黄色 */
.btn-contact { background-color: #4a4a4a; } /* お問い合わせ：シックグレー */
.btn-line { background-color: #06C755; } /* LINE公式：LINEグリーン */

.btn:hover {
  opacity: 0.9;
}


/* ==========================================
   PC向けスタイル (画面幅 769px 以上)
   ========================================== */
@media screen and (min-width: 769px) {
  .sticky-accordion-wrapper {
    left: auto;
    right: 20px; /* 右端からの余白 */
    bottom: 0;
    transform: none;
    width: 260px; /* PCでのコンパクトな横幅 */
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
  }

  /* PC時は4つを縦1列に配置 */
  .button-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }
}

/* ==================================================
   3. スマホサイズ（768px以下）での配置
================================================== */
@media screen and (max-width: 768px) {

  /* スマホサイズ：LINEボタンを左端に配置 */
  .line-official-btn,
  div:has(> a[href*="LINE"]) {
    position: fixed !important;
    left: 15px !important;
    bottom: 20px !important;
    right: auto !important;
    z-index: 100 !important;
  }

  /* スマホサイズ：上に戻るボタンを右端に配置 */
  .page-top-btn {
    right: 15px;
    bottom: 64px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

}
.xw-icon-box__content {
	min-height: 0;
}