/* =====================================================================
   部分ごとの調整(元の my-snow-monkey の CSS を、このテーマの入れ物に合わせて写したもの)
   元: animation.css / base.css / font.css / others.css / section-fv.css / section-header.css / style.css
   ===================================================================== */

/* ---------- フェードイン(xcs-fadein) ---------- */
.xcs-fadein {
  --xcs-distance: 24px; --xcs-move-duration: 800ms; --xcs-fade-duration: 1200ms; --xcs-delay: 180ms;
  opacity: 0; transform: translate3d(0, var(--xcs-distance), 0);
  transition: opacity var(--xcs-fade-duration) linear var(--xcs-delay), transform var(--xcs-move-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--xcs-delay);
  will-change: opacity, transform;
}
.xcs-fadein.is-inview { opacity: 1; transform: translate3d(0, 0, 0); }
.xcs-fadein.is-done { opacity: 1; transform: none; will-change: auto; }

/* ---------- スマホでの左右の余白を狭く(元 base.css) ---------- */
@media screen and (max-width: 768px) {
  .hm-section > .hm-container:not(.hm-nopad), .hm-section > .hm-pad { padding-inline: 0.95rem !important; }
  .hm-container .hm-container { padding-inline: 0 !important; }
}
/* お問い合わせ: メールアドレスの確認欄を縦に並べる */
.wpforms-field-email .wpforms-field-row { display: block !important; }
.wpforms-field-email .wpforms-field-row-block { width: 100% !important; float: none !important; padding: 0 !important; margin-bottom: 16px !important; }

/* ---------- 文字サイズ(元 font.css)。元の .has-sm-*-font-size の上書きは、WordPress の !important に負けて本番でも効いていなかったので写さない ---------- */
.xcs-fzclamp-2 { font-size: clamp(1.4rem, 2vw, 2.4rem) !important; }
.xcs-fzclamp-3 { font-size: clamp(1.6rem, 3vw, 3.6rem) !important; }
.xcs-fzclamp-4 { font-size: clamp(1.8rem, 4vw, 4.8rem) !important; }
.xcs-fzclamp-5 { font-size: clamp(2rem, 5vw, 6rem) !important; }
.xcs-fzclamp-6 { font-size: clamp(2.2rem, 6vw, 7.2rem) !important; }
.xcs-fzclamp-7 { font-size: clamp(2.4rem, 7vw, 8.4rem) !important; }
.xcs-fzclamp-8 { font-size: clamp(2.6rem, 8vw, 9.7rem) !important; }
.xcs-fzclamp-9 { font-size: clamp(2.8rem, 9vw, 10.8rem) !important; }
.xcs-fzclamp-10 { font-size: clamp(3rem, 10vw, 12rem) !important; }
/* 横並び → 縦並び */
@media screen and (max-width: 1400px) { .xcs-fd-row-1400 { flex-direction: column !important; } }
@media screen and (max-width: 1280px) { .xcs-fd-row-1280 { flex-direction: column !important; } }
@media screen and (max-width: 1024px) { .xcs-fd-row-1024 { flex-direction: column !important; } }
@media screen and (max-width: 768px) { .xcs-fd-row-768 { flex-direction: column !important; align-items: center !important; } }
@media screen and (max-width: 600px) { .xcs-fd-row-600 { flex-direction: column !important; } }
/* 幅 */
.xcs-width-30p { flex: 0 0 30% !important; }
.xcs-width-40p { flex: 0 0 40% !important; }
.xcs-width-45p { flex: 0 0 45% !important; }
.xcs-width-50p { flex: 0 0 50% !important; }
.xcs-width-60p { flex: 0 0 60% !important; }
.xcs-maxwidth-300 { max-width: 300px !important; }
.xcs-maxwidth-1200 { max-width: 1200px !important; margin-inline: auto; }
.xcs-align-start { align-items: start !important; }
.xcs-line-height-14 { line-height: 1.4 !important; }
/* トップの見出しの文字サイズ */
.xcs-fontsize-title-3-xl { font-size: clamp(1.2rem, 1.1rem + 1vw, 2rem) !important; }
@media screen and (max-width: 600px) { .xcs-fontsize-title-3-xl { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 2rem) !important; } }
/* 白いふち */
.xcs-font-white-outline { -webkit-text-stroke: 3px white; }
.xcs-font-white-shadow {
  text-shadow: 3px 3px 0 #fff, -3px 3px 0 #fff, 3px -3px 0 #fff, -3px -3px 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff,
    2px 3px 0 #fff, -2px 3px 0 #fff, 2px -3px 0 #fff, -2px -3px 0 #fff, 3px 2px 0 #fff, -3px 2px 0 #fff, 3px -2px 0 #fff, -3px -2px 0 #fff;
}
.xcs-font-white-shadow-fv {
  text-shadow: 5px 5px 0 #fff, -5px 5px 0 #fff, 5px -5px 0 #fff, -5px -5px 0 #fff, 0 5px 0 #fff, 0 -5px 0 #fff, 5px 0 0 #fff, -5px 0 0 #fff,
    4px 5px 0 #fff, -4px 5px 0 #fff, 4px -5px 0 #fff, -4px -5px 0 #fff, 5px 4px 0 #fff, -5px 4px 0 #fff, 5px -4px 0 #fff, -5px -4px 0 #fff,
    3px 5px 0 #fff, -3px 5px 0 #fff, 3px -5px 0 #fff, -3px -5px 0 #fff, 5px 3px 0 #fff, -5px 3px 0 #fff, 5px -3px 0 #fff, -5px -3px 0 #fff;
}

