@charset "UTF-8";
/* =========================================================
   分譲実績ページ（page-works.php）専用スタイル
   ※ functions.php が assets/css/ 内のCSSを自動で読み込みます
   ※ style.css（共通）のあとに読み込まれます
   ※ ページタイトル帯・パンくずは style.css の
     全ページ共通パーツ（.page-hero / .breadcrumb）を使用しています
   ※ 下部の「シエルセーヌ」シリーズ関連リンクも style.css の
     全ページ共通パーツ（.series-links）を使用しています
========================================================= */

.l-works {
  --works-navy: #013e5b;      /* 見出しの濃紺 */
  --works-blue: #0a87bf;      /* 表ヘッダー・バッジ・ボタンの青 */
  --works-blue-deep: #006baf; /* 実績サマリーの枠線 */
  --works-blue-pale: #72b1d4; /* カード区切り線のアクセント */
  --works-stripe: #efefef;    /* 表のストライプ */
  --works-note: #eeeeee;      /* カード下部の注記背景 */
}

/* 共通インナー（style.css の --container: 1200px に合わせる） */
.works-intro__inner,
.works-record__inner,
.works-lots__inner,
.works-table__inner {
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}


/* =========================================================
   1. リード
========================================================= */
.works-intro {
  margin-top: 80px;
  text-align: center;
}

.works-intro__title {
  color: var(--works-navy);
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .1em;
  text-indent: .1em;
}

.works-intro__lead {
  margin-top: 34px;
  color: var(--works-navy);
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: .06em;
}


/* =========================================================
   2. 実績サマリー（北摂・阪神間で分譲2,000棟以上）
========================================================= */
.works-record {
  margin-top: 86px;
}

.works-record__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 291px;
  padding: 40px 45px;
  border: 4px solid var(--works-blue-deep);
}

.works-record__body {
  flex: 1 1 auto;
}

.works-record__label {
  font-size: 1.7rem;
  line-height: 1.6;
  letter-spacing: .04em;
}

.works-record__title {
  margin-top: 14px;
  color: #053e5c;
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .02em;
}

.works-record__text {
  margin-top: 20px;
  font-size: 1.6rem;
  line-height: 1.9;
  letter-spacing: .03em;
}

.works-record__media {
  flex: 0 0 auto;
  width: 450px;
}

.works-record__logo {
  text-align: center;
  line-height: 0;
}

/* SVG下部の「30年にむけて」はデザインに無いため、上端基準で切り取って表示する */
.works-record__logo img {
  width: 246px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
}

/* --- 30周年記念ページへのボタン --- */
.works-record__btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  margin-top: 22px;
  padding: 8px 24px;
  color: #fff;
  background-color: var(--works-blue);
}

.works-record__btn-icon {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.works-record__btn-body {
  flex: 1 1 auto;
  text-align: center;
}

.works-record__btn-sub {
  display: block;
  font-size: 1.5rem;
  line-height: 1.4;
  letter-spacing: .04em;
}

.works-record__btn-main {
  display: block;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
}


/* =========================================================
   3. シエルセーヌシリーズの分譲地一覧
========================================================= */
.works-lots {
  margin-top: 90px;
}

.works-lots__title {
  color: var(--works-navy);
  font-size: 3.4rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  text-indent: .1em;
  text-align: center;
}

.works-lots__list {
  display: flex;
  flex-wrap: wrap;
  gap: 58px 30px;
  margin-top: 58px;
}

/* --- 分譲地カード --- */
.lot-card {
  display: flex;
  flex-direction: column;
  width: calc((100% - 30px) / 2);
}

/* カード見出し（現場名＋区画数バッジ） */
.lot-card__head {
  display: flex;
  align-items: stretch;
  min-height: 52px;
}

.lot-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 4px 16px;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-indent: .1em;
}

.lot-card__badge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 130px;
  padding: 10px 20px 10px 34px;
  color: #fff;
  background-color: var(--works-blue);
  -webkit-clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(24px 0, 100% 0, 100% 100%, 0 100%);
}

.lot-card__badge-num {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .02em;
}

.lot-card__badge-unit {
  margin-left: 4px;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .06em;
}

/* 写真 */
.lot-card__img img {
  width: 100%;
  height: auto;
}

