@charset "UTF-8";
/*-------------------------------
	キービジュアル
-------------------------------*/
/* カンプ(1400px時)の数値
   テキスト 左100（.innerと同じ） / 写真 1400×483（画面幅いっぱい） */
.offices-kv {
  padding-top: 8rem;
  color: #243748;
}

.offices-kv__name {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.offices-kv__area {
  font-family: "Zen Kaku Gothic New", sans-serif;
  margin-top: 0.8rem;
  font-size: 1.5rem;
  font-weight: 500;
}

.offices-kv__lead {
  font-family: "Zen Kaku Gothic New", sans-serif;
  margin-top: 2.4rem;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2;
}

/*----- 写真 */
/* .inner の外に置いて画面幅いっぱいに広げる。
   横長すぎて狭い画面では帯のようになってしまうので、SPだけ比率を変える */
.offices-kv__photo {
  margin-top: 7.4rem;
}
.offices-kv__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1400/483;
  -o-object-fit: cover;
     object-fit: cover;
}

/*-------------------------------
	セクション見出し（各セクション共通）
-------------------------------*/
/* specs.scss と同じ定義。ページ単位でCSSを分けているので現状は各ページに持たせている。
   3ページ目で使うことになったら common.scss へ移すこと */
.section-title {
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.section-titleEN {
  font-family: "Inter", sans-serif;
  margin-top: 0.6rem;
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0;
}

.section-lead {
  margin-top: 3.2rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
}

/*-------------------------------
	募集貸室
-------------------------------*/
.offices-lineup {
  padding: 8.8rem 0 15.5rem;
  color: #243748;
}

.offices-lineup__text {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 2;
}

/*-------------------------------
	募集中の区画一覧
-------------------------------*/
/* 件数は更新で増減する（0件以上）。行の高さと区切り線だけで組み、
   1行ぶんの高さは「募集中」ラベル(3.6rem)＋上下の余白(2.4rem)で決まる。
   カンプでは .inner より右にずれた位置に置かれているので、.inner の外に出し、
   カンプ(1400px時)の 左314 / 幅943 / 右143 を割合のまま持たせている */
.offices-list {
  width: 67.357%;
  margin: 10rem 10.214% 0 auto;
}

/*----- 列の割り付け（PCのみ） */
/* 左から ラベル / 階・区画 / 面積・坪 / 入居時期 / 矢印。
   ラベル列の左に2.4remの余白を取るぶん、区切り線より内側から始まる。
   矢印以外はカンプ(1400px時 219/220/260/165)の比率で伸縮させる。
   入力された文字が長いときは列からはみ出さずに折り返させたいので minmax(0, …) */
/*----- 見出し行 */
/* カンプでは1行目の値の中央に載っているが、値の幅は入力される文字数で変わるので
   中央合わせにはできない。値の左端に揃えると見出しの位置が動いてしまうため、
   カンプの見出し位置（1400px時 575 / 814 / 1054）に合うずらし幅を列ごとに固定で持たせている。
   ここは値の内容に関係なく常にこの位置に出る */
.offices-list__head {
  display: grid;
  grid-template-columns: minmax(0, 219fr) minmax(0, 220fr) minmax(0, 260fr) minmax(0, 165fr) 5.5rem;
  align-items: center;
  padding-left: 2.4rem;
  padding-bottom: 3.3rem;
  font-size: 1.4rem;
  font-weight: 400;
}

.offices-list__headItem:nth-child(1) {
  padding-left: 1.8rem;
}
.offices-list__headItem:nth-child(2) {
  padding-left: 3.7rem;
}
.offices-list__headItem:nth-child(3) {
  padding-left: 1.7rem;
}

/* 1列目はラベル列なので、見出しは2列目から並べる */
.offices-list__headItem:first-child {
  grid-column: 2;
}

/*----- 各行 */
.offices-list__item {
  border-bottom: 0.1rem solid #8F989F;
}

.offices-list__link {
  display: grid;
  grid-template-columns: minmax(0, 219fr) minmax(0, 220fr) minmax(0, 260fr) minmax(0, 165fr) 5.5rem;
  align-items: center;
  padding-left: 2.4rem;
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
  color: #243748;
}

/*----- 募集中ラベル */
/* 文言は「募集中」で固定。入力項目ではない */
.offices-list__label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  height: 3.6rem;
  background: #DDE3E7;
  font-size: 1.6rem;
  font-weight: 400;
}

/*----- 値 */
/* 入力された文章が長くて折り返したとき、隣の項目とくっつかないように右へ余白を取る。
   列の位置はカンプに合わせてあるので、column-gap ではなくセル内の padding で確保する。
   入居時期（4番目）は右隣が矢印だけの列で、矢印(.8rem)の左に2.35remの空きが
   もともとあるため余白を足していない。足すと狭い画面で日付が折り返してしまう */
