/* ===== fee_calculator.css ===== */

/* ヘッダー（LP統一スタイル） */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,249,244,.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider, #ecdfd5);
}
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: #1a1a2e; color: #e8a0b4;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .88rem; flex-shrink: 0;
}
.brand-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; color: #1a1a2e;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login {
  font-size: .78rem; font-weight: 600; color: #7d6b5d;
  padding: .38rem .7rem; border-radius: 999px; transition: color .15s;
}
.header-login:hover { color: #e8a0b4; }
.header-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8a0b4; color: #fff;
  padding: .42rem .9rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  transition: opacity .15s;
}
.header-cta:hover { opacity: .88; }
@media (max-width: 400px) {
  .header-inner { padding: 0 .75rem; }
  .brand-mark { width: 28px; height: 28px; font-size: .78rem; }
  .brand-name { font-size: .8rem; }
  .header-login { display: none; }
  .header-cta { font-size: .68rem; padding: .38rem .7rem; }
}

/* フッター（LP統一スタイル） */
.footer {
  background: #1a1a2e; color: rgba(255,255,255,.5);
  padding: 32px 20px; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: .6rem;
}
.footer-brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: #e8a0b4;
  display: flex; align-items: center; justify-content: center;
  color: #1a1a2e; font-weight: 700; font-size: .75rem;
}
.footer-brand-name { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: .85rem; color: rgba(255,255,255,.8); }
.footer-text { font-size: .65rem; margin-bottom: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; margin-bottom: .6rem; }
.footer-links a { font-size: .64rem; color: rgba(255,255,255,.4); }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-copy { font-size: .6rem; color: rgba(255,255,255,.25); }

/* body フォント（tool.css の上書き） */
body { font-family: 'Zen Maru Gothic', 'Hiragino Sans', sans-serif; }

