/*
Theme Name: Xwrite child
Theme URI: https://xwrite.jp/
Author: XServer Inc.
Author URI: https://www.xserver.co.jp/
Description: エックスサーバー株式会社が提供するWordPressテーマ「Xwrite」
Version: 2.0.0
Template: xwrite
*/

/* general */
.d_inline_block {
  display: inline-block !important;
}
.text_center {
  text-align: center !important;
}
.mt_0 {
  margin-top: 0 !important;
}
.mt_10 {
  margin-top: 10px !important;
}
.mt_20 {
  margin-top: 20px !important;
}
.mt_30 {
  margin-top: 30px !important;
}
.pt_0 {
  padding-top: 0 !important;
}
.pb_0 {
  padding-bottom: 0 !important;
}
.pl_0 {
  padding-left: 0 !important;
}
.pr_0 {
  padding-right: 0 !important;
}

@media screen and (min-width:600px) {
  .lead_text {
    text-align: center;
    margin: 0 auto;
  }
  .lead_text.greetings_text {
    max-width: 800px;
  }
  .lead_text>div {
    display: inline-block;
  }
  .lead_text p {
    margin-top: 0;
    text-align: left;
  }
  .lead_text p+p {
    margin-top: 10px;
    text-align: left;
  }
}

.btn_hover .xw-block-button__link:hover {
  background: #50A154 !important;
  border-color: #50A154 !important;
  color: #fff !important;
}

/* header */
.header .btn_header a,
.header-fix .btn_header a,
.gnav-fix .gNavList > .menu-item.btn_header a {
  background: #f06e12;
  border: 2px solid #f06e12;
  border-radius: 4px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin-left: 12px;
  padding: 10px 20px;
  transition: all 0.3s;
}
.header .btn_header a:hover,
.header-fix .btn_header a:hover {
  background: #fff;
  color: #f06e12;
}
.gnav-fix .gNavList > .menu-item.btn_header {
  border-top: 1px solid #eee;
  padding-top: 20px;
  text-align: center;
}
.gnav-fix .gNavList > .menu-item.btn_header a {
  display: inline-block;
  font-size: 18px;
  margin-left: 0;
  padding: 10px 20px;
}

/* footer */
.footer_logo img {
  background: #fff;
  border-radius: 6px;
  padding: 5px;
}
.footerTop {
  margin-bottom: 0 !important;
}
@media screen and (min-width:600px) {
  .footer_logo img {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
  }
}

/* mainvisual */

