@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(90px, 9vw, 140px) 0 !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;
}

@media (max-width: 768px) {
  .max-960 {
    padding: 0;
  }
}


/* =============================================
 front-page.php   Service 
 ============================================= */
.top-service {
  padding: clamp(90px, 9vw, 140px) 0;
}

.top-service__box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;

  display: grid;
  gap: clamp(36px, 6vw, 72px);
}

/* クリック領域は全体 */
.top-service__link {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  text-decoration: none;
  color: inherit;
  margin-bottom: 50px;
}

/* 交互レイアウト */
.top-service__item.is-textLeft .top-service__link {
  grid-template-areas: "content media";
}

.top-service__item.is-textRight .top-service__link {
  grid-template-areas: "media content";
}

.top-service__content {
  grid-area: content;
}

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


/* 見出し */
.top-service__title {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.top-service__en {
  display: block;
  font-size: clamp(44px, 5vw, 74px);
  font-weight: 800;
  color: #0f8ea4;
}

.top-service__jp {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
}

/* ===============================
   section だけ斜めにする
================================ */

section.top-business {
  position: relative;
  padding: 160px 0;
  background: linear-gradient(180deg, #6bc5de 0%, #50dcca 55%, #7fc8a8 100%);
  overflow: hidden;
  transform: skewY(5deg);
  /* ← 斜めにする */
  transform-origin: top right;
  color: #fff;
}

section.top-business .top-service__en {
  color: #fff;
}

section.top-business .top-service__jp {
  color: #fff;
}

/* ===============================
   中身は斜めを打ち消す
================================ */

section.top-business .top-service__box {
  transform: skewY(-5deg);
  /* ← 元に戻す */
}




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

/* 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;
  }
}



/***************************************************
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;
  }
}


/***************************************************
ニュースの指示内容
***************************************************/
section.top-news {
  padding: clamp(90px, 9vw, 140px) 0 0 !important;
  /*background-image: url("/wp-content/themes/twentytwentyfive-child/assets/images/top-news.jpeg");  */
}

ul.newsList {
  list-style: none;
}

.news {
  background: #fff;
  padding-bottom: 60px;
}

.news__head {
  display: flex;
  align-items: center;
  gap: 18px
}

.news__list {
  display: grid;
  gap: 16px;
  margin-top: 14px
}

.news__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.newsList {
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsList__item {
  border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.newsList__link {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 30px 0;
  text-decoration: none;
  color: inherit;
}

.newsList__date {
  flex: 0 0 auto;
  font-weight: 600;
  color: #00819d;
  width: 70px;
}

.newsList__cat {
  flex: 0 0 auto;
  font-size: .85em;
  padding: 2px 8px;
  border: 1px solid rgba(0, 0, 0, .25);
  width: 100px;
  text-align: center;
}

.newsList__title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 1件目だけ padding-top を消す */
.newsList__item:first-child .newsList__link {
  padding-top: 0;
}

/* NEWS一覧をスクロール可能にする */
.news__body {
  max-height: 240px;
  /* ← 好きな高さに調整 */
  overflow-y: auto;
  padding-right: 6px;
  /* スクロールバー分の逃げ */
}

/* SP：縦並び */
@media (max-width: 767px) {
  .newsList__link {
    display: flex;
    gap: 6px;
    flex-direction: column;
    padding: 15px 0;
  }

  .news__body {
    max-height: 230px;
  }
}


/***************************************************
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;
    padding-top: 30px;
}