/* =========================================================
   MIRAKURU - city.css（CITY PAGE / FINAL）
   - 症状タイル + inlinePanel
   - 見積書（q〜構造）
   - フォーム
   - タイムライン（B案）
========================================================= */

:root{
  --cityW: min(980px, 92vw);
  --ink: #0f172a;
  --sub: #475569;
  --pri: #2563eb;
  --qPriceW: 220px; /* 明細の金額列幅 */
}

/* =========================
   FV
========================= */
.fv{
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:
    radial-gradient(900px 360px at 10% 10%, rgba(37,99,235,.18), transparent 55%),
    radial-gradient(900px 360px at 90% 0%, rgba(125,211,252,.16), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 60%, #ffffff 100%) !important;
  padding: 140px 0 165px !important; /* 高さUP */
}

/* CITYページ内の「中身」だけ絞る */
.fv .inner,
.topbar,
.in2{
  width: var(--cityW) !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* =========================
   セクション見出し（中央＋下線）
========================= */
.cardSec .topbar{
  display:block;
  text-align:center;
  padding: 22px 0 14px;
  gap:0;
}
.cardSec .topbar strong{
  display:inline-block;
  margin:0;
  font-size:22px;
  font-weight:1000;
  letter-spacing:.04em;
  position:relative;
  padding-bottom:12px;
}
.cardSec .topbar strong::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:0;
  width:56px;
  height:4px;
  border-radius:999px;
  background: var(--pri);
  opacity:.95;
}
/* 「選ぶ → 概算 → 自動入力」などタグは非表示 */
.cardSec .topbar .tag{ display:none !important; }

/* =========================
   Tiles（8個）
========================= */
.tabsWrap{ position:relative; }

.tileGrid{
  max-width: var(--cityW);
  margin: 0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.tile{
  position:relative;
  appearance:none;
  background:#fff;
  border:1px solid rgba(37,99,235,.12);
  border-radius:18px;
  padding:18px 14px 16px;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(2,8,23,.08), 0 2px 8px rgba(2,8,23,.05);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, opacity .14s ease;
}
.tile:hover{
  transform: translateY(-4px);
  border-color: rgba(37,99,235,.18);
  box-shadow: 0 18px 44px rgba(2,8,23,.11), 0 6px 16px rgba(2,8,23,.07);
}

.tileIcon{ height:110px; display:grid; place-items:center; }
.tileIcon img{ width:120px; height:120px; object-fit:contain; }
.tileLabel{ text-align:center; font-weight:1000; color:rgba(15,23,42,.95); }
.tileLabel span{ display:block; font-size:12px; color:rgba(15,23,42,.55); margin-top:4px; }

.ribbon{
  position:absolute;
  top:12px;
  left:12px;
  font-size:12px;
  padding:6px 10px;
  border-radius:10px;
  color:#fff;
  font-weight:1000;
}
.ribbon.red{ background:#ef4444; }
.ribbon.orange{ background:#f97316; }

.tileGrid.is-dim .tile{ opacity:.55; transform: scale(.97); }
.tileGrid.is-dim .tile.is-active{
  opacity:1;
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(37,99,235,.28);
  box-shadow: 0 22px 50px rgba(2,8,23,.12), 0 8px 18px rgba(2,8,23,.08);
  z-index:4;
}

/* =========================
   Inline Panel（タイル直下）
========================= */
.inlinePanel{
  grid-column: 1 / -1;
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  box-shadow: 0 22px 60px rgba(2,8,23,.10);
  padding: 16px;
  margin: 10px 0 6px;
  position:relative;
}
.inlinePanel::before{
  content:"";
  position:absolute;
  left:16px; right:16px; top:0;
  height:14px;
  transform: translateY(-10px);
  border-radius: 16px;
  background: rgba(37,99,235,.10);
}
.inlineHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.inlineH{
  font-size:18px;
  font-weight:1000;
  color:rgba(15,23,42,.95);
}
.inlineS{
  margin-top:4px;
  font-size:12px;
  color:rgba(15,23,42,.60);
}
.inlineClose{
  border:none;
  background: rgba(15,23,42,.06);
  border-radius:12px;
  padding:10px 12px;
  font-weight:1000;
  cursor:pointer;
}
.inlineOpts .inlineOpt{
  display:flex;
  gap:10px;
  padding:12px;
  border-radius:16px;
  background: rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.06);
  cursor:pointer;
  margin-bottom:10px;
}
.inlineOpts .inlineOpt:last-child{ margin-bottom:0; }
.inlineOpt input{
  margin-top:3px;
  width:18px; height:18px;
  accent-color: #2563eb;
}
.inlineOpt b{ display:block; font-weight:1000; }
.inlineOpt small{ display:block; margin-top:2px; color:rgba(15,23,42,.60); }
.inlineNote{
  margin: 12px 0 0;
  font-size:12px;
  color:rgba(15,23,42,.60);
  line-height:1.75;
}

@media (max-width:980px){
  .tileGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:520px){
  .tileIcon{ height:96px; }
  .tileIcon img{ width:108px; height:108px; }
}

/* =========================
   見積書（q〜構造 / テーブル完全再現）
========================= */
#quotePaper[hidden]{ display:none !important; }

.quotePaper{
  margin-top: 56px;
  background:#fff;
  border:1px solid rgba(15,23,42,.22);
  border-radius:0;
  box-shadow:none;
  padding: 34px 34px 28px;
}

.qTitle{
  margin:0 0 18px;
  text-align:center;
  font-size:26px;
  font-weight:900;
  letter-spacing:.10em;
}

.qAmountLine{
  display:flex;
  gap:18px;
  align-items:baseline;
  padding: 12px 0;
  border-top:2px solid rgba(15,23,42,.55);
  border-bottom:2px solid rgba(15,23,42,.55);
  margin-bottom: 18px;
}
.qAmountLabel{ font-weight:900; letter-spacing:.06em; }
.qAmountValue{ font-size:22px; font-weight:1000; letter-spacing:.04em; }

/* 明細 + 右下小計 */
.qSheet{
  position:relative;
  padding-bottom: 140px; /* 右下小計のスペース */
}

.qMain{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.qMain th,
.qMain td{
  border:1px solid rgba(15,23,42,.35);
  padding:12px 14px;
  font-size:14px;
}
.qMain thead th{
  background:#d1d5db;
  font-weight:900;
}
.qColDetail{ width:auto; }
.qColPrice{ width: var(--qPriceW); text-align:right; }
.qMain td:last-child{ text-align:right; white-space:nowrap; }

.qSumBox{
  position:absolute;
  right:0;
  bottom:0;
  width: calc(var(--qPriceW) + 140px);
  border-collapse:collapse;
  table-layout:fixed;
  background:#fff;
}
.qSumBox th,
.qSumBox td{
  border:1px solid rgba(15,23,42,.35);
  padding:12px 14px;
  font-size:14px;
}
.qSumBox th{ width:140px; font-weight:900; }
.qSumBox td{ width: var(--qPriceW); }
.qSumBox td.right{ text-align:right; white-space:nowrap; }
.qSumBox .qGrand td{ font-size:22px; font-weight:1000; }

.qNote{
  margin: 16px 0 0;
  font-size:13px;
  color:rgba(15,23,42,.70);
}

@media (max-width:980px){
  :root{ --qPriceW: 180px; }
}
@media (max-width:980px){
  .qSumBox{
    position:static;
    width:100%;
    margin-top:16px;
  }
  .qSheet{ padding-bottom:0; }
}

/* =========================
   フォーム（box / cta）
========================= */
.box{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 44px rgba(2,8,23,.08);
}
.box label{
  display:block;
  margin: 10px 0 6px;
  font-weight: 1000;
  color: rgba(15,23,42,.85);
}
.box input,
.box textarea{
  width:100%;
  border:1px solid rgba(15,23,42,.12);
  border-radius: 14px;
  padding: 12px 12px;
  font: inherit;
  background:#fff;
  outline:none;
}
.box textarea{ min-height: 120px; resize: vertical; }
.req{
  display:inline-block;
  margin-left:6px;
  font-size:11px;
  padding:3px 8px;
  border-radius:999px;
  background: rgba(239,68,68,.10);
  color: #ef4444;
  border:1px solid rgba(239,68,68,.20);
  font-weight:1000;
}
.formCta{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.formCta .primary{
  border:none;
  background: rgba(15,23,42,.92);
  color:#fff;
  font-weight:1000;
  padding: 12px 16px;
  border-radius: 14px;
  cursor:pointer;
}
.formCta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15,23,42,.06);
  font-weight:1000;
}

/* =========================
   Timeline（B案）
========================= */
.timeline{
  list-style:none;
  padding:0;
  margin: 18px 0 0;
  position:relative;
}
.timeline::before{
  content:"";
  position:absolute;
  left:18px;
  top:8px;
  bottom:12px;
  width:2px;
  background: rgba(15,23,42,.10);
}
.tItem{
  position:relative;
  display:grid;
  grid-template-columns: 44px 1fr;
  gap:14px;
  padding: 10px 0 18px;
}
.tNo{
  width:36px;
  height:36px;
  border-radius:999px;
  background: rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.18);
  display:grid;
  place-items:center;
  font-weight:1000;
  color: rgba(15,23,42,.85);
  z-index:2;
}
.tBody{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 30px rgba(2,8,23,.06);
}
.tTitle{
  margin:0 0 6px;
  font-size:16px;
  font-weight:1000;
  color: rgba(15,23,42,.95);
}
.tText{
  margin:0;
  color: rgba(15,23,42,.72);
  line-height:1.85;
  font-size:13px;
}
.tTags{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.tTags span{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  color: rgba(15,23,42,.72);
  font-weight:900;
}
.tCards{
  margin-top:10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.tCard{
  border:1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  border-radius:14px;
  padding: 10px 12px;
}
.tCard b{ display:block; font-weight:1000; }
.tCard small{ display:block; margin-top:4px; color:rgba(15,23,42,.60); line-height:1.6; }
.tChecks{
  margin:10px 0 0;
  padding-left:18px;
  color: rgba(15,23,42,.72);
  line-height:1.8;
  font-size:13px;
}
.tCta{
  margin-top: 6px;
  padding-left: 44px;
}
.tCtaBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(15,23,42,.92);
  color:#fff;
  font-weight:1000;
}
.tCtaNote{
  display:block;
  margin-top:8px;
  font-size:12px;
  color: rgba(15,23,42,.60);
}
@media (max-width: 980px){
  .tCards{ grid-template-columns: 1fr; }
}

/* フォーム下と「お掃除ノート」(blueZone) の間隔 */
.blueZone{
  margin-top: 28px;
}

/* service選択の引き継ぎ表示 */
.tile.isSelected{
  outline: 2px solid rgba(37,99,235,.95);
  outline-offset: 2px;
}