.mainVisual.mainVisual-front-page.height-self {
  height: calc(100dvh - 60px);
}
@media (min-width: 768px) {
  .mainVisual.mainVisual-front-page.height-self {
    height: calc(100dvh - 103px);
  }
}
/* mainvisual LOGO */
.mainVisual .item__info--caption {
  font-size: 6rem;
  font-family: "Noto Serif JP";
}
.main_visual_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
.main_visual_logo img {
  animation: zoomIn 2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes zoomIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* news_block */
.news_block.xw-block-post-list.type-slider .xw-post-article-media__body--title {
  margin-top: 5px;
}
.news_block.xw-block-post-list.type-slider .slick-arrow.slick-next::before,
.news_block.xw-block-post-list.type-slider .slick-arrow.slick-prev::before {
  background: #fff;
}
.news_block.xw-block-post-list.type-slider .slick-arrow.slick-next::after,
.news_block.xw-block-post-list.type-slider .slick-arrow.slick-prev::after {
  color: #222;
}
.news_block.xw-block-post-list.type-slider .slick-dots>li.slick-active button {
  background-color: #222;
}
/* 記事一覧 */
.articleList.type-card .xw-article-media__body--title {
  margin-top: 5px;
}
.articleList.type-card .xw-article-media__body--text {
  margin-top: 2px;
}
.articleList .article-meta {
  margin-top: 5px;
}

/* concept */
.img_concept_01 {
  background: #F2F3F5;
  border-radius: 6px;
  display: inline-block;
}

/* business_card */
.business_card {
  border-radius: 6px;
  background: #FFFFFF;
  margin-top: 30px;
  overflow: hidden;
  padding: 0 !important;
}
.business_card_img img {
  width: 100%;
}
.business_card_txt {
  margin-top: 0 !important;
  padding: 20px;
}
.business_card_h3 {
  margin: 0 0 15px !important;
}
.business_card_h4 {
  margin: 15px 0 5px !important;
}
.business_card_txt p {
  margin-top: 0 !important;
}
.business_card_lst {
  margin: 0 !important;
}
.business_card_lst li {
  margin: 0 !important;
}
@media screen and (min-width:600px) {
  .emphasis_col3_wraper,
  .emphasis_col4_wraper {
    gap: 6px;
    padding-bottom: 180px;
  }
  .emphasis_col3_wraper {
    padding-bottom: 120px;
  }
  .emphasis_col4_wraper {
    padding-bottom: 180px;
  }
  .business_card {
    height: 100%;
    margin-top: 0;
  }
  .business_card.emphasis_02 {
    transform: translateY(60px);
  }
  .business_card.emphasis_03 {
    transform: translateY(120px);
  }
  .business_card.emphasis_04 {
    transform: translateY(180px);
  }
  .business_card_txt {
    padding: 35px 35px 30px;
  }
  .emphasis_col4_wraper .business_card_txt {
    padding: 20px;
  }
}

/* usp_block */
.usp_img_block img {
  width: 100%;
}
@media screen and (max-width:768px) {
  .usp_col_txt_img,
  .usp_col_img_txt {
    margin-top: 50px !important;
  }
  .usp_col_img_txt {
    flex-direction: column-reverse;
  }
  .usp_txt_block h3 {
    margin-bottom: 20px;
  }
  .usp_txt_block p {
    font-size: 16px !important;
  }
}

/* company */
.company_col2_wraper {
  padding: 10px 20px !important;
}
.company_col2 {
  gap: 4px;
  margin-top: 0 !important;
  margin-bottom: 15px !important;
}
.company_col2_ttl,
.company_col2_txt {
  padding: 20px !important;
  position: relative;
}
.company_col2_ttl::after,
.company_col2_txt::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
}
.company_col2_ttl::after {
  background: #1f2850;
}
@media screen and (min-width:600px) {
  .company_col2_wraper {
    padding: 50px 80px !important;
  }
  .company_col2 {
    margin-bottom: 0 !important;
  }
  .company_col2_ttl,
  .company_col2_txt {
    display: flex;
    flex-wrap: wrap;
    align-self: stretch !important;
    align-items: center;
    justify-content: center;
  }
  .company_col2_txt {
    justify-content: start;
  }
  .company_col2_txt::after {
    background: #f2f3f5;
  }
  .company_col2_txt p {
    margin-top: 0 !important;
  }
  .company_col2_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* service */
.service_num {
  border-bottom: 2px solid #e1e4eb;
  padding-bottom: 10px;
  position: relative;
}
.service_num::after {
  color: #e1e4eb;
  content: "";
  display: block;
  font-size: 80px;
  font-weight: bold;
  letter-spacing: -0.03em;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 0;
}
.service_num.service_num_01::after {
  content: "01";
}
.service_num.service_num_02::after {
  content: "02";
}
.service_num.service_num_03::after {
  content: "03";
}

@media screen and (min-width:600px) {
  .service_num::after {
    font-size: 100px;
  }
  .service_num.service_num_03 {
    border-bottom: none;
    border-right: 2px solid #e1e4eb;
  }
  .service_num.service_num_03::after {
    left: 0;
    bottom: 0;
    right: auto;
    top: auto;
  }
  .service_num_ttl {
    padding-right: 15px;
  }
}

/* contact */
.contact_box {
  background-color: rgb(255 255 255 / 0.7) !important;
  max-width: 750px;
  margin: 0 auto;
}

/* achievements */
.achievements_txt {
  margin-top: 0 !important;
}

/* 個別ページ */
.achievements_item {
  border: 1px solid #666;
  border-radius: 6px;
  overflow: hidden;
  padding: 2em 2em 1em;
}

/* ================================
   Contact Form 7 基本レイアウト
   ================================ */
.cf7-form-layout {
  max-width: 640px;
  margin: 0 auto;
}
.cf7-form-layout .cf7-field {
  margin-bottom: 1.5rem;
}
/* ラベルのスタイル */
.cf7-form-layout label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 0.4rem;
}
/* 入力フィールド共通 */
.cf7-form-layout input[type="text"],
.cf7-form-layout input[type="email"],
.cf7-form-layout input[type="tel"],
.cf7-form-layout textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.7em 0.9em;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  font-size: 15px;
}
/* プレースホルダー */
.cf7-form-layout input::placeholder,
.cf7-form-layout textarea::placeholder {
  color: #999;
}
/* フォーカス時 */
.cf7-form-layout input[type="text"]:focus,
.cf7-form-layout input[type="email"]:focus,
.cf7-form-layout input[type="tel"]:focus,
.cf7-form-layout textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.4);
}
/* テキストエリアの高さ調整 */
.cf7-form-layout textarea {
  min-height: 180px;
}
/* ================================
   プライバシーポリシー同意部分
   ================================ */
/* acceptance 全体の行 */
.cf7-form-layout .cf7-privacy .wpcf7-acceptance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: 14px;
}
/* チェックボックス */
.cf7-form-layout .cf7-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
}
/* 文言・リンク部分 */
.cf7-form-layout .cf7-privacy-text a {
  display: inline-block;
  padding-left: 0.2em;
  text-decoration: underline;
}
/* 送信ボタン */
.cf7-form-layout .cf7-submit {
  margin-top: 2.5rem;
  text-align: center;
}
.cf7-form-layout .cf7-submit input[type="submit"] {
  min-width: 200px;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-align: center;
  background-color: #f06e12;
  border: 2px solid #f06e12;
  color: #fff;
  transition: all 0.3s;
}
.cf7-form-layout .cf7-submit input[type="submit"]:hover {
  background-color: #fff;
  color: #f06e12;
}
.cf7-form-layout .cf7-submit input[type="submit"]:active {
  background-color: #fff;
  color: #f06e12;
}
/* スピナーをボタンの下に表示（中央揃え） */
.cf7-form-layout .cf7-submit .wpcf7-spinner {
  display: block;
  margin: 0.5rem auto 0;
  /* 上に少し余白を取って中央に */
}
/* ================================
   エラーメッセージ / 応答メッセージ
   ================================ */
/* フィールドごとのエラー文 */
.wpcf7-not-valid-tip {
  color: #e60033;
  font-size: 13px;
  margin-top: 0.3rem;
}

/* フォーム送信後のメッセージ */
.wpcf7 form .wpcf7-response-output {
  margin: 1.5em 0 0;
  padding: 0.8em 1em;
  border-radius: 4px;
  font-size: 14px;
}
