/*---------------------------------------
ROOT
---------------------------------------*/
:root {
  --bg: #eef6f8;
  --card: #ffffff;
  --line: #dedede;
  --muted: #9a9a9a;
  --ink: #263D50;
  --primary: #0e7490;
  --primary-ink: #083344;
  --accent: #55AFB3;
  --danger: #ef4444;
}

* {
  box-sizing: border-box
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial
}

/*---------------------------------------
リストリセット
---------------------------------------*/
ol,
ul,
li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

/*---------------------------------------
BR
---------------------------------------*/
@media(min-width:960px) {
  .brSp {
    display: block;
  }
}

/*---------------------------------------
LAYOUT
---------------------------------------*/
/* Wrapper */
@media(min-width:960px) {
  .wrap {
    max-width: 960px;
    margin: 28px auto;
  }
}

/* Grid */
.row.main {
  padding: 20px 0;
}

/* Col */
.col__left {
  padding-left: 20px;
  padding-right: 20px;
}

.col__right {
  padding-left: 30px;
  padding-right: 30px;
}

@media(min-width:960px) {
  .row {
    display: flex;
  }

  .row.main {
    padding: 30px 40px 10px;
  }

  /* Col */
  .col__left {
    width: 55%;
    padding-right: 40px;
  }

  .col__right {
    width: 45%;
    padding-left: 30px;
  }
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(2, 6, 23, .06)
}


/*---------------------------------------
タイトル
---------------------------------------*/
h1 {
  font-size: clamp(22px, 3vw, 32px);
  text-align: center;
  margin: 15px 0;
}

@media(min-width:960px) {
  h1 {
    margin: 10px 0 22px
  }
}

