/* 23周年記念フェア（/23rd-fair/）：ペライチのCSS（pera.css）に足す分だけ */

/* ペライチの「SkipStd-D」は有料のWebフォントで使えないため、形の近い「M PLUS 1p」に置き換える */
body.fp_design1,
body.fp_design1 .fp_design1{font-family:"M PLUS 1p","Hiragino Kaku Gothic ProN",Meiryo,sans-serif!important}
body.is-fair{color:#5a5129;background-color:#f3f2ea;margin:0}
body.is-fair img{max-width:100%;height:auto}
body.is-fair a[href^="tel:"]{text-decoration:none}

/* ランクの色（ポイントのボタン・物件のタグ） */
.f-rank-btn{line-height:1.3!important;padding:14px 6px!important}
.f-rank-btn.is-platinum{background-color:#6f7884!important}
.f-rank-btn.is-gold{background-color:#b49531!important}
.f-rank-btn.is-silver{background-color:#9aa1aa!important}
.f-rank-btn.is-bronze{background-color:#a4643b!important}
.p-article-has-tags__tag.f-rank-tag.is-platinum{background-color:#6f7884}
.p-article-has-tags__tag.f-rank-tag.is-gold{background-color:#b49531}
.p-article-has-tags__tag.f-rank-tag.is-silver{background-color:#9aa1aa}
.p-article-has-tags__tag.f-rank-tag.is-bronze{background-color:#a4643b}
.p-article-has-tags__tag.f-rank-tag div{color:#fff}


/* 来店予約フォーム（サイト共通のフォーム） */
.f-form{background:#fff;padding:24px 20px 36px}
@media (min-width:769px){.f-form{padding:30px 40px 44px}}
.f-form .vf-property{font-size:14px;margin:0 0 20px}
.f-form .vf-row{margin-bottom:22px}
.f-form .vf-label{display:block;font-size:15px;font-weight:700;margin-bottom:6px}
.f-form .vf-req{display:inline-block;background:#e60012;color:#fff;font-size:11px;line-height:1;padding:4px 6px;margin-left:6px;vertical-align:2px;border-radius:2px}
.f-form .wpcf7-list-item{margin:0 18px 4px 0;display:inline-block}
.f-form .wpcf7-list-item label{cursor:pointer}
.f-form input[type="radio"],.f-form input[type="checkbox"]{margin:0 6px 0 0;accent-color:#b49531;vertical-align:-1px}
.f-form input[type="text"],.f-form input[type="tel"],.f-form input[type="email"],.f-form textarea{width:100%;box-sizing:border-box;border:0;border-bottom:1px solid #bbb;padding:10px 14px;font:inherit;font-size:16px;color:#5a5129;background:transparent}
.f-form textarea{border:1px solid #bbb;min-height:140px}
/* 10/31 来店希望日（カレンダー）。時間は選ばない */
.f-form input[type="date"]{width:100%;max-width:280px;box-sizing:border-box;border:1px solid #bbb;padding:10px 14px;font:inherit;font-size:16px;color:#5a5129;background:#fff;cursor:pointer;min-height:48px}
.f-form .vf-sub{font-size:12px;font-weight:400;margin-left:6px}
.f-form .vf-note{font-size:13px;line-height:1.8;color:#5a5129;margin:8px 0 0}
.f-form input:focus,.f-form textarea:focus,.f-form input[type="date"]:focus{outline:none;border-color:#b49531}
.f-form ::placeholder{color:#aaa}
.f-form .vf-submit{text-align:center;margin-top:30px;position:relative}
.f-form input[type="submit"]{appearance:none;border:0;background:#f47e00;color:#fff;font:inherit;font-size:16px;font-weight:700;width:300px;max-width:100%;height:52px;cursor:pointer}
.f-form input[type="submit"]:hover{opacity:.85}
.f-form .wpcf7-spinner{position:absolute;margin:16px 0 0 10px}
.f-form .vf-agree{font-size:12px;margin-top:10px;text-align:center}
.f-form .wpcf7-not-valid-tip{font-size:12px}
.f-form .wpcf7-response-output{margin:20px 0 0!important;font-size:13px}
.f-form .vf-notice{font-size:15px;text-align:center;padding:20px 0}

/* 注意書き */
.f-legal{font-size:11.5px;line-height:1.7;color:#6b675a;padding:20px 0 30px}
.f-legal p + p{margin-top:10px}

/* ログイン中は上に管理バーが出るので、固定ヘッダーをその下にずらす */
body.admin-bar .p-header-fixed{top:32px}
@media screen and (max-width:782px){body.admin-bar .p-header-fixed{top:46px}}

/* スマホ：メニューのボタン（ペライチのアイコン用フォントがないので、三本線を線で描く） */
.p-btn_navigationToggle{width:42px;height:38px;padding:0!important}
.p-btn_navigationToggle i{display:block;width:20px;height:2px;margin:0 auto;background:#5a5129;position:relative}
.p-btn_navigationToggle i::before,.p-btn_navigationToggle i::after{content:""!important;position:absolute;left:0;width:20px;height:2px;background:#5a5129}
.p-btn_navigationToggle i::before{top:-6px}
.p-btn_navigationToggle i::after{top:6px}

@media (max-width:768px){
  .p-btn_navigationToggle{display:flex!important;align-items:center;justify-content:center}
  /* 番号付きの枠：写真が上の帯（番号・ラベル）に重ならないように、枠の上をあける */
  [data-structure="b-article-has-number"] .c-border{padding-top:64px!important}
}

/* 物件の写真は、元の大きさに関係なく列の幅いっぱいに（チラシから切り出した小さい写真も同じ大きさで並ぶように） */
[data-structure="b-article-has-tags"] .c-img img{width:100%;height:auto}

/* 改行：言葉の切れ目（<wbr>）でだけ改行する。長すぎる語は端で折り返す */
body.is-fair,body.is-fair *{word-break:keep-all!important;overflow-wrap:anywhere;line-break:strict}
body.is-fair br.f-sp{display:none}
@media (max-width:768px){
  body.is-fair br.f-sp{display:inline}
  /* 見出しは1行に収まる大きさに */
  [data-structure="b-heading-balloon--ghost"] h2{font-size:4.6vw!important}
  #section-7 h2{font-size:4.8vw!important}
  [data-structure="b-heading-accent"] h2{font-size:4.0vw!important}
  [data-structure="b-heading-ribbon--flat"] h2{font-size:4.3vw!important}
}

/* ポイントの使い道（1〜4）の写真：パソコンでは枠の上下の真ん中に、写真の形をそろえて置く */
@media (min-width:769px){
  [id^="use-"] .row{align-items:center;flex-wrap:nowrap}
  /* 写真の列を広げて、写真は切り取らずに全体を見せる */
  [id^="use-"] .row > .col-sm-5{flex:0 0 52%!important;max-width:52%!important}
  [id^="use-"] .row > .col-sm{flex:1 1 auto!important;min-width:0}
  [id^="use-"] .c-img img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
}

/* 住み替え応援の枠：写真の列がない分、文字とボタンが切れないように（パソコン・スマホ共通） */
#section-151 .row{margin-left:0!important;margin-right:0!important;display:block}
#section-151 .row > div{padding-left:0!important;padding-right:0!important;max-width:100%!important;flex-basis:100%!important;width:100%}
#section-151 .c-heading,#section-151 .c-heading h2{text-align:left}
#section-151 .c-btn{display:inline-block;margin-right:12px;margin-top:12px}
#section-151 .c-btn a{max-width:100%;box-sizing:border-box}
@media (max-width:768px){#section-151 .c-btn{display:block;margin-right:0}}

/* ===== パソコンだけの配置調整（スマホは変えない） ===== */
@media (min-width:769px){
  /* 物件紹介：写真の列と文字の列を同じくらいの幅にして、間の余白をなくす */
  [data-structure="b-article-has-tags"] .row{flex-wrap:nowrap;align-items:center}
  [data-structure="b-article-has-tags"] .row > .col-sm-5{flex:0 0 46%!important;max-width:46%!important}
  [data-structure="b-article-has-tags"] .row > .col-sm{flex:1 1 0!important;min-width:0}
  /* 住み替え応援：ボタンを文字の右横に */
  #section-151 .row{display:grid!important;grid-template-columns:1fr 300px;column-gap:40px;align-items:center}
  #section-151 .row > .col-sm{grid-column:1 / -1}
  #section-151 .row > .c-heading{grid-column:1;grid-row:2}
  #section-151 .row > .u-mbmd:not(.c-heading){grid-column:1;grid-row:3}
  #section-151 .row > .c-btn{grid-column:2;margin:0!important;display:block}
  #section-151 .row > .c-btn:not(.u-mtsm){grid-row:2;align-self:end;margin-bottom:6px!important}
  #section-151 .row > .c-btn.u-mtsm{grid-row:3;align-self:start;margin-top:6px!important}
  #section-151 .c-btn a{display:block;width:100%;min-width:0}
}

/* ===== ランクの王冠・メダル（チラシと同じ雰囲気。図形は build.py の CROWN_DEFS） ===== */
.f-crown{display:inline-block;width:1.5em;height:1.2em;vertical-align:-.15em;filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
.f-rank-btn .f-crown{display:block;width:34px;height:27px;margin:0 auto 4px}
.f-h-rank{display:inline-flex;align-items:center;justify-content:center;gap:.35em}
.f-h-rank .f-crown{width:1.7em;height:1.35em;flex:none}
#rank-platinum .f-h-rank .f-crown{width:2.1em;height:1.65em}
/* 物件写真の右上のメダル */
.f-photo .c-img{position:relative;overflow:visible}
.f-medal{position:absolute;top:14px;right:14px;z-index:2;width:112px;height:112px;border-radius:50%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1;text-align:center;
  background:radial-gradient(circle at 50% 38%,#3a4152 0,#151925 62%,#07090f 100%);
  box-shadow:0 0 0 5px var(--ring2),0 0 0 7px var(--ring1),0 0 0 8px var(--ring3),0 4px 10px 8px rgba(0,0,0,.28);
  --ring1:#f6d778;--ring2:#c08a1e;--ring3:#7a520c;--t1:#fff4c2;--t2:#f2c446;--t3:#a8720f}
.f-medal.is-platinum{--ring1:#ffffff;--ring2:#aab2bc;--ring3:#5f6873}
.f-medal.is-silver{--ring1:#ffffff;--ring2:#aab2bc;--ring3:#5f6873;--t1:#ffffff;--t2:#d4d9e0;--t3:#8a929d}
.f-medal.is-bronze{--ring1:#ffd6b5;--ring2:#c46a35;--ring3:#7a3511;--t1:#ffe3cc;--t2:#e38b52;--t3:#94451a}
.f-medal span{background:linear-gradient(180deg,var(--t1) 10%,var(--t2) 55%,var(--t3) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:700;letter-spacing:0}
.f-medal__crown{width:24px;height:19px;margin-bottom:2px}
.f-medal__rank{font-size:13px}
.f-medal__num{font-size:31px;letter-spacing:-.02em!important;margin-top:1px}
.f-medal__num small{font-size:14px}
.f-medal__pt{font-size:14px;margin-top:-1px}
.f-medal__stars{font-size:8px;letter-spacing:2px!important;margin-top:2px}
.f-medal__laurel{position:absolute;top:24%;left:7px;width:14px;height:56%;color:var(--t2);opacity:.9}
.f-medal__laurel.is-r{left:auto;right:7px;transform:scaleX(-1)}
@media screen and (max-width:768px){
  .f-medal{width:88px;height:88px;top:12px;right:12px}
  .f-medal__crown{width:20px;height:16px}
  .f-medal__rank{font-size:11px}
  .f-medal__num{font-size:25px}
  .f-medal__num small{font-size:12px}
  .f-medal__pt{font-size:12px}
  .f-medal__stars{font-size:7px}
  .f-medal__laurel{left:5px;width:12px}
  .f-medal__laurel.is-r{right:5px}
  .f-rank-btn .f-crown{width:28px;height:22px}
}

/* 23周年特典対象のマーク・タグ（校了版チラシ：王冠マークが目印） */
div[data-structure="b-article-has-tags"] .p-article-has-tags__tag.f-rank-tag{background-color:#e8412e}
div[data-structure="b-article-has-tags"] .p-article-has-tags__tag.f-rank-tag div{font-weight:700}
.f-medal__num--txt{font-size:27px!important;letter-spacing:.04em!important;margin:2px 0 1px}
.f-medal__pt{letter-spacing:.02em!important}
.c-heading h2 .f-crown{width:1.3em;height:1.05em;margin-right:.2em;vertical-align:-.12em}
@media screen and (max-width:768px){
  .f-medal__num--txt{font-size:22px!important}
  .f-medal__pt{font-size:11px}
}

/* 物件写真のサイズをすべてそろえる（横4：縦3。元の写真の比率がちがっても同じ大きさで表示） */
.f-photo .c-img img{display:block;width:100%!important;height:auto!important;aspect-ratio:4/3;object-fit:cover;object-position:50% 50%}
@media screen and (min-width:769px){
  [data-structure="b-article-has-tags"] .row > .f-photo{flex:0 0 50%!important;max-width:50%!important}
  /* 物件情報と写真のあいだを、写真が左でも右でも同じ間隔にする（情報の段は中身の幅にして、2つを中央に寄せる） */
  .f-prow{justify-content:center;flex-wrap:nowrap;column-gap:48px}
  [data-structure="b-article-has-tags"] .f-prow > .f-photo + .col-sm{flex:0 1 auto!important;width:auto!important;max-width:calc(50% - 48px)!important;min-width:0}
}
/* PC：物件写真はすべて同じ大きさ（幅は段の50%、横6：縦5）。物件情報の高さに近い大きさにして、上下中央にそろえる */
@media screen and (min-width:769px){
  .f-prow{align-items:center!important}
  .f-prow > .f-photo{margin-bottom:0!important}
  .f-prow > .f-photo .c-img img{aspect-ratio:6/5!important;height:auto!important}
}

/* 屋山VW棟：右下の「※外観パースはイメージです。」が切れないよう、下を基準に切り抜く */
#p10 .f-photo .c-img img{object-position:50% 100%}

/* 売却物件（買取）：丸とリボンのバランスを整える（丸の中の「買取」を中心に／リボンの文字を大きく） */
#section-151 .p-article-has-number__circle{width:100px;height:100px;line-height:normal;left:-24px;z-index:2}
#section-151 .p-article-has-number__circle:after{top:4px;left:4px;width:88px;height:88px;box-sizing:border-box;width:92px;height:92px}
#section-151 .p-article-has-number__circle-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;line-height:1!important;z-index:1;font-size:0!important}
#section-151 .p-article-has-number__circle-label > div,#section-151 .p-article-has-number__circle-label span,#section-151 .p-article-has-number__circle-label strong{display:block;line-height:1!important}
#section-151 .p-article-has-number__circle-label span{font-size:26px!important;letter-spacing:.04em}
#section-151 .p-article-has-number__ribbon{top:-24px;width:380px;padding:5px 0}
#section-151 .p-article-has-number__ribbon:after{border-width:24px 12px 24px 0}
#section-151 .p-article-has-number__ribbon-label{padding-left:96px;line-height:34px;font-size:19px;font-weight:700;letter-spacing:.08em}
@media screen and (max-width:768px){
  #section-151 .p-article-has-number__circle{width:84px;height:84px;left:-12px}
  #section-151 .p-article-has-number__circle:after{width:76px;height:76px}
  #section-151 .p-article-has-number__circle-label span{font-size:22px!important}
  #section-151 .p-article-has-number__ribbon{width:min(300px,82vw)}
  #section-151 .p-article-has-number__ribbon-label{padding-left:82px;font-size:16px}
}
@media screen and (min-width:769px){
  #section-151 .row{grid-template-columns:minmax(0,max-content) 300px!important;column-gap:64px!important;justify-content:center}
}
#section-151{padding-top:14px}

/* 特典の使い道（1〜6）と売却物件：リボンを文字の長さに合わせて短くし、文字を少し大きくする */
[id^="use-"] .p-article-has-number__ribbon,#section-151 .p-article-has-number__ribbon{width:auto!important;max-width:calc(100% + 20px)}
[id^="use-"] .p-article-has-number__ribbon-label{font-size:19px;font-weight:700;letter-spacing:.06em;padding-right:44px}
#section-151 .p-article-has-number__ribbon-label{padding-right:48px}
@media screen and (max-width:768px){
  [id^="use-"] .p-article-has-number__ribbon-label{font-size:16px;padding-right:36px}
  #section-151 .p-article-has-number__ribbon-label{padding-right:40px}
}

/* リボン見出し（おかげさまで23周年…）：黒地の上で明るく見えるように */
#section-169 h2,#section-169 h2 *{color:#f5d25e!important}
#section-169 h2 span[style*="e8412e"],#section-169 h2 span[style*="e8412e"] *{color:#ff6a4d!important}

/* 本文の文字サイズ（14px → PC 17px／スマホ 15px）。見出し・ボタン・注意書きはそのまま */
body.is-fair .f-pera [data-structure="e-text"],
body.is-fair .f-pera [data-structure="b-article-has-tags"] .col-sm > .u-mbmd > div{font-size:17px;line-height:1.9}
body.is-fair .f-pera .p-article-has-tags__tag div{font-size:15px}
body.is-fair #section-legal,body.is-fair #section-legal *{font-size:13px}
body.is-fair .f-pera .c-btn a{font-size:18px}
@media screen and (max-width:768px){
  body.is-fair .f-pera [data-structure="e-text"],
  body.is-fair .f-pera [data-structure="b-article-has-tags"] .col-sm > .u-mbmd > div{font-size:15px;line-height:1.85}
  body.is-fair .f-pera .p-article-has-tags__tag div{font-size:13px}
  body.is-fair #section-legal,body.is-fair #section-legal *{font-size:12px}
  body.is-fair .f-pera .c-btn a{font-size:16px}
}

/* 特典の見出し（総額2,300万円分プレゼント…）も明るい金色に */
#section-7 h2,#section-7 h2 *{color:#f5d25e!important}

/* 特典の使い道（1〜6）：丸の中の数字を中心に置く（売却物件の「買取」と同じ作り） */
[id^="use-"] .p-article-has-number__circle{line-height:normal;z-index:2}
[id^="use-"] .p-article-has-number__circle:after,#section-151 .p-article-has-number__circle:after{box-sizing:border-box!important;top:4px!important;left:4px!important;width:calc(100% - 8px)!important;height:calc(100% - 8px)!important}
[id^="use-"] .p-article-has-number__circle-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;line-height:1!important;z-index:1;font-size:0!important}
[id^="use-"] .p-article-has-number__circle-label *{display:block;line-height:1!important;margin:0!important;padding:0!important}
[id^="use-"] .p-article-has-number__circle-label strong,[id^="use-"] .p-article-has-number__circle-label span{font-size:40px!important}
@media screen and (max-width:768px){
  [id^="use-"] .p-article-has-number__circle-label strong,[id^="use-"] .p-article-has-number__circle-label span{font-size:32px!important}
}

/* フェアについての注意書き：枠の中でスクロールさせず、全部見えるように */
#section-177 .p-sentence-scroll__inner{height:auto!important;max-height:none!important;overflow:visible!important}
body.is-fair #section-177 [data-structure="e-text"]{font-size:15px;line-height:1.8}
#section-177 li{margin-bottom:4px}
@media screen and (max-width:768px){body.is-fair #section-177 [data-structure="e-text"]{font-size:14px}}

/* メインビュー：横いっぱいに表示（余白なし） */
#section-178{background:transparent;padding:0}
#section-178 .c-img img{display:block;width:100%;max-width:none;height:auto;margin:0;border-radius:0;box-shadow:none}

/* 11/12 価格を見直した物件：キャッシュバック対象外の注記 */
.f-nocb{margin:-6px 0 14px;font-size:13px;line-height:1.6;color:#b3261e;font-weight:700}
.f-nocb{font-size:18px}
.f-nocb-note{display:inline-block;margin-top:6px;color:#333;font-weight:400;font-size:inherit;line-height:1.6}
