/*
Theme Name: My Snow Monkey
Template: snow-monkey
Version: 1.0.0
*/

/* 下層ページ：ヘッダー固定で本文が潜るのを防ぐ */
body:not(.home) .l-contents {
  padding-top: calc(var(--_header-height, 80px) + var(--wp-admin--admin-bar--height, 0px)) !important;
}


/* =========================================================
# Header Nav (Snow Monkey v29+)
========================================================= */

/* ナビ項目を区切り線のために相対配置にする */
.c-navbar__item {
  position: relative;
}

/* 区切り線（最初以外に表示） */
.c-navbar__item:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30%;
  background: #2e2e2e;
  opacity: 0.6;
}

/* リンク：ホバーの下線用に相対配置 */
.c-navbar__item > a {
  position: relative;
  transition: color 0.3s;
}

/* 下線（初期は見えない） */
.c-navbar__item > a::after {
  content: "";
  position: absolute;
  left: 20%;
  bottom: -6px; /* ← ここで下線位置を調整 */
  width: 60%;
  height: 1px;
  background: #dc861b;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s;
}

/* ホバー時 */
.c-navbar__item > a:hover {
  color: #dc861b;
}
.c-navbar__item > a:hover::after {
  transform: scaleX(1);
}


body { outline: 8px solid red !important; }


/* =========================================================
# 会社案内
========================================================= */
/*
# ホバーアクション
---------------------------------- */
.about-item .smb-items__banner__figure > img {
  transition: all 0.3s;
}

.about-item:hover .smb-items__banner__figure > img {
  transform: scale(1.2);
}


/*
# 背景
---------------------------------- */
.about {
  background: linear-gradient(225deg, transparent 0, transparent 50%, #dc861b 50%, #dc861b 100%);
}


/* =========================================================
# 事業内容
========================================================= */
.service {
  background: linear-gradient(-225deg, transparent 0, transparent 50%, #15156b 50%, #15156b 100%);
}

/* =========================================================
# お知らせ
========================================================= */
/*
# カテゴリーの色分け
---------------------------------- */
.c-entry-summary__term--category-4 {
  background-color: #256ba0;
}
.c-entry-summary__term--category-5 {
  background-color: #c7c814;
}
.c-entry-summary__term--category-6 {
  background-color: #ad4a4a;
}
.c-entry-summary__term--category-7 {
  background-color: #38b09c;
}

/*
# 角を丸く
---------------------------------- */
.c-entry-summary__term {
  border-radius: 3px;
}



/* =========================================================
# ブログ・採用情報
========================================================= */
/*
# ホバーアクション
---------------------------------- */
.blog-item .smb-items__banner__figure > img,
.recruit-item .smb-items__banner__figure > img {
  transition: all 0.3s;
}

.blog-item:hover .smb-items__banner__figure > img,
.recruit-item:hover .smb-items__banner__figure > img {
  transform: scale(1.2);
}



/* =========================================================
# フッター
========================================================= */
/*
# 中央寄せ・ボーダー
---------------------------------- */
.l-footer-widget-area__item.c-row__col {
  text-align: center;
  border-left: 1px solid #e3e3e3;
}

@media screen and (max-width: 1023px) {

  .l-footer-widget-area__item.c-row__col {
    text-align: center;
    border-left: none;
  }
}

/*
# 1023以下でロゴ消す・幅70％
---------------------------------- */
@media screen and (max-width: 1023px) {

  .l-footer__body .c-container {
    width: 70%;
  }

  .l-footer__body .c-container .c-site-branding__title {
    display: none;
  }
}



/*
# コピーライト
---------------------------------- */
/*
# 背景色
---------------------------------- */
.l-footer--footer-4 .l-footer__footer, .l-footer--footer-5 .l-footer__footer {
  background-color: #2e2e2e;

}

/*
# テキスト
---------------------------------- */
.l-footer--footer-4 .l-footer__footer, .l-footer--footer-5 .l-footer__footer .c-copyright {
  color: #fff;
}

/*
# 中央寄せ
---------------------------------- */
.l-footer__footer .c-row {
  justify-content: center;
}



/* =========================================================
# mv
========================================================= */
/*
# スライドショー
---------------------------------- */
#imageSlide {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  position: relative;
}

#imageSlide::before {
  content: "";
  display: block;
  padding-top: 51.59722%;
}

#imageSlide div {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
}

.mv-slide__bg01 {
  background-image: url(/wp-content/uploads/2025/12/erik-mclean-ZRns2R5azu0-unsplash-scaled.jpg);
}
.mv-slide__bg02 {
  background-image: url(/wp-content/uploads/2025/12/mv_02.jpg);
}
.mv-slide__bg03 {
  background-image: url(/wp-content/uploads/2025/12/mv_03.jpg);
}

/*
# 640以下で画像を切り替え
---------------------------------- */
@media screen and (max-width: 640px) {
  #imageSlide::before {
    content: "";
    display: block;
    padding-top: 157.8666%;
  }

  .mv-slide__bg01 {
    background-image: url(/wp-content/uploads/2025/12/mv_01-sp.jpg);
  }
  .mv-slide__bg02 {
    background-image: url(/wp-content/uploads/2025/12/mv_02-sp.jpg);
  }
  .mv-slide__bg03 {
    background-image: url(/wp-content/uploads/2025/12/mv_03-sp.jpg);
  }
}



.mv-slide{
  position: relative;
}
.mv-slide__title{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  color: #fff;
  font-size: 44px;
  font-weight: bold;
  text-align: center;
}


/* ===============================
  MVタイトル：スマホでも1行固定
================================ */
@media screen and (max-width: 640px) {
  .mv-slide__title {
    font-size: 22px;        /* ここは好みで 20〜24px */
    line-height: 1.3;
    white-space: nowrap;   /* ★ 1行固定の核心 */
    padding: 0 12px;       /* 端切れ防止 */
  }
}

/* ===============================
  スマホ縦表示でもボタンを横長に保つ
================================ */
@media screen and (max-width: 640px) {

  .wp-block-buttons {
    flex-direction: row !important;
    justify-content: center;
    gap: 12px;
  }

  .wp-block-button {
    width: auto;
    min-width: 140px;   /* ★ここが核心（横幅を確保） */
  }

  .wp-block-button__link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    padding: 12px 18px;
    font-size: 14px;
  }
}