@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;
}

/*後から消すところ-----------------*/

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: #282f88;
  --cp-green:#93c64c;
  --cp-lightblue: #0068b6;
  --cp-emerald: #449485;
}

.cp-color {
  color: var(--cp-color);
}

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


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

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

main {
  padding-top: 105px;
}

@media screen and (max-width: 767.98px) {
  main {
    padding-top: 65px;
  }
}

@media screen and (min-width: 768px) and (max-width:1023.98px) {
  main {
    padding-top: 75px;
  }
}

section {
  padding: clamp(70px, 6vw, 110px) 0!important;
}

.container {
  width:92%;
  max-width: 1120px;
  margin: 0 auto;
}

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

.max-1120 {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
  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;
}

.top-title h2 {
  font-size:clamp(28px, 3vw, 40px);
  font-weight: bold;
  /* text-align: center!important; */
  color: var(--cp-color);
}

.sub-english {
  text-transform: uppercase;  
}

.btn-gradation:hover {
  background: linear-gradient(90deg,rgb(147,198,76),rgb(0,104,182));
  color: #fff;
}

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

/* 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__item.is-textLeft .top-service__desc {
  transform: translateX(72px);
}

.top-service__item.is-textRight .top-service__desc {
  margin-left: auto;
  transform: translateX(-72px);
}

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

.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　お問い合わせ
***************************************************/
.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;
}

