@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(70px, 6vw, 110px) 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;
}

/* =============================================
 front-page.php   Service 
 ============================================= */
.top-service {
  background: #f2f4f6;
  padding: clamp(48px, 6vw, 84px) 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__media {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  z-index: 3;
  aspect-ratio: 2/1;
}

.top-service__media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* 見出し */
.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: #1A5078;
}

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

/* 説明ボックス（白いカード） */
.top-service__content {
  position: relative;
  padding-top: 6px;
  display: flex;
  flex-direction: column;
}

.top-service__desc {
  margin-top: 22px;
  background: #fff;
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  max-width: 620px;
  position: relative;
  z-index: 5;
}

/* “少し被せる”調整：PCだけ横にずらしてスクショっぽく */
.top-service__item.is-textLeft .top-service__desc {
  transform: translateX(72px);
}

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

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

.top-service__desc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.95;
  color: #222;
}

/* hover（任意：控えめ） */
.top-service__link:hover .top-service__media img {
  transform: scale(1.02);
}

.top-service__media img {
  transition: transform .35s ease;
}






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

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