.offices-list__cell {
  font-size: 1.6rem;
  font-weight: 400;
}
.offices-list__cell:nth-child(2), .offices-list__cell:nth-child(3) {
  padding-right: 2.4rem;
}

/* PCでは見出し行が項目名を兼ねるので、行の中の項目名は出さない */
.offices-list__cellTitle {
  display: none;
}

/*----- 矢印 */
.offices-list__arrow {
  justify-self: center;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.8rem;
  border-color: transparent transparent transparent #243748;
}

/*----- 0件のとき */
.offices-list__empty {
  font-size: 1.6rem;
  line-height: 2;
  text-align: center;
}

/* 一覧は右にずらして置いているので、0件の文言だけのときは
   画面幅いっぱいに戻して画面の中央に置く */
.offices-list:has(.offices-list__empty) {
  width: auto;
  margin-right: 0;
  margin-left: 0;
}

@media screen and (max-width: 1023px) {
  /*----- キービジュアル */
  .offices-kv {
    padding-top: 6rem;
  }
  .offices-kv__name {
    font-size: 2.8rem;
  }
  .offices-kv__area {
    margin-top: 1.6rem;
    font-size: 1.4rem;
  }
  .offices-kv__lead {
    margin-top: 2.4rem;
    font-size: 1.4rem;
  }
  .offices-kv__photo {
    margin-top: 5rem;
  }
  /*----- 募集貸室 */
  .section-title {
    font-size: 2.8rem;
  }
  .offices-lineup {
    padding: 7rem 0 10rem;
  }
  /*----- 募集中の区画一覧 */
  /* 5列を横に並べると入力された文字が収まりきらないので、
     1区画＝1ブロックの縦積みに切り替える。
     見出し行の代わりに各行が項目名を持つ */
  .offices-list {
    width: auto;
    margin: 6rem 6rem 0;
  }
  .offices-list__head {
    display: none;
  }
  .offices-list__link {
    display: block;
    position: relative;
    padding: 2.4rem 4rem 2.4rem 0;
  }
  /* 縦積みでは項目が横に並ばないので、列を離すための余白は戻す */
  .offices-list__cell {
    display: flex;
    align-items: baseline;
    margin-top: 1.2rem;
    font-size: 1.5rem;
  }
  .offices-list__cell:nth-child(2), .offices-list__cell:nth-child(3) {
    padding-right: 0;
  }
  .offices-list__cellTitle {
    display: block;
    flex-shrink: 0;
    width: 11rem;
    font-size: 1.3rem;
  }
  /* ラベルと直下の余白を除いた項目領域の中央へ、(3.6rem + 1.2rem) / 2 だけ下げる */
  .offices-list__arrow {
    position: absolute;
    top: calc(50% + 2.4rem);
    right: 0.8rem;
    margin-top: -0.5rem;
  }
}
@media screen and (max-width: 768px) {
  /*----- キービジュアル */
  .offices-kv {
    padding-top: 2rem;
  }
  .offices-kv__name {
    font-size: 2.6rem;
  }
  .offices-kv__area {
    margin-top: 0.8rem;
    font-size: 1.4rem;
  }
  /* 1行が画面幅ぎりぎりになるので、TOPのFVリードと同じ1.3remまで落とす */
  .offices-kv__lead {
    margin-top: 2.4rem;
    font-size: 1.3rem;
  }
  /* カンプの比率(約2.9:1)のままだと帯のように薄くなるので、SPだけ16:9で切る */
  .offices-kv__photo {
    margin-top: 3.2rem;
  }
  .offices-kv__photo img {
    aspect-ratio: 16/9;
  }
  /*----- 募集貸室 */
  .section-title {
    font-size: 2.2rem;
  }
  .section-titleEN {
    font-size: 1.2rem;
  }
  .section-lead {
    margin-top: 2.4rem;
    font-size: 1.4rem;
  }
  .offices-lineup {
    padding: 5rem 0 6rem;
  }
  .offices-lineup__text {
    font-size: 1.4rem;
    margin-top: 1.4rem;
  }
  /*----- 募集中の区画一覧 */
  .offices-list {
    margin: 3.6rem 2rem 0;
  }
  .offices-list__link {
    padding: 2.4rem 3.2rem 2rem 0;
  }
  .offices-list__label {
    width: 10.4rem;
    height: 3.2rem;
    font-size: 1.4rem;
    margin-bottom: 1.6rem;
  }
  .offices-list__cell {
    margin-top: 1rem;
    font-size: 1.4rem;
  }
  .offices-list__cellTitle {
    width: 9rem;
    font-size: 1.2rem;
  }
  .offices-list__arrow {
    /* SPのラベル高と余白に合わせて (3.2rem + 1rem) / 2 にする */
    top: calc(50% + 2.1rem);
    right: 0.4rem;
  }
  .offices-list__empty {
    font-size: 1.4rem;
  }
}
/*# sourceMappingURL=offices.css.map */