/* 所在エリアのタグ */
.lot-card__area {
  align-self: flex-start;
  margin-top: 24px;
  padding: 4px 16px;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.6;
  letter-spacing: .08em;
  background-color: #2a2a2a;
}

/* 種別（建築条件付宅地分譲 など） */
.lot-card__type {
  position: relative;
  margin-top: 14px;
  padding-bottom: 16px;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .06em;
  border-bottom: 1px solid #e6e6e6;
}

/* 区切り線中央の青いアクセント */
.lot-card__type::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 31.25%;
  width: 37.5%;
  height: 1px;
  background-color: var(--works-blue-pale);
}

/* 所在地・交通 */
.lot-card__row {
  display: flex;
  gap: 32px;
  padding: 12px 0;
  border-bottom: 1px dotted #b5b5b5;
}

.lot-card__label {
  flex: 0 0 auto;
  width: 3.8em;
  font-size: 1.7rem;
  line-height: 1.8;
  letter-spacing: 0;
  text-align: justify;
  -moz-text-align-last: justify;
  text-align-last: justify;
}

.lot-card__data {
  flex: 1 1 auto;
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.8;
  letter-spacing: .04em;
}

.lot-card__spec {
  margin-bottom: 30px;
}

/* 注記（2枚のカードで下端が揃うよう margin-top: auto で押し下げる） */
.lot-card__note {
  margin-top: auto;
  padding: 22px 26px;
  font-size: 1.6rem;
  line-height: 1.9;
  letter-spacing: .04em;
  background-color: var(--works-note);
}

/* 「詳細を見る（物件サイト）」ボタン（カード幅いっぱい。デザインは cielscene-projects の .cp-btn と同じ） */
.lot-card__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  margin-top: 18px;
  padding: 10px 16px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  background-color: #3b3b3b;
  isolation: isolate;
  overflow: hidden;
  transition: opacity .3s;
}

/* ボタンの楕円模様 */
.lot-card__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/cielscene-projects/yoko_oval.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: .14;
  pointer-events: none;
  z-index: -1;
}

.lot-card__btn:hover,
.lot-card__btn:focus-visible {
  color: #fff;
  opacity: .8;
}

.lot-card__btn-label {
  position: relative;
  padding-left: 22px;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
}

/* ラベル左の三角アイコン */
.lot-card__btn-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent #fff;
  transform: translateY(-50%);
}

.lot-card__btn-note {
  font-size: 1.5rem;
  letter-spacing: .06em;
}


/* =========================================================
   4. 分譲実績リスト（表）
========================================================= */
.works-table {
  margin-top: 100px;
}

.works-table__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* 見出しは読み上げ用（画面上はデザイン通り非表示） */
.works-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.works-table__th {
  height: 65px;
  padding: 10px 30px;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-align: left;
  background-color: var(--works-blue);
}

.works-table__th--name  { width: 52%; }
.works-table__th--area  { width: 25%; }
.works-table__th--units { width: 23%; }

.works-table__td {
  height: 60px;
  padding: 10px 30px;
  font-size: 1.7rem;
  line-height: 1.6;
  letter-spacing: .06em;
  vertical-align: middle;
}

/* 偶数行のストライプ */
.works-table__row:nth-child(even) .works-table__td {
  background-color: var(--works-stripe);
}