/*---------------------------------------
Car name
---------------------------------------*/
.carName {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

@media(min-width:960px) {
  .carName {
    text-align: left;
    font-size: 24px;
  }
}

/*---------------------------------------
Car Select
---------------------------------------*/
.variant {
  margin: 6px 0 10px;
}

/* Select box */
.variant select {
  width: 100%;
}

/*---------------------------------------
Price
---------------------------------------*/
/* BOX */
.kpi {
  margin-bottom: 10px;
}

/* Title */
.kpi .label {
  font-size: 16px;
  font-weight: bold;
}

@media(min-width:960px) {
  .kpi .label {
    font-size: 20px;
  }
}

/* Big Number */
.big {
  font-size: 2.4em;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
  transition: transform .25s ease, opacity .25s ease
}

@media(min-width:960px) {
  .big {
    font-size: 3em;
  }
}

/* Unit Yen */
.yen {
  font-size: .4em;
  font-family: "Noto Sans", sans-serif;
  font-weight: 800;
}

/* Sub Text */
.sub {
  font-size: 12px;
  font-weight: normal;
}

.mono {
  font-variant-numeric: tabular-nums
}

/*---------------------------------------
COLORS
---------------------------------------*/
.colors h4 {
  font-size: 15px;
  margin: -15px 0 0;
  padding: 0;
}

.colorList {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.colorList li {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  position: relative;
  transition: 0.3s;
}

.colorList li.active {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.5);
}

/*---------------------------------------
TOOLTIP
---------------------------------------*/
.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip-text {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -30px;
  display: inline-block;
  padding: 5px;
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1.3;
  background: #333;
  color: #fff;
  border-radius: 3px;
  transition: 0.3s ease-in;
}

.tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/*---------------------------------------
画像切替アニメーション
---------------------------------------*/
.car-stage {
  display: flex;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.car-img {
  display: block;
  max-width: 100%;
  width: 260px;
  height: auto;
  object-fit: cover;
  opacity: 1;
  transform: translateY(0);
  transition: transform .8s ease-in-out, opacity .8s ease-in-out;
  will-change: transform, opacity;
}

@media(min-width:960px) {
  .car-img {
    width: auto;
    height: auto;
  }
}

.car-img.layer {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  z-index: 2;
}

.car-img.enter {
  opacity: 0;
  transform: translateY(130px);
}

.car-img.enter.show {
  opacity: 1;
  transform: translateY(0);
}

.car-img.exit {
  opacity: 0;
  transform: translateY(-130px);
}

/*---------------------------------------
選択エリア
---------------------------------------*/
.selection {
  padding-top: 15px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.selection:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border: none;
}

.selection_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.selection h3 {
  margin: 0 0 10px;
}

label {
  color: var(--ink);
  font-weight: 600
}

/* 一括ポップ */
.splitPopup {
  margin: 10px 0 30px;
  color: var(--accent);
  font-weight: bold;
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: #F3F9FA;
}

/*---------------------------------------
INPUT
---------------------------------------*/
input[type="range"] {
  width: 100%;
  accent-color: var(--accent)
}

input[type="text"],
input[type="email"] {
  display: inline-block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
}

input[type="email"] {
  width: 100%;
}

input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
  outline: none;
}

/*---------------------------------------
RADIO
---------------------------------------*/
fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

fieldset.row {
  display: flex;
  flex-direction: row;
}

input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-label {
  position: relative;
  cursor: pointer;
}

.radio-label span {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.radio-label:first-of-type span {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.radio-label:last-of-type span {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.radio-label input[type="radio"]:checked+span {
  background-color: #263D50;
  color: #fff;
  border-color: #263D50;
  font-weight: bold;
}

.radio-label input[type="radio"]:focus+span {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}

.attMessage {
  display: none;
  padding: 10px 15px;
  border-radius: 6px;
  color: #e95353;
  background: #fff4f4;
}

/*---------------------------------------
アクションエリア
---------------------------------------*/
.actions {
  padding: 20px;
  border-top: 1px solid var(--line);
}

.actions__left p {
  margin: 0 0 15px;
  padding: 0;
  font-size: 14px;
}

.actions__left div {
  display: flex;
  margin-bottom: 15px;
}

@media(min-width:960px) {
  .actions {
    padding: 30px 40px;
  }

  .actions__left {
    width: 60%;
  }

  .actions__left div {
    margin-bottom: 0;
  }

  .actions__left p {
    margin: 0 0 13px 20px;
    font-size: 14px;
  }

  .actions__right {
    width: 40%;
  }
}

/* BASE / Button */
.btn {
  padding: 14px 18px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 -5px 10px 0 rgba(0, 0, 0, 0.1) inset;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2), 0 -5px 10px 0 rgba(0, 0, 0, 0.1) inset;
}

.btn:focus {
  border-color: #007bff 2px solid;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
  outline: none;
}

/* Email */
.btn.email {
  padding-left: 35px;
  margin-right: 5px;
  width: 100%;
  background: #09AAF2 url(../img/envelope.svg) no-repeat 15px center;
  background-size: 20px auto;
}

/* Line */
.btn.line {
  padding-left: 20px;
  margin-left: 5px;
  width: 100%;
  background: #00BD22 url(../img/ico-line.svg) no-repeat 10px center;
  background-size: 20px auto;
}
.btn.line.linePc{
	display: none;
}
.btn.line.lineSp{
	text-decoration: none;
	text-align: center;
	display: block;
	height: 100%;
}


/* 見積もりメール送信 */
.row.sendBlock {
  display: block;
}

@media(min-width:960px) {
  .sendBlock {
    display: flex;
    padding: 0 150px;
  }
	.btn.line.linePc{
		display: block;
	}
	.btn.line.lineSp{
		display: none;
	}
}

/* Send */
.btn.send {
  width: 200px;
  margin-top: 15px;
  padding-left: 30px;
  background: #09AAF2 url(../img/send.svg) no-repeat 40px center;
}

@media(min-width:960px) {
  .btn.send {
    width: 250px;
    margin-left: 10px;
    padding-left: 40px;
  }
}

/* Entry */
.btn.entry {
  font-size: 24px;
  letter-spacing: 3px;
  width: 100%;
  line-height: 65px;
  background: #F20940 url(../img/arrow-down-short.svg) no-repeat right 30px center;
  background-size: 20px auto;
}

@media(min-width:960px) {
  .btn {
    font-size: 18px;
  }

  .btn.email {
    width: 250px;
    margin-right: 5px;
    padding-left: 40px;
    background-size: auto;
  }

  .btn.line {
    width: 250px;
    padding-left: 40px;
    background-size: auto;
  }

  .btn.entry {
    font-size: 28px;
    background: #F20940 url(../img/arrow-down-short.svg) no-repeat right 30px center;
  }
}

/*---------------------------------------
TAB Panel
---------------------------------------*/
.panelOuter h2 {
  font-size: 20px;
  padding: 0;
  margin-bottom: 10px;
}

.panelOuter p {
  font-size: 14px;
  margin: 0 0 1em;
}

.panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin: 0 20px 40px;
  text-align: center;
  position: relative;
}

.panel.panel-email {
  border-top: 1px solid #09AAF2;
}

.panel.panel-line {
  border-top: 1px solid #00BD22;
}

.panel::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.panel.panel-email::before {
  left: 50%;
  margin-left: -5px;
  border-bottom: 10px solid #03a9f4;
}

.panel.panel-line::before {
  left: 50%;
  margin-left: -5px;
  border-bottom: 10px solid #00BD22;
}

@media(min-width:960px) {
  .panel.panel-email::before {
    left: 120px;
  }

  .panel.panel-line::before {
    left: 380px;
  }
}

.panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/*---------------------------------------
Input Block
---------------------------------------*/
.inputBlock {
  margin-top: 5px;
}

.inputBlock input[type="text"] {
  width: 120px;
}

/*---------------------------------------
SELECT
---------------------------------------*/
select {
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  color: #333;
  border: 1px solid #ccc;
  padding: 12px 40px 12px 16px;
  font-size: 16px;
  line-height: 1.4;
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-sizing: border-box;
}

select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
  outline: none;
}

select:disabled {
  background-color: #eee;
  color: #999;
  cursor: not-allowed;
}

/*---------------------------------------
Flash Message
---------------------------------------*/
.flashBlock {
  margin-bottom: 20px;
  text-align: center;
  border-radius: 30px;
  line-height: 40px;
  color: #fff;
  background: #707070;
}

.flashBlock.success {
  background: #1bccb2;
}

.flashBlock.error {
  background: #d13854;
}

/*---------------------------------------
Sticky Summary（SP用固定バー）
---------------------------------------*/
.sticky-summary {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  padding: calc(env(safe-area-inset-top) + 8px) 12px 8px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  z-index: 9999;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.sticky-summary.show {
  transform: translateY(0);
  opacity: 1;
}

.sticky-summary .ss-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: center;
  font-size: 16px;
}

.sticky-summary .ss-label {
  color: var(--muted);
  font-weight: 700;
}

.sticky-summary .ss-sep {
  color: var(--line);
}

.sticky-summary .ss-value {
  font-size: 24px;
  font-family: "Bebas Neue", sans-serif;
  font-weight: 800;
}

@media (min-width: 960px) {

  /* SPでのみ表示にする場合はPCで非表示 */
  .sticky-summary {
    display: none;
  }
}

/* Stickyバー内の円は数字に対して少し小さく */
.sticky-summary .ss-yen {
  font-size: .6em;
  /* Stickyの数字は小さめなので 0.8em くらい */
  font-weight: 700;
  margin-left: .2em;
  vertical-align: baseline;
  opacity: .9;
}

/* PC未満では「審査申し込み」→「メール/LINE」の順に並べ替え */
@media (max-width: 959px) {
  .row.actions {
    display: flex;
    /* モバイルでもフレックス化 */
    flex-direction: column;
    /* 縦積みのまま順序だけ指定 */
    gap: 12px;
    /* セクション間のすき間（任意） */
  }

  .actions__right {
    order: 1;
    /* 審査申し込みブロックを先頭へ */
    width: 100%;
    /* 横幅は全幅のまま */
  }

  .actions__left {
    order: 2;
    /* メール/LINEブロックを下へ */
    width: 100%;
  }

  /* もし上下の余白を揃えたい場合（任意） */
  .actions__left div {
    margin-top: 8px;
  }
}

/*---------------------------------------
戻るボタン
---------------------------------------*/
.btnBlock {
  margin: 20px 0;
  text-align: center;
}

.btnPrev {
  display: inline-block;
  padding: 0 60px;
  font-size: 20px;
  line-height: 52px;
  color: #fff;
  text-decoration: none;
  border-radius: 40px;
  background: #263D50 url(/simulation/img/arrow-left-circle.svg) no-repeat 20px center;
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2), 0 -5px 10px 0 rgba(0, 0, 0, 0.1) inset;
  transition: 0.3s;
}

.btnPrev:hover {
  transform: translateY(2px);
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2), 0 -5px 10px 0 rgba(0, 0, 0, 0.1) inset;
}
