/* flow.css - ROOM SERVICE. Exact UI Trace of DMM_05_flow.png */

.dmm-flow-container {
  display: flex;
  align-items: stretch;
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

/* --- Left Side: Step Bubbles --- */
.flow-steps-col {
  width: 48%; /* Adjust to match DMM layout */
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 40px 0;
}

.dmm-flow-step {
  background: #F4FAFD; /* DMMの第1ステップの極薄い水色 */
  border-radius: 12px;
  display: flex;
  align-items: stretch;
  padding: 24px 32px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  position: relative;
}

/* DMMの画像を見ると、ステップ2は少し色が濃い水色 */
.dmm-flow-step:nth-of-type(3) { /* 矢印を含むため3番目 */
  background: #EAF5FA;
}
.dmm-flow-step:nth-of-type(5) {
  background: #EAF5FA;
}

.step-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-right: 24px;
}
.step-num span {
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.step-num {
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.step-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}
.step-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* Arrow between steps */
.step-arrow {
  text-align: center;
  font-size: 28px;
  color: #777; /* DMMのグレーの下向き矢印 */
  padding: 8px 0;
  line-height: 0.5;
}

/* Final Step */
.dmm-flow-step.final {
  background: var(--accent);
  color: #fff;
  flex-direction: column;
  padding: 24px 32px;
}
.dmm-flow-step.final .step-top {
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}
.dmm-flow-step.final .step-title {
  color: #fff;
  font-size: 24px;
  text-align: center;
}

/* --- Right Side: Huge Overlapping Image --- */
.flow-image-col {
  width: 55%;
  margin-left: -3%; /* このネガティブマージンにより、画像がステップに潜り込む（オーバーラップ） */
  background: var(--bg-alt); /* 写真が入るまでのダミー背景色 */
  border-radius: 40px 0 0 40px; /* 左側だけ特大の角丸で、右側は画面端まで伸ばす想定 */
  min-height: 500px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  color: #ccc;
  overflow: hidden; 
}

/* --- Dual Buttons (CTA) below flow --- */
.flow-buttons-area {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 64px;
}

.btn-wrap {
  position: relative;
}

.btn-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}
.btn-badge-blue {
  background: var(--accent);
  color: #fff;
}
.btn-badge-yellow {
  background: #fff; /* DMMでは白背景に黄色ボーダー */
  color: #FFB700;
  border: 1px solid #FFB700;
}
.btn-badge-blue::after, .btn-badge-yellow::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
}
.btn-badge-blue::after { border-color: var(--accent) transparent transparent transparent; }
.btn-badge-yellow::after { border-color: #FFF transparent transparent transparent; bottom: -3px; z-index: 2;}
.btn-badge-yellow::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: #FFB700 transparent transparent transparent;
  z-index: 1;
}

.btn-outline-blue {
  display: inline-block;
  padding: 18px 48px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  background: #fff;
  transition: all var(--tr);
}
.btn-solid-yellow {
  display: inline-block;
  padding: 18px 48px;
  background: #FFB700;
  color: #000;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  transition: all var(--tr);
}
.btn-outline-blue:hover { background: var(--accent-pale); }
.btn-solid-yellow:hover { background: #E5A400; }

@media(max-width: 900px) {
  .dmm-flow-container { flex-direction: column; }
  .flow-steps-col { width: 100%; padding: 0 16px 40px; }
  .flow-image-col { width: 100%; margin-left: 0; border-radius: 24px; min-height: 300px; }
  .flow-buttons-area { flex-direction: column; align-items: center; gap: 40px; }
}