/* 不動産の知恵｜家賃の目安 計算ツール
   すべて .chie-yc の箱の中だけに効く。テーマの設定に上書きされないよう、.chie-yc を４つ重ねて書く（初期費用ツールと同じ） */

/* テーマの飾りを打ち消す */
.chie-yc.chie-yc.chie-yc.chie-yc div { margin-top: 0; margin-bottom: 0; }
.chie-yc.chie-yc.chie-yc.chie-yc p, .chie-yc.chie-yc.chie-yc.chie-yc table { margin: 0; padding: 0; }
.chie-yc.chie-yc.chie-yc.chie-yc p::before, .chie-yc.chie-yc.chie-yc.chie-yc p::after,
.chie-yc.chie-yc.chie-yc.chie-yc th::before, .chie-yc.chie-yc.chie-yc.chie-yc th::after,
.chie-yc.chie-yc.chie-yc.chie-yc td::before, .chie-yc.chie-yc.chie-yc.chie-yc td::after,
.chie-yc.chie-yc.chie-yc.chie-yc label::before, .chie-yc.chie-yc.chie-yc.chie-yc label::after { content: none; display: none; }
.chie-yc.chie-yc.chie-yc.chie-yc table { border: 0; border-spacing: 0; table-layout: auto; }
.chie-yc.chie-yc.chie-yc.chie-yc th, .chie-yc.chie-yc.chie-yc.chie-yc td { color: inherit; font-weight: normal; line-height: 1.6; }
.chie-yc.chie-yc.chie-yc.chie-yc input { margin: 0; height: auto; line-height: 1.4; color: #333; background: #fff; box-shadow: none; }
.chie-yc.chie-yc.chie-yc.chie-yc input[type="text"] { -webkit-appearance: none; appearance: none; }
.chie-yc.chie-yc.chie-yc.chie-yc input[type="radio"] { width: 1px; height: 1px; }
.chie-yc.chie-yc.chie-yc.chie-yc button { -webkit-appearance: none; appearance: none; box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.4; }

/* 全体 */
.chie-yc.chie-yc.chie-yc.chie-yc { --blue: #4fb3e8; --blue-head: #cbe9fb; --blue-bg: #f5fbff; --line: #e3eef5; --text: #333; --sub: #777;
  color: var(--text); font-size: 16px; line-height: 1.7; }
.chie-yc.chie-yc.chie-yc.chie-yc * { box-sizing: border-box; }
.chie-yc.chie-yc.chie-yc.chie-yc [hidden] { display: none !important; }

/* 入力の箱 */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__head { background: var(--blue-head); padding: 16px 20px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__lead { margin: 4px 0 0; font-size: 14px; color: #555; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__body { padding: 16px 20px 24px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__label { display: block; font-weight: 700; font-size: 15px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__hint { display: block; font-size: 13px; color: var(--sub); margin-top: 2px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__yen { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__yen input { width: 100%; max-width: 220px; font-size: 18px; padding: 10px 12px; border: 1px solid #cfdde6; border-radius: 8px; text-align: right; font-family: inherit; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__yen input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* 手取り／額面を選ぶ札 */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__chips label { cursor: pointer; margin: 0; padding: 0; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__chips input { position: absolute; opacity: 0; pointer-events: none; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__chips span { display: inline-block; padding: 7px 18px; border: 1px solid #cfdde6; border-radius: 999px; font-size: 15px; background: #fff; color: var(--text); font-weight: normal; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* 計算するボタン */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__btn { display: block; width: 100%; margin: 24px 0 0; padding: 14px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; font-family: inherit; cursor: pointer; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__btn:hover { background: #3aa3dc; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__btn:focus-visible { outline: 2px solid #2a8ccc; outline-offset: 3px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__err { margin: 8px 0 0; font-size: 14px; color: #d93a32; text-align: center; }

/* 見出し（「結果」「よく言われる目安」「おまけの情報」） */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__sec { margin: 0 0 12px; font-size: 19px; font-weight: 700; text-align: center; color: var(--text); }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__result { margin-top: 60px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__more { margin-top: 60px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__bonus { margin-top: 60px; }

/* 結果の箱 */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__answer { background: var(--blue-bg); border: 2px solid var(--blue); border-radius: 14px; padding: 24px 16px; text-align: center; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__answer-label { font-size: 15px; font-weight: 700; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__total { font-size: 36px; font-weight: 800; line-height: 1.3; margin: 6px 0 4px; letter-spacing: .01em; color: #2a8ccc; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__total small { font-size: 18px; font-weight: 700; margin-left: 2px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__sub { font-size: 14px; color: #555; margin: 0; }

/* よく言われる目安の表 */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__table-wrap { overflow-x: auto; }
.chie-yc.chie-yc.chie-yc.chie-yc table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.chie-yc.chie-yc.chie-yc.chie-yc th, .chie-yc.chie-yc.chie-yc.chie-yc td { padding: 10px 12px; border: 1px solid #dbe9f2; vertical-align: top; text-align: left; }
.chie-yc.chie-yc.chie-yc.chie-yc thead th { background: var(--blue-head); font-weight: 700; }
.chie-yc.chie-yc.chie-yc.chie-yc tbody td { background: var(--blue-bg); }
.chie-yc.chie-yc.chie-yc.chie-yc td.num { text-align: right; white-space: nowrap; font-weight: 700; }
.chie-yc.chie-yc.chie-yc.chie-yc td .what { display: block; font-size: 12px; color: var(--sub); margin-top: 2px; }

/* 初期費用の目安 */
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__box { position: relative; background: #fff; border: 2px solid var(--blue); border-radius: 14px; padding: 20px 16px; margin: 0; text-align: center; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__box-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__box-big { font-size: 26px; font-weight: 800; color: #2a8ccc; line-height: 1.3; margin: 4px 0 2px; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__box-sub { font-size: 14px; color: #555; margin: 0; }

.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__nw { white-space: nowrap; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__note { font-size: 12px; color: var(--sub); margin: 16px 0 0; line-height: 1.6; }
.chie-yc.chie-yc.chie-yc.chie-yc .chie-yc__note span { display: block; padding-left: 1em; text-indent: -1em; }
