@charset "utf-8";

* {
  font-family: "Roboto", "Helvetica Neue", Arial, "Lato", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック体", "Yu Gothic", "游ゴシック", Meiryo, sans-serif;
}

p {
  /* 文節での改行を抑制し、文字単位で改行させる */
  word-break: break-all !important;
  /* iOSでの自動サイズ調整をオフにする（念のため） */
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}


/* * {
  font-family: Meiryo, sans-serif;
} */


/*後から消すところ-----------------*/
/* * { outline: 1px solid pink !important; }

html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}


#page, #wrapper, .site-container {
    overflow: hidden !important;
} */
/*後から消すところ-----------------*/

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

p,
li,
dd,
dt {
  max-width: 100%;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    /* 基準を固定 */
  }
}

.up_ymd {
  font-family: 'Roboto', sans-serif;
}


.shippori {
  font-family: "Shippori Mincho B1", serif;
}

:root {
  --cp-color: #1A5078;
}


html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  /* これを追加 */
}


/* 管理バーを下に移動 */
#wpadminbar {
  top: auto !important;
  bottom: 0;
}

/* WordPressが自動でつける上マージンを打ち消す */
html {
  margin-top: 0 !important;
}


section {
  padding: clamp(60px, 9vw, 140px) 0;
}


p {
  text-wrap: wrap !important;
}


.max-960 {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-visual__btmbar {
  background-color: var(--cp-color);
  color: #fff;
  font-size: 20px;
  padding: 30px;
  text-align: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 30;
}

.page-visual__btmbar p {
  margin: 0;
}


/* ===========================
   幅を上下で揃えるための上書き
   =========================== */

/* 2カラムの左右幅を同じにする（＝白ボックス幅と画像幅が一致しやすい） */
.top-service__link {
  grid-template-columns: 1fr 1fr;
  /* ←ここが肝 */
  align-items: start;
  /* 見出しが大きいので上揃えの方が安定 */
}

/* 説明ボックスを「カラム幅いっぱい」にする（=画像と同じ幅） */
.top-service__desc {
  max-width: none;
  /* 以前の max-width:620px を無効化 */
  width: 100%;
}

.top-service__desc p {
  line-height: 2.0rem;
}

/* 画像（←頂いた手直し内容を反映しつつ、object-fitが効くように調整） */
.top-service__media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  z-index: 3;
}

.top-service__media img {
  width: 100%;
  height: 100%;
  /* ←height:auto だと object-fit が効きにくいので変更 */
  display: block;
  object-fit: cover;
  object-position: center;
}

/* SPでは被せを解除（既に入れてる場合は不要） */
@media (max-width: 768px) {
  .top-service__desc {
    transform: none !important;
    margin-left: 0 !important;
  }
}



/* ===== SP ===== */
@media (max-width: 768px) {
  .top-service__link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }

  .top-service__desc {
    max-width: none;
  }

  .top-service__item.is-textLeft .top-service__desc,
  .top-service__item.is-textRight .top-service__desc {
    transform: none;
    margin-left: 0;
  }

  .top-service__jp {
    font-size: 13px;
  }
}

/* ===========================
   768px未満：画像 → 文字 の縦積み
   =========================== */
@media (max-width: 767px) {

  .top-service__item.is-textLeft .top-service__link,
  .top-service__item.is-textRight .top-service__link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
    gap: 20px;
  }

  .top-service__item.is-textRight .top-service__content {
    align-items: start;
  }

  /* 念のため明示（左右入れ替えを完全に無効化） */
  .top-service__content {
    grid-area: content;
  }

  .top-service__media {
    grid-area: media;
  }

  /* 被せ・横ズラしは解除 */
  .top-service__desc {
    transform: none !important;
    margin-left: 0 !important;
  }
}


/***************************************************
各ページ　header下の指示
***************************************************/




/***************************************************
page-contact　お問い合わせ
***************************************************/

.hk-aboutIntro__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.hk-aboutIntro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 68px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
}

a.btn__color {
  color: #0f8ea4;
  font-size: 16px;
  font-weight: bold;
  background: transparent;
  padding: 18px 30px;
  border: 3px solid #0f8ea4;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  transition: .3s;
  text-decoration: none;
}

a.btn__color::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: linear-gradient(45deg, #6bc5de 0%, #50dcca 55%, #7fc8a8 100%);
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform ease .3s;
}

a.btn__color:hover {
  color: #fff;
}

a.btn__color:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}


a.btn2__color {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background: transparent;
  padding: 18px 30px;
  border: 3px solid #fff;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  transition: .3s;
  text-decoration: none;
}

a.btn2__color::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: #fff;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform ease .3s;
}

a.btn2__color:hover {
  color: #0f8ea4;
}

a.btn2__color:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}


a.btn3__color {
  color: #0f8ea4;
  font-size: 16px;
  font-weight: bold;
  background: transparent;
  padding: 18px 30px;
  border: 3px solid #0f8ea4;
  border-radius: 6px;
  position: relative;
  z-index: 1;
  transition: .3s;
  text-decoration: none;
}

a.btn3__color::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: #0f8ea4;
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform ease .3s;
}

a.btn3__color:hover {
  color: #fff;
}

a.btn3__color:hover::before {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}


@media (max-width: 767px) {
  a.btn__color {
    padding: 12px 14px;
  }
}


/***************************************************
page-contact　お問い合わせ
***************************************************/
main#page-contact {
  padding: clamp(50px, 5vw, 140px) 10px !important;
}

.contact-form {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 200px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.contact-attention {
  margin: 0px auto 70px auto;
}

p.tx-left {
  margin-bottom: 0;
}


.telBox {
  display: flex;
  justify-content: center;
}

.telBox a {
  text-decoration: none;
  padding: 1rem 2rem;
  border: #0068b7 3px solid;
  width: 60%;
  color: white;
  font-size: 2.8rem;
  font-weight: 700;
  background: #0068b7;
}

.telBox a:hover {
  opacity: 0.8;
}

.contact_tel {
  padding: 50px 0 100px;
}

p.timetext {
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

div#mailform {
  padding: 100px 0 0;
  border-top: 1px rgb(173 168 168) dashed;
}

@media (max-width: 767px) {
  .telBox a {
    width: 100%;
    font-size: 1.8rem;
  }
}