/* ---------- 飾りの絵・マスク(元 others.css) ---------- */
.xcs-image-absolute { position: relative; }
.xcs-image-absolute::before {
  content: ''; position: absolute; background-image: url('../images/free.webp'); background-repeat: no-repeat; background-size: contain;
  width: 15%; min-width: 130px; aspect-ratio: 1 / 1; top: -100px; right: -10px; z-index: 1;
}
@media screen and (max-width: 1600px) { .xcs-image-absolute::before { top: -80px; } }
@media screen and (max-width: 700px) { .xcs-image-absolute::before { top: -60px; min-width: 110px; } }
.xcs-image-mask { -webkit-mask-image: linear-gradient(to bottom, #111 80%, transparent 98%); mask-image: linear-gradient(to bottom, #111 80%, transparent 98%); }
/* 政策ページの帯の背景(色に透明度をつける) */
.xcs-bg-opacity-text { --hm-sec-fixed-background-color: rgba(255, 255, 255, 0.8) !important; }
.xcs-bg-opacity-chuo { --hm-sec-fixed-background-color: rgba(229, 255, 246, 0.9) !important; }
.xcs-bg-opacity-nishi { --hm-sec-fixed-background-color: rgba(255, 239, 243, 0.9) !important; }
.xcs-bg-opacity-higashi { --hm-sec-fixed-background-color: rgba(255, 236, 222, 0.9) !important; }
.xcs-bg-opacity-minami { --hm-sec-fixed-background-color: rgba(244, 233, 255, 0.9) !important; }
.xcs-bg-opacity-izumi { --hm-sec-fixed-background-color: rgba(235, 247, 255, 0.9) !important; }
.xcs-bg-opacity-suiro { --hm-sec-fixed-background-color: rgba(219, 242, 255, 0.9) !important; }
.xcs-bg-opacity-btm { --hm-sec-fixed-background-color: rgba(255, 255, 255, 0.4) !important; }

/* ---------- トップの大きい写真(元 section-fv.css) ---------- */
.xcs-fv-bg, .xcs-fv-bg--2 { transform: scale(1); animation: hsCoverZoom 20s ease-out forwards; height: calc(100svh - 115px) !important; }
@keyframes hsCoverZoom { from { transform: scale(1); } to { transform: scale(1.11); } }
*:has(> .xcs-fv-bg), *:has(> .xcs-fv-bg--2) { overflow: hidden; }
.xcs-fv-img, .xcs-fv-img--2 { position: absolute; bottom: 0; right: 7vw; z-index: 100; }
@media screen and (max-width: 599px) {
  .xcs-fv-img, .xcs-fv-img--2 { right: auto; left: 56%; transform: translateX(-50%); }
  .xcs-fv-img.xcs-fadein { transform: translateX(-50%) translate3d(0, var(--xcs-distance), 0); }
  .xcs-fv-img.xcs-fadein.is-inview { transform: translateX(-50%) translate3d(0, 0, 0); }
  .xcs-fv-img.xcs-fadein.is-done { transform: translateX(-50%); }
}
.xcs-fv-img img, .xcs-fv-img--2 img { height: auto; width: auto; max-height: 70svh; max-width: 90vw; }
@media screen and (max-width: 599px) {
  .xcs-fv-img img, .xcs-fv-img--2 img { width: 96vw; max-width: 96vw; height: auto; max-height: 85svh; object-fit: contain; }
}
.xcs-fv-text, .xcs-fv-text--2 { position: absolute; top: 10vh; left: 7vw; z-index: 200; }
@media screen and (max-width: 1300px) { .xcs-fv-text, .xcs-fv-text--2 { top: auto; bottom: 10vh; } }
.xcs-fv-text img, .xcs-fv-text--2 img { height: auto; width: auto; max-width: 50vw; }
.xcs-fv-bg > *, .xcs-fv-bg--2 > * { position: relative; z-index: 1; }

/* ---------- トップページ(元 style.css) ---------- */
.xcs-image-size { width: 35px !important; flex-shrink: 0 !important; }
@media screen and (max-width: 768px) { .xcs-image-size { width: 25px !important; } }
/* 市長の公約5: 見出しを幅広に */
.xcs-maxwidth-100p .hm-cw { width: 100% !important; max-width: 100% !important; }

/* ---------- プロフィールページ(元 style.css) ---------- */
.xcs-profile-title { position: relative; padding-left: 20px; }
.xcs-profile-title::before { content: ''; width: 5px; height: 100%; background-color: #b4b2a9; position: absolute; left: 0; top: 0; }
.xcs-profile-title--red::before { background-color: #cb141c; }
.xcs-profile-list { position: relative; padding-left: 40px !important; }
.xcs-profile-list::before { content: ""; position: absolute; left: 9px; top: 14px; bottom: 50px; width: 2px; background: #d3d1c7; }
.xcs-profile-list > .wp-block-group { position: relative; }
.xcs-profile-list > .wp-block-group::before {
  content: ""; position: absolute; left: -40px; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #b4b2a9; background: #fff; box-sizing: border-box; z-index: 1;
}
.xcs-profile-list--red::before { background: #cb141c; }
.xcs-profile-list--red > .wp-block-group::before { border: 2px solid #cb141c; }
.xcs-profile-btm-list-1 li:before { border-color: #cb141c !important; }
.xcs-profile-btm-list-2 li { list-style: none; position: relative; }
.xcs-profile-btm-list-2 li:before { content: "♪"; position: absolute; left: -30px; color: #cb141c; }
.xcs-profile-btm-list-2 li:last-child:before { content: "☆"; }
.xcs-profile-btm-list-2 { position: relative; }
.xcs-profile-btm-list-2::before {
  content: ''; position: absolute; background-image: url('../images/onpu_3.webp'); background-repeat: no-repeat; background-size: contain;
  width: 150px; height: auto; aspect-ratio: 1266 / 536; rotate: -10deg; bottom: 30px; right: 10px; z-index: 100;
}
@media screen and (max-width: 1300px) { .xcs-hashimoto-yell { font-size: clamp(2.4rem, 1.4rem + 3vw, 4rem) !important; } }
@media screen and (max-width: 620px) { .xcs-hashimoto-yell { font-size: clamp(1rem, 6vw, 7.2rem) !important; } }
