/* ========================================
   入店までの流れ
======================================== */
.flow {
  padding: 100px 0 80px;
  background-color: var(--color-white);
}

.flow-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ヘッダー部分 */
.flow-header {
  position: relative;
  text-align: center;
  margin-bottom: 60px;
}

.flow-header-image {
  width: 745px;
  opacity: 0.7 !important;
  margin: 0px auto;
}

.flow-title {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
  font-family: var(--font-serif);
  white-space: nowrap;
}

/* PC版レイアウト */
.flow-content-pc {
  margin-bottom: 40px;
  display: block;
}

.flow-content-sp {
  display: none;
}

/* 3列構成 */
.flow-row-3cols {
  display: flex;
  justify-content: right;
  align-items: flex-start;
  gap: 20px;
  padding-top: 30px;
}

.flow-image-group {
  position: relative;
}

.flow-image {
  width: 100%;
  height: auto;
}

.checkin-arrow {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid var(--color-white);
}

.checkin-button {
  background-color: var(--color-white);
  color: var(--color-black);
  border: none;
  padding: 18px 45px;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}

.checkin-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.flow-item {
  position: relative;
  width: 336px;
}

.flow-item .flow-number {
  position: absolute;
  left: -45px;
  top: -40px;
  font-size: 230px;
  color: var(--color-secondary);
  font-weight: 300;
  font-family: "Palace Script MT", "Brush Script MT", cursive;
  line-height: 1;
  z-index: 2;
}

.flow-item .flow-text {
  font-size: 20px;
  color: var(--color-black);
  line-height: 1.2;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 300;
  margin-bottom: 30px;
  white-space: pre-line;
  width: 200px;
}

.flow-item .flow-image-wrapper {
  text-align: center;
  position: relative;
  height: 240px;
}

.flow-image {
  width: 160px;
  height: auto;
  opacity: 0.7 !important;
}

.wristband-image {
  width: 179px;
  opacity: 0.5 !important;
}

.matching-image {
  width: 300px;
  opacity: 0.7 !important;
}

/* チェックインボタン（ステップ1用） */
.flow-item .checkin-button-wrapper {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ========================================
   アプリの使い方
======================================== */
.app-usage {
  background-color: var(--color-white);
}

.app-header {
  position: relative;
  text-align: center;
  margin-bottom: 60px;
}

.app-title {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--color-primary);
  font-weight: 600;
}

.app-steps {
  display: flex;
  justify-content: center;
  gap: 160px;
  align-items: center;
}

.app-step {
  text-align: center;
}

.app-number {
  position: absolute;
  left: 0px;
  top: -30px;
  font-size: 230px;
  color: var(--color-secondary);
  font-weight: 300;
  font-family: "Palace Script MT", "Brush Script MT", cursive;
  line-height: 1;
  z-index: 2;
}

.app-content h3 {
  font-size: 24px;
  color: var(--color-black);
  margin-bottom: 30px;
  font-weight: 400;
  margin-top: 20px;
}

/* アプリの使い方 - ステップ1の画像 */
.app-content > img {
  width: 300px;
  height: auto;
  opacity: 0.4 !important;
}

/* アプリの使い方 - マッチング成立画像（円形マスク） */
.matched-person-mask {
  width: 290px;
  height: 290px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--color-white);
  position: relative;
  margin: 0 auto;
  padding: 10px;
}

.matched-person-mask img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(0px);
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
  /* 入店までの流れ（SP版） */
  .flow {
    padding: 30px 0 30px 0;
  }

  .flow-container {
    padding: 0 20px;
  }

  .flow-header {
    margin-bottom: 20px;
  }

  .flow-header-image,
  .app-header-image {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .flow-title,
  .app-title {
    font-size: 18px;
  }

  /* PC版を非表示、SP版を表示 */
  .flow-content-pc {
    display: none;
  }

  .flow-content-sp {
    display: block;
  }

  .flow-step-sp {
    position: relative;
    margin-bottom: 50px;
  }

  .flow-number-sp {
    position: absolute;
    left: 0;
    top: 30px;
    color: var(--color-secondary);
    font-weight: 400;
    font-family: "Palace Script MT", "Brush Script MT", cursive;
    line-height: 0.7;
    z-index: 5;
    width: 80%;
  }

  .flow-number-sp img {
    width: 100px;
  }

  .flow-step-content {
    position: relative;
    z-index: 2;
    padding-top: 40px;
  }

  .flow-image-sp {
    position: relative;
    width: 180px;
    margin: 0 auto 10px;
  }

  .flow-image-sp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
  }

  .wristband-select img {
    opacity: 0.5;
  }

  .checkin-button-sp .checkin-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 12px solid var(--color-white);
  }

  .checkin-button-sp button {
    background-color: var(--color-white);
    color: var(--color-black);
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: "Noto Sans", sans-serif;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  }

  .flow-text-sp {
    font-size: 14px;
    color: var(--color-black);
    line-height: 1.2;
    text-align: center;
    font-family: var(--font-serif);
    font-weight: 300;
    width: 300px;
    margin: 0 auto;
  }

  /* アプリの使い方 */
  .app-usage {
    padding: 30px 0;
  }

  .app-steps {
    flex-direction: column;
    gap: 80px;
    margin-top: 80px;
  }

  .app-number {
    font-size: 230px;
  }

  .app-steps h3 {
    font-size: 16px;
    line-height: 1.5em;
    margin-top: 20px;
  }

  .app-content > img {
    width: 300px;
  }

  /* マッチング成立画像（円形マスク） */
  .matched-person-mask {
    width: 290px;
    height: 290px;
  }

  .matched-person-mask img {
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%) translateY(0px);
  }
}
