@charset "UTF-8";

/*
  adjust.css — リニューアル用 C21物件検索（tksn）調整CSS
  ========================================================
  新テーマの styles.css には含まれない、tksn ページ専用のレイアウト・
  コンポーネント・c21.to上書きスタイルをまとめたファイル。
  styles.css の後に読み込むこと（functions.php でdep指定済み）。

  対象HTML: /st/*.html → stpost.cgi が c21.to をプロキシして WP header/footer を結合
  ========================================================
*/

/* ============================================================
   CSS カスタムプロパティ（tksn ページ専用）
   ============================================================ */
:root {
  --c21-black:  #414042;  /* C21 ブランドカラー */
  --c21-gold:   #beaf87;  /* C21 サブゴールド */
  --light-gold: #dcd0ae;  /* サイドバー背景 */
  --side-red:   #f22c0f;  /* 会員登録ボタン */
  --side-green: #34ab37;  /* メリットボタン */
}

/* ============================================================
   1. テンプレートページ レイアウト基盤
      .pg_body / .pg_bodyInner / .pg_2col / .sidebar
   ============================================================ */

.pg_body {
  flex-grow: 1;
}

.pg_2col {
  display: flex;
}

.pg_2col > main {
  flex-grow: 1;
}

.pg_bodyInner {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.sidebar {
  flex-basis: 240px;
  flex-shrink: 0;
  margin-left: 60px;
}

/* /template/ ページ専用：新テーマヘッダー高さ分の padding-top 上書き */
body.page-template-page-template .pg_bodyInner {
  padding-top: 100px;
}

@media (max-width: 767px) {
  .pg_2col {
    flex-direction: column;
  }

  .pg_bodyInner {
    padding-right: 10px;
    padding-left: 10px;
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .pg_2col > .pg_mainCol {
    width: auto;
    padding-bottom: 0;
  }

  .sidebar {
    width: auto;
    margin-top: 40px;
    margin-left: 0;
  }

  body.page-template-page-template .pg_bodyInner {
    padding-top: 60px;
  }

  .des90 .fixed_search {
    left: 0;
  }
}

/* ============================================================
   2. サイドバー コンポーネント
   ============================================================ */

.sidebar > * + * {
  margin-top: 20px;
}

/* ---- side-mypage ----------------------------------------- */
.side-mypage {
  position: relative;
  padding: 15px 10px;
  border: 3px solid var(--c21-gold);
  background-color: var(--light-gold);
}

.side-bukkensu__title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

.side-bukkensu-box {
  margin-top: 10px;
  padding: 15px 10px 12px;
  background-color: #fff;
}

.side-bukkensu-box-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}

.side-bukkensu-box-row + .side-bukkensu-box-row {
  margin-top: 10px;
}

.side-bukkensu-box__number > strong {
  color: var(--side-red);
  font-size: 1.5rem;
}

.side-btns-group {
  margin-top: 20px;
}

.side-btns-group__title {
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.25;
  text-align: center;
}

.side-btns {
  margin-top: 10px;
}

.side-btns > li + li {
  margin-top: 8px;
}

.side-btn {
  width: 100%;
  padding: 0.75em;
  font-size: 1.125rem;
  font-weight: bold;
}

.side-btn.-register {
  background-color: var(--side-red);
  color: #fff;
}

.side-btn.-merit {
  background-color: var(--side-green);
  color: #fff;
}

.side-login {
  margin-top: 20px;
}

.side-login__title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

.side-login-inputs {
  margin-top: 10px;
}

.side-login-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-login-input + .side-login-input {
  margin-top: 2px;
}

.side-login-input-title {
  flex: 1 0 70px;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1;
  white-space: nowrap;
}

.side-login-input-body {
  flex-grow: 1;
  margin-left: 10px;
}

.side-login-input-body > input {
  width: 100%;
  height: 26px;
  padding: 0.25em;
  border: 1px solid #e5e5e5;
  font-size: 0.875rem;
}

.side-login-submit {
  margin-top: 8px;
}

.side-login-submit > .submit-btn {
  width: 100%;
  padding: 0.75em;
  background-color: var(--c21-black);
  color: var(--c21-gold);
  font-size: 1.125rem;
  font-weight: bold;
}

.side-login-forget {
  margin-top: 6px;
  font-size: 0.75rem;
  text-align: center;
}

/* ---- side-ranking ---------------------------------------- */
.side-ranking {
  padding: 5px;
  padding-top: 15px;
  background-color: var(--light-gold);
}

.side-ranking__title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

.side-ranking-tksn {
  margin-top: 10px;
  padding-top: 5px;
  background-color: #fff;
}

[id='side-ranking'] {
  padding: 5px 10px;
  overflow-y: auto;
}

[id='side-ranking'] table {
  width: 100%;
  line-height: 1.5;
}

[id='side-ranking'] > .tksn_box > table > tbody > tr {
  display: block;
  width: 100%;
}

[id='side-ranking'] > .tksn_box > table > tbody > tr + tr {
  margin-top: 10px;
}

[id='side-ranking'] > .tksn_box > table > tbody > tr > td {
  display: block;
}

[id='side-ranking'] table[bgcolor='#e0e0e0'] > tbody > tr:nth-child(-n + 2) {
  border: 1px solid #e0e0e0;
  border-left: none;
}

[id='side-ranking'] * {
  font-family: inherit !important;
}

.side-ranking-tksn .syosaia {
  display: block;
  height: 72px;
  overflow: hidden;
}

.side-ranking-tksn .syosaia > img {
  display: block !important;
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
}

/* ---- side-area ------------------------------------------- */
.side-area {
  padding: 5px;
  padding-top: 15px;
  background-color: var(--light-gold);
}

.side-area__title {
  font-size: 1.25rem;
  font-weight: bold;
  text-align: center;
}

.side-area-list-group {
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #fff;
}

.side-area-list > li {
  font-size: 0.9375rem;
  line-height: 2;
  list-style: disc inside;
}

.side-area-list > li::marker {
  color: #EC6C00;
}

/* ============================================================
   3. c21.to コンテンツ 上書き（adjust.css 由来）
   ============================================================ */

/* SP 余白リセット ----------------------------------------- */
.tktSpStyle #taktsmt_wrap:not(html) {
  padding: 0;
}