/* =========================================================
   5. SP（〜767px）
========================================================= */
@media screen and (max-width: 767px) {

  /* --- リード --- */
  .works-intro {
    margin-top: 46px;
  }

  .works-intro__title {
    font-size: 2rem;
    line-height: 1.6;
    letter-spacing: .04em;
    text-indent: .04em;
  }

  .works-intro__lead {
    margin-top: 20px;
    font-size: 1.4rem;
    line-height: 1.9;
  }

  /* --- 実績サマリー --- */
  .works-record {
    margin-top: 48px;
  }

  .works-record__box {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    min-height: 0;
    padding: 28px 20px 30px;
    border-width: 3px;
  }

  .works-record__label {
    font-size: 1.4rem;
  }

  .works-record__title {
    margin-top: 8px;
    font-size: 1.9rem;
    letter-spacing: 0;
  }

  .works-record__text {
    margin-top: 14px;
    font-size: 1.4rem;
    line-height: 1.85;
  }

  /* SP幅では文章を自然に折り返す */
  .works-record__text br,
  .works-intro__lead br {
    display: none;
  }

  .works-record__media {
    width: 100%;
  }

  .works-record__logo img {
    width: 190px;
    height: 124px; /* PCと同じ比率で「30年にむけて」を切り取る */
  }

  .works-record__btn {
    min-height: 60px;
    margin-top: 18px;
    padding: 8px 16px;
  }

  .works-record__btn-sub {
    font-size: 1.2rem;
  }

  .works-record__btn-main {
    font-size: 1.7rem;
  }

  /* --- 分譲地一覧 --- */
  .works-lots {
    margin-top: 56px;
  }

  .works-lots__title {
    font-size: 2rem;
    letter-spacing: .06em;
    text-indent: .06em;
  }

  .works-lots__list {
    gap: 44px;
    margin-top: 30px;
  }

  .lot-card {
    width: 100%;
  }

  .lot-card__head {
    min-height: 44px;
  }

  .lot-card__name {
    padding: 4px 8px;
    font-size: 1.6rem;
    letter-spacing: .04em;
    text-indent: .04em;
  }

  .lot-card__badge {
    min-width: 100px;
    padding: 8px 14px 8px 26px;
    -webkit-clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  }

  .lot-card__badge-num {
    font-size: 1.9rem;
  }

  .lot-card__badge-unit {
    font-size: 1.3rem;
  }

  .lot-card__area {
    margin-top: 16px;
    font-size: 1.3rem;
  }

  .lot-card__type {
    margin-top: 10px;
    padding-bottom: 12px;
    font-size: 1.6rem;
  }

  .lot-card__row {
    gap: 16px;
    padding: 10px 0;
  }

  .lot-card__label,
  .lot-card__data {
    font-size: 1.4rem;
  }

  .lot-card__spec {
    margin-bottom: 20px;
  }

  .lot-card__note {
    padding: 16px 18px;
    font-size: 1.3rem;
    line-height: 1.85;
  }

  .lot-card__btn {
    min-height: 50px;
    margin-top: 14px;
  }

  .lot-card__btn-label {
    font-size: 1.5rem;
  }

  .lot-card__btn-note {
    font-size: 1.3rem;
  }

  /* --- 実績リスト（表）：1行を縦積みに --- */
  .works-table {
    margin-top: 56px;
  }

  .works-table__table,
  .works-table__table tbody,
  .works-table__row,
  .works-table__td {
    display: block;
    width: auto;
  }

  .works-table__table thead {
    display: block;
  }

  /* SPではヘッダー行の代わりに各セルへラベルを表示する */
  .works-table__row--head {
    display: block;
    padding: 0;
    border-bottom: none;
  }

  .works-table__th--area,
  .works-table__th--units {
    display: none;
  }

  .works-table__th--name {
    display: block;
    width: auto;
    height: auto;
    padding: 10px 16px;
    font-size: 1.5rem;
    text-align: center;
  }

  .works-table__row {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e2e2;
  }

  .works-table__row:nth-child(even) {
    background-color: var(--works-stripe);
  }

  .works-table__row:nth-child(even) .works-table__td {
    background-color: transparent;
  }

  .works-table__td {
    height: auto;
    padding: 0;
    font-size: 1.4rem;
    line-height: 1.7;
  }

  .works-table__td--name {
    font-weight: 500;
  }

  .works-table__td--area,
  .works-table__td--units {
    display: inline;
    font-size: 1.3rem;
  }

  .works-table__td--area::before,
  .works-table__td--units::before {
    content: attr(data-label) "：";
    color: #6b6b6b;
  }

  .works-table__td--units::before {
    margin-left: 1em;
  }

}


/* =========================================================
   6. タブレット（768〜1024px）の微調整
========================================================= */
@media screen and (min-width: 768px) and (max-width: 1024px) {

  .works-record__box {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .works-record__media {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }

  .works-intro__title {
    font-size: 3rem;
  }

  .works-lots__title {
    font-size: 2.8rem;
  }

  .works-record__title {
    font-size: 3rem;
  }

  .lot-card__name {
    font-size: 1.7rem;
  }

  .works-table__th,
  .works-table__td {
    padding: 10px 18px;
    font-size: 1.5rem;
  }
}