/* ヒーロー */
.fc-hero {
  text-align: center;
  padding: 3rem 1.25rem 2rem;
  background: linear-gradient(180deg, #fff8fa 0%, #fafaf8 100%);
}
.fc-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.25;
  margin-bottom: .75rem;
}
.fc-desc {
  font-size: clamp(.88rem, 2vw, 1rem);
  color: #555;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}
.pc-only { display: none; }
@media(min-width: 900px) { .pc-only { display: inline; } }

/* 2カラムレイアウト */
.fc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
@media(min-width: 900px) {
  .fc-layout {
    grid-template-columns: 340px 1fr;
    align-items: start;
    gap: 2rem;
  }
}

/* 入力折りたたみ外枠 */
.fc-card-details { width: 100%; }
.fc-card-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: .6rem 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: .5rem;
  font-size: .83rem;
  user-select: none;
  box-sizing: border-box;
}
.fc-card-summary::-webkit-details-marker { display: none; }
.fc-card-details[open] .fc-card-summary { border-radius: 12px 12px 0 0; margin-bottom: 0; border-bottom: none; }
.fc-card-summary-label { font-weight: 700; color: #444; font-size: .85rem; }
.fc-card-summary-hint { color: #aaa; font-size: .8rem; flex: 1; }
.fc-card-summary-toggle { color: #e8668c; font-size: .78rem; font-weight: 700; margin-left: auto; white-space: nowrap; }

/* 入力カード */
.fc-card {
  background: #fff;
  border: 1px solid #eee;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

/* 入力列（sticky wrapper） */
.fc-input-col {
  min-width: 0;
}
@media(min-width: 900px) {
  .fc-input-col { position: sticky; top: 72px; }
}
.fc-card-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 1.25rem;
}

/* フォーム部品 */
.fc-field { margin-bottom: 1.1rem; }
.fc-label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: #444;
  margin-bottom: .35rem;
}
.fc-req {
  font-size: .7rem;
  background: #e8668c;
  color: #fff;
  padding: .1rem .4rem;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
}
.fc-opt-badge {
  font-size: .7rem;
  background: #eee;
  color: #888;
  padding: .1rem .4rem;
  border-radius: 4px;
  margin-left: .4rem;
  vertical-align: middle;
}
.fc-input-wrap { position: relative; display: flex; align-items: center; }
.fc-input-prefix {
  position: absolute;
  left: .9rem;
  color: #888;
  font-size: .95rem;
  pointer-events: none;
}
.fc-input-suffix {
  position: absolute;
  right: .9rem;
  color: #888;
  font-size: .88rem;
  pointer-events: none;
}
.fc-input {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .9rem .65rem 1.8rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .95rem;
  background: #fafaf8;
  transition: border-color .15s;
  -webkit-appearance: none;
}
.fc-input:focus { outline: none; border-color: #e8668c; background: #fff; }
.fc-input-plain {
  padding-left: .9rem;
}
.fc-select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: .9rem;
  background: #fafaf8;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  cursor: pointer;
}
.fc-select:focus { outline: none; border-color: #e8668c; }
.fc-error { font-size: .78rem; color: #e74c3c; margin-top: .25rem; min-height: 1.2em; }
.fc-hint { font-size: .75rem; color: #999; margin-top: .25rem; }

/* 横並びフィールド */
.fc-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.fc-shipping-hint { font-size: .75rem; color: #aaa; margin-top: -.6rem; margin-bottom: .9rem; }

/* チェックボックスグループ */
.fc-check-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.fc-check { font-size: .85rem; color: #444; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.fc-check input { accent-color: #e8668c; width: 16px; height: 16px; }
.fc-filter-field { background: #faf8fc; border: 1px solid #ede5f8; border-radius: 8px; padding: .75rem .9rem; }

/* ラジオグループ */
.fc-radio-group { display: flex; flex-direction: column; gap: .4rem; }
.fc-radio { font-size: .83rem; color: #444; display: flex; align-items: center; gap: .4rem; cursor: pointer; }
.fc-radio input { accent-color: #e8668c; }

/* オプション折りたたみ */
.fc-details { border-top: 1px solid #f0f0f0; padding-top: 1rem; margin-top: .25rem; }
.fc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  color: #444;
  user-select: none;
}
.fc-summary::-webkit-details-marker { display: none; }
.fc-summary-icon { font-size: 1rem; color: #e8668c; width: 1rem; text-align: center; }
.fc-details-body { padding-top: 1rem; }

/* 控えめバナー */
.fc-soft-cta {
  background: #fff8fa;
  border: 1px solid #f5c0d0;
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-top: 1rem;
  font-size: .83rem;
  color: #555;
}
.fc-soft-cta p { margin-bottom: .35rem; }
.fc-soft-cta-link { color: #e8668c; font-weight: 700; }

/* プレースホルダー */
.fc-placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: #bbb;
}
.fc-placeholder-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* 気づきバナー */
.fc-insight {
  background: linear-gradient(135deg,#fff8f0,#fff3e0);
  border-left: 3px solid #f39c12;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  color: #7d5a00;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* カードグリッド */
.fc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media(min-width: 900px) {
  .fc-cards { grid-template-columns: repeat(3, 1fr); }
}

/* プラットフォームカード */
.fc-pf-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .15s;
}
.fc-pf-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.fc-pf-best {
  border-color: #f5c0d0;
  box-shadow: 0 0 0 2px #e8668c;
}
.fc-pf-unsupported { opacity: .55; }
.fc-best-badge {
  background: linear-gradient(135deg,#e8668c,#c84b7a);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  text-align: center;
}
.fc-pf-name {
  padding: .7rem 1rem .4rem;
  font-weight: 700;
  font-size: .88rem;
  color: #1a1a2e;
  border-top: 4px solid #ddd;
}
.fc-net-income {
  padding: .3rem 1rem .6rem;
  font-size: 1.6rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.2;
}
.fc-pf-best .fc-net-income { color: #c84b7a; }
.fc-unsupported-msg {
  font-size: .85rem;
  font-weight: 700;
  color: #bbb;
  line-height: 1.5;
}

/* 内訳 */
.fc-breakdown { padding: 0 1rem .75rem; }
.fc-breakdown summary {
  font-size: .75rem;
  color: #aaa;
  cursor: pointer;
  list-style: none;
  padding: .3rem 0;
}
.fc-breakdown summary::-webkit-details-marker { display: none; }
.fc-breakdown-body { padding-top: .4rem; }
.fc-row {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: #555;
  padding: .15rem 0;
}
.fc-row-minus { color: #e74c3c; }
.fc-row-subtotal { font-weight: 700; color: #1a1a2e; border-top: 1px solid #eee; padding-top: .3rem; margin-top: .2rem; }
.fc-row-total { font-weight: 700; color: #1a1a2e; border-top: 1px dashed #eee; padding-top: .3rem; margin-top: .2rem; }
.fc-pos { color: #27ae60; }
.fc-neg { color: #e74c3c; }
.fc-warn { color: #f39c12; font-weight: 700; }

/* 時給警告 */
.fc-wage-warn {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .83rem;
  color: #7d6000;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* シェア */
.fc-share {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-top: .25rem;
}
.fc-share-label { font-size: .78rem; color: #aaa; }
.fc-share-btn {
  padding: .4rem .85rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: #f0f0f0;
  color: #444;
  transition: background .15s;
}
.fc-share-btn:hover { background: #e0e0e0; }
.fc-share-x { background: #1a1a2e; color: #fff; }
.fc-share-x:hover { background: #333; }
.fc-share-line { background: #06c755; color: #fff; }
.fc-share-line:hover { background: #05b04e; }

/* レベル3 CTA */
.fc-cta-section {
  background: linear-gradient(135deg,#1a1a2e,#2d1b5e);
  color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.fc-cta-inner { max-width: 640px; margin: 0 auto; }
.fc-cta-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b899e8;
  margin-bottom: .5rem;
}
.fc-cta-title {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.fc-cta-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.fc-cta-feat { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: #c8b8e8; }
.fc-cta-feat-icon { font-size: 1.1rem; }
.fc-cta-btn {
  display: inline-block;
  padding: .9rem 2.5rem;
  background: linear-gradient(135deg,#e8668c,#c84b7a);
  color: #fff;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: opacity .15s;
}
.fc-cta-btn:hover { opacity: .9; }
.fc-cta-note { font-size: .78rem; color: #9988cc; margin-top: .75rem; }
.fc-cta-img {
  width: 100%;
  max-width: 520px;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.3);
  cursor: zoom-in;
}
.fc-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.fc-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

/* PC/SP 出し分け */
.fc-pc-only { display: none; }
.fc-sp-cards { display: block; }
@media(min-width: 700px) {
  .fc-pc-only { display: block; }
  .fc-sp-cards { display: none; }
}

/* SP カードリスト */
.fc-sp-cards { margin-bottom: 1.25rem; }
.fc-sp-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin-bottom: .75rem;
  overflow: hidden;
}
.fc-sp-card-best {
  border-color: #f5c0d0;
  box-shadow: 0 0 0 2px #e8668c;
}
.fc-sp-card-na { opacity: .55; }
.fc-sp-card-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: #fafaf8;
  border-bottom: 1px solid #eee;
}
.fc-sp-card-best .fc-sp-card-head { background: #fff8fa; }
.fc-sp-crown { font-size: .95rem; }
.fc-sp-pf-name { font-weight: 700; font-size: .9rem; color: #1a1a2e; }
.fc-sp-pf-note { font-size: .72rem; color: #aaa; margin-left: .25rem; }
.fc-sp-card-body { padding: .5rem 1rem .75rem; }
.fc-sp-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .35rem 0;
  border-bottom: 1px solid #f5f5f5;
  font-size: .85rem;
}
.fc-sp-row:last-child { border-bottom: none; }
.fc-sp-row-label { color: #888; font-size: .78rem; white-space: nowrap; margin-right: .5rem; }
.fc-sp-row-val { text-align: right; }

/* マトリクステーブル */
.fc-matrix-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
.fc-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  table-layout: fixed;
}
.fc-mx-col-head {
  text-align: center;
  padding: .6rem .4rem .4rem;
  font-weight: 700;
  font-size: .78rem;
  color: #444;
  background: #fff;
  border-bottom: 1px solid #eee;
  vertical-align: bottom;
  word-break: keep-all;
}
.fc-mx-col-head:first-child {
  text-align: left;
  width: 3.5rem;
  color: #999;
  font-weight: 400;
  font-size: .72rem;
}
.fc-mx-best-col { background: #fff8fa; }
.fc-mx-crown { font-size: 1rem; display: block; margin-bottom: .15rem; }
.fc-mx-pf-name { display: block; line-height: 1.3; }
.fc-mx-pf-note { display: block; font-size: .7rem; color: #aaa; font-weight: 400; margin-top: .1rem; }
.fc-mx-pf-bar { display: block; height: 3px; border-radius: 2px; margin: .4rem auto 0; width: 60%; }

.fc-mx-row-label {
  padding: .5rem .5rem .5rem 0;
  color: #888;
  font-size: .78rem;
  white-space: nowrap;
  vertical-align: middle;
}
.fc-mx-cell {
  text-align: center;
  padding: .5rem .25rem;
  vertical-align: middle;
  border-bottom: 1px solid #f5f5f5;
}
.fc-mx-best-col.fc-mx-cell { background: #fff8fa; }
.fc-mx-net {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.1;
}
.fc-mx-net-best { color: #c84b7a; }
.fc-mx-net-row td { border-bottom: 2px solid #f0f0f0; padding-bottom: .75rem; }
.fc-mx-minus { color: #e74c3c; font-size: .82rem; }
.fc-mx-na { color: #ccc; font-size: .8rem; }
.fc-mx-warn { color: #f39c12; font-size: .78rem; font-weight: 700; }
.fc-mx-method { font-size: .72rem; color: #999; display: block; margin-top: .1rem; }
.fc-mx-partner {
  display: inline-block;
  font-size: .56rem;
  font-weight: 700;
  background: #e8f5e9;
  color: #388e3c;
  border: 1px solid #a5d6a7;
  padding: .04rem .3rem;
  border-radius: 5px;
  margin-left: .25rem;
  vertical-align: middle;
}
.fc-mx-pos { color: #27ae60; font-weight: 700; }
.fc-mx-neg { color: #e74c3c; font-weight: 700; }
.fc-mx-profit-row td { border-top: 1px dashed #eee; }