.tktSpStyle #taktsmt_wrap > *:last-child:not(html) {
  margin-bottom: 0 !important;
}

.tktSpStyle.body_des200 .tk-default:not(html) {
  background-color: #fff !important;
}

.tktSpStyle .taktsmt_nrb:not(html) {
  margin-right: 0;
  margin-left: 0;
}

.tktSpStyle .taktsmt_dtltbl:not(html) {
  padding-right: 0;
  padding-left: 0;
}

.tktSpStyle table#data_summary:not(html) {
  width: 100% !important;
  margin-right: 0;
  margin-left: 0;
}

.tktSpStyle table#data_summary + br,
.tktSpStyle table#data_summary ~ form + br {
  display: none;
}

.tktSpStyle.body_des201 .tk-default:not(html) {
  padding: 0;
}

.tktSpStyle .taktsmt_loan span.dnone {
  display: block !important;
}

.tktSpStyle table.taktsmt_dtltbl_area + table.tk-nobd {
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}

.tktSpStyle table.taktsmt_dtltbl_area + table.tk-nobd td {
  vertical-align: top;
}

/* 汎用打ち消し -------------------------------------------- */
body:not(_) {
  text-align: justify;
}

*:not(body) {
  color: inherit;
  font-family: inherit;
  line-height: inherit;
}

a:not(_) {
  color: inherit;
}

.type-page > * + * {
  margin-top: 0;
}

/* WP パンくずを非表示（c21.to 側のパンくずを使用） */
body.page-template-page-template .breadcrumb {
  display: none;
}

/* c21.to パンくず（#taktpankuzu）スタイル --------------- */
body.page-template-page-template #pankuzu,
body.page-template-page-template #taktpankuzu {
  display: flex;
  position: relative;
  top: -100px;         /* 新テーマ PC ヘッダー高さに合わせる */
  align-items: center;
  height: auto;
  margin: 0;
  margin-bottom: -100px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
  line-height: 1;
}

body.page-template-page-template #pankuzu a,
body.page-template-page-template #taktpankuzu a {
  padding: 0;
  background-image: none;
}

#pankuzu > li:first-child a,
#taktpankuzu > li:first-child a {
  display: block;
  position: relative;
  width: 1em;
  height: 1em;
  overflow: hidden;
  text-indent: -100vw;
  white-space: nowrap;
}

#pankuzu > li:first-child a::before,
#taktpankuzu > li:first-child a::before {
  content: '\f015';
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  font-family: 'Font Awesome 6 Free';  /* 新テーマは FA6 */
  font-weight: 600;
  line-height: 1em;
  text-align: center;
  text-indent: 0;
}

body.page-template-page-template #pankuzu > li + li::before,
body.page-template-page-template #taktpankuzu > li + li::before {
  content: '>';
  margin-right: 0.5em;
  margin-left: 0.5em;
}

body.page-template-page-template #taktpankuzu > span {
  line-height: 35px;
}

@media (max-width: 767px) {
  body.page-template-page-template #pankuzu,
  body.page-template-page-template #taktpankuzu {
    top: -60px;        /* 新テーマ SP ヘッダー高さに合わせる */
    margin-bottom: -60px;
  }
}

/* c21.to フッター（旧電話番号）を非表示 */
div#taktFormBody div#foot {
  display: none;
}

/* 物件詳細ページ 余白打ち消し */
.pagebody .main > center > #des83wrapper > :last-child {
  margin-bottom: 0;
}

/* マイページ */
#taktmypage {
  font-size: 13px;
  line-height: 1.7;
}

#taktmypage h2.taktmypageh2 {
  margin-top: 46px;
}

/* body.page-template-page-template のMVタイトル色 */
body.page-template-page-template .pg_mv__title {
  color: #4C4948;
}

/* フォームボタン（input[type=image]）のリセット上書きを打ち消す */
body.page-template-page-template input[type="image"],
.pg_mainCol input[type="image"] {
  width: auto !important;
  display: inline !important;
}
