/* =========================================================
  top.css — TOPページ専用スタイル
  functions.php で is_front_page() の時だけ custom.css の後に
  追加読み込みされる。他ページで再利用しない一点物のセクション
  （MV・会社紹介・お知らせ等）をここに置く。
  下層ページでも使う共通コンポーネントは custom.css 側に残す。
========================================================= */


/* =========================================================
  01. MV（グループブロック・全幅/alignfull・追加CSSクラス: top-mv）
========================================================= */
.top-mv {
    position: relative;
    left: 50% !important;
    transform: translateX(-50%);
    width: calc(100vw - var(--ark-scrollbar-width, 0px)) !important;
    max-width: 1600px !important;
    margin: 0 !important;
    min-height: 720px;
    overflow: hidden;
}

@media (max-width: 781px) {
    .top-mv {
        min-height: 100svh;
    }
}

/* 背景イラスト */
.top-mv__bg {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 !important;
    z-index: 0;
}

@media (max-width: 781px) {
    .top-mv__bg {
        width: 900px;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .top-mv__bg {
      top: 5rem;
        width: 600px;
        max-width: none;
    }
}

/* mv_col */
.top-mv .mv_col {
    margin-top: 0 !important;
    max-width: 1000px !important;
    top: 180px;
}

/* mv_box_left: 最大600px */
.top-mv .mv_box_left {
    max-width: 600px;
    padding-left: var(--ark-pad--container);
}

/* mv_box_right: */
.top-mv .mv_box_right {
    margin-right: -220px !important;
    margin-left: -60px !important;
}

.top-mv .mv_box_right figure {
  margin-top: 0 !important;
}

@media (max-width: 781px) {
    .top-mv .mv_box_right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
}

.top-mv__bg img {
    display: block;
    width: 100%;
    height: auto;
}

.top-mv .mv_copy {
  font-size: var(--fz-h2);
  font-weight: 700;
  margin-bottom: 4rem;
}

.top-mv .mv_copy span {
  font-size: var(--fz-display-sm);
  white-space: nowrap;
  background-image: url(../img/line_01.svg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 65%;
}

.top-mv .mv_copy p {
  margin-top: 0 !important;
  line-height: 1.4;
}

.top-mv .mv_bnr_gr {
  gap: 0 !important;
}

.top-mv p.mv_bnr_gr_box1,
.top-mv p.mv_bnr_gr_box2,
.top-mv p.mv_bnr_gr_box3,
.top-mv p.mv_bnr_gr_box4 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: var(--fz-h3);
  font-weight: 700;
  line-height: 1.4;
  width: 240px;
  height: 80px;
  background-image: url(../img/mv_bnrbg_1.webp);
  background-repeat: no-repeat;
  background-size: 240px 80px;
}

.top-mv p.mv_bnr_gr_box2 {
  background-image: url(../img/mv_bnrbg_2.webp);
}

.top-mv p.mv_bnr_gr_box3 {
  background-image: url(../img/mv_bnrbg_3.webp);
}

.top-mv p.mv_bnr_gr_box4 {
  background-image: url(../img/mv_bnrbg_4.webp);
}


/* MVの2カラムCTA行（出張見積無料＋電話番号／メール・LINEボタン）。
   ボタン自体の見た目(.cta_btn_mail/.cta_btn_line)や電話パーツ
   (.mv_tel_icon/.time/.telno)は custom.css 側の共通ルールが効く */
.mv_cta_col {
  width: min(100%, 680px);
  border: 6px solid var(--c-yellow);
  margin-top: 0;
  margin-left: var(--ark-pad--container);
  margin-right: var(--ark-pad--container);
  padding: 1.5rem var(--ark-pad--container);
  border-radius: 8px;
  background-color: var(--c-yellow-l);
  position: relative;
  z-index: 5;
}

.mv_cta_left .free {
  font-size: var(--fz-lead);
  font-weight: 700;
  text-align: center;
}

/* MV右上・固定表示の電話ボックス */
.mv_cta_tel_box {
  width: min(100%, 300px);
  position: fixed;
  top: 80px;
  right: 0;
}

.l-container .mv_chara_box {
  max-width: 1600px;
  margin: 0 auto;
}

.mv_chara_box .wp-block-group__inner-container {
  position: relative;
}

.mv_chara_box figure.mv_chala {
  position: absolute;
  top: -60px;
  right: -100px;
  max-width: 300px;
}


@media (max-width: 1400px) {
    .top-mv__bg img {
      opacity: .7;
    }

    .mv_chara_box figure.mv_chala {
      right: -4vw;
    }
}

@media (max-width: 1350px) {
    .top-mv__bg img {
      opacity: .5;
    }
}

@media (max-width: 1200px) {
    /* .top-mv__bg img {
      opacity: 1;
    } */

    .mv_chara_box figure.mv_chala {
      max-width: 20vw;
    }
}

@media (max-width: 920px) {
    .mv_chara_box figure.mv_chala {
      top: -20vw;
    }
}


@media (max-width: 781px) {
  .top-mv__bg img {
      opacity: 1;
    }

  .top-mv .mv_col {
    margin-bottom: 240px;
  }

  .top-mv .mv_box_right {
    margin-right: 0 !important;
    margin-left: auto !important;
    width: 60%;
    margin: 0 0 0 auto;
  }

  .top-mv .mv_box_left {
    padding-right: var(--ark-pad--container);
  }

  .top-mv .mv_copy {
    background: rgb(255 255 255 / 80%);
    border-radius: 16px;
    padding: .5rem var(--ark-pad--container) 1rem;
    text-align: center;
  }

  .mv_cta_col {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .top-mv .mv_copy {
    margin-bottom: 0rem;
    margin-top: 13rem;
  }
  .top-mv p.mv_bnr_gr_box1,
  .top-mv p.mv_bnr_gr_box2,
  .top-mv p.mv_bnr_gr_box3,
  .top-mv p.mv_bnr_gr_box4 {
    width: 200px;
    height: 64px;
    background-size: 200px 64px;
    margin-top: 1rem;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 460px) {
  .top-mv .mv_col {
        margin-bottom: 9rem;
    }

  .top-mv p.mv_bnr_gr_box1,
  .top-mv p.mv_bnr_gr_box2,
  .top-mv p.mv_bnr_gr_box3,
  .top-mv p.mv_bnr_gr_box4 {
    width: 200px;
    height: 64px;
    background-size: 200px 64px;
  }

  .top-mv .mv_col {
    top: 80px;
  }

  .mv_col .mv_cta_tel_box {
    display: none;
  }



}

@media (max-width: 420px) {
    .top-mv p.mv_bnr_gr_box1, .top-mv p.mv_bnr_gr_box2, .top-mv p.mv_bnr_gr_box3, .top-mv p.mv_bnr_gr_box4 {
      width: 10rem;
      height: 4.25rem;
      background-size: 10rem 4.25rem;
      font-size: 1rem;
    }

    .top-mv .mv_col.col_rev {
      flex-direction: column;
    }

    .top-mv .mv_copy {
        margin-bottom: 0rem;
        margin-top: 2rem;
    }

    .top-mv .mv_box_right {
      margin-top: 6rem !important;
    }

     .top-mv .mv_box_right {
      width: 90%;
    }


}


/* =========================================================
  02. 会社紹介（キャラクター・花のイラスト装飾／一点物）
========================================================= */
.top_cont1_wrap {
  margin-top: 120px;
  margin-bottom: 5rem;
}

.top_cont_text1 {
  font-size: var(--fz-lead);
  font-weight: 700;
  text-align: center;
}

.top_cont_text2 {
  font-size: var(--fz-24-48);
  font-weight: 700;
  text-align: center;
}

.top_cont_text2 span {
  background-image: url(../img/line_02.svg);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 90%;
}

.top_cont1_box {
  position: relative;
  z-index: 5;
}

.top_cont1_box .wp-block-group__inner-container {
  position: inherit;
  z-index: 5;
}

.top_cont1_box::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -100px;
  width: 18.75rem;
  height: 18.75rem;
  background-image: url(/wp-content/uploads/2026/09/chara_houki_1.webp);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

.top_cont1_box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16.25rem;
  height: 16.25rem;
  background-image: url(/wp-content/uploads/2026/09/ill_hana_1.webp);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

@media (max-width: 1024px) {
  .top_cont1_box::before {
    width: 15rem;
    height: 15rem;
    bottom: -4rem;
  }

  .top_cont1_box::after {
    bottom: -3rem;
  }
}


@media (max-width: 781px) {
  .top_cont_text1 {
    text-align: left;
  }
  .top_cont_text1 br {
    display: none;
  }

  .top_cont1_box::before {
      width: 20vw;
      height: 20vw;
      bottom: -10rem;
      left: -1rem;
  }

  .top_cont1_box::after {
    top: -9em;
    width: 13rem;
    height: 13rem;
    right: -2rem;
  }
}

@media (max-width: 520px) {
  .top_cont1_box::before {
      bottom: -8rem;
  }
}


/* =========================================================
  03. 選ばれる理由セクション末尾のキャラクター配置（一点物）
========================================================= */
.top_reason_chara2 {
  margin-top: 5rem;
}

.top_reason_chara2 .wp-block-group__inner-container {
  position: relative;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.top_reason_chara2 figure {
  position: absolute;
  left: 0;
  top: -6rem;
  width: min(20vw, 300px);
  z-index: 1;
}

@media (max-width: 781px) {
  .top_reason_chara2 figure {
    top: -3rem;
  }
}


/* =========================================================
  04. 実績・コラム（新着記事一覧）
  背景ラップ（白背景の外枠）自体は他ページでも使う必要が出たため
  custom.cssの共通コンポーネントへ移設（.works_wrap/.works_inner）。
  ここに残すのは「新着一覧をflexで並べる」というTOP固有のレイアウトのみ。
========================================================= */
ul.top_works_new {
  display: flex;
  border: none !important;
  gap: 1rem;
}

@media (max-width: 781px) {
  ul.top_works_new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  ul.top_works_new {
    grid-template-columns: 1fr;
    gap: 2rem !important;
  }
}

ul.top_works_new li {
  border: 1px solid #DEDEDE;
  padding: 0 !important;
}

ul.top_works_new li:last-child {
  border: 1px solid #DEDEDE;
}

ul.top_works_new li time,
ul.top_works_new li div,
ul.top_works_new li a {
  padding: .5rem var(--st-pad--container);
  display: block;
}

ul.top_works_new li time {
  padding-top: 1rem;
}

ul.top_works_new li a {
  font-weight: 600;
}

ul.top_works_new li span {
  display: none;
}

ul.top_works_new li .wp-block-latest-posts__featured-image,
ul.top_works_new li .wp-block-latest-posts__featured-image a {
  padding: 0;
}

ul.top_works_new li .wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

figure.works_hana {
  position: absolute;
  bottom: -4rem;
  width: 16rem;
}

@media (max-width: 781px) {
  figure.works_hana {
    width: 10rem;
    bottom: -3rem;
  }
}


/* =========================================================
  05. お知らせセクション（背景画像が一点物のため専用扱い）
========================================================= */
.top_news_wrap {
  position: relative;
  padding-top: 4rem !important;
  background-image: url(../img/news_bg1.webp);
  background-repeat: no-repeat;
  background-position: left center;
}

.top_news h2 {
  margin-bottom: 1rem;
}

.news_line {
  margin: 0 auto 3rem !important;
  max-width: 80%;
}

.top_news_post {
  background-color: rgb(255 255 255 / 80%);
  border-radius: 16px;
  margin-bottom: 5rem !important;
}

.top_news_wrap .top_news ul,
.top_news_wrap .top_news li {
  border: 0;
}

.top_news_wrap .top_news ul {
  padding: 2.5rem var(--ark-pad--container);
  margin-right: var(--ark-pad--container);
  margin-left: var(--ark-pad--container);
  max-height: 280px;
  overflow-y: auto;
}

/* 標準の太いスクロールバーだとpaddingを埋めてしまうため細く目立たなくする */
.top_news_wrap .top_news ul::-webkit-scrollbar {
  width: 6px;
}

.top_news_wrap .top_news ul::-webkit-scrollbar-track {
  background: transparent;
}

.top_news_wrap .top_news ul::-webkit-scrollbar-thumb {
  background-color: var(--c-border);
  border-radius: 3px;
}

.top_news_wrap .top_news li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1rem !important;
}

.top_news_wrap .top_news li a {
  font-weight: 700;
}

.top_news_wrap .top_news li time {
  width: 110px;
}

.top_news_wrap .top_news li .wp-block-latest-posts__post-category {
  display: none;
}

@media (max-width: 781px) {
  .top_news_wrap .top_news li {
    flex-direction: column;
    gap: .5rem;
    align-items: flex-start;
  }
}
