/* =========================================================
   inCruises専用ページ｜お申し込みについて（スマートフォン専用）
   完成見本: 実装パック reference/01_approved_mobile_reference.png
   実装パック 04_application_guide.css を .ic-apply 配下のまま移植。
   重要文字はすべてHTMLテキスト。画像はユーザー支給のQR 1点のみ。
   PC版（769px以上）は既存の #incruises-join をそのまま維持する。
   グローバルセレクタは一切使用しない。
========================================================= */

/* 769px以上では一切表示しない（PC版は既存構成のまま） */
.ic-apply{ display: none; }

/* =========================================================
   お申し込みについて / スマホ正式UI
   - 重要文字：HTML
   - QR：ユーザー支給画像
   - ボタン：既存サイトの柔らかいオレンジ
   - 他セクションへ影響させない
========================================================= */

.ic-apply {
  --apply-bg: #fffdf9;
  --apply-card: #fffdfa;
  --apply-card-2: #fffaf5;
  --apply-text: #3a2419;
  --apply-gold: #d5a64b;
  --apply-line: #eed5a5;

  /* 添付済み既存ボタン色サンプルを基準にした、
     強すぎない黄味のあるオレンジ */
  --apply-orange-1: #f8b95d;
  --apply-orange-2: #f4aa3d;
  --apply-orange-text: #ffffff;

  background: transparent;
  color: var(--apply-text);
}

.ic-apply *,
.ic-apply *::before,
.ic-apply *::after {
  box-sizing: border-box;
}

.ic-apply__inner {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 14px 16px;
}

.ic-apply__header {
  text-align: center;
  margin: 0 0 10px;
}

.ic-apply__header h2 {
  margin: 0;
  color: var(--apply-text);
  font-family: var(--cruise-mincho, "Yu Mincho", "Hiragino Mincho ProN", serif);
  font-size: 30px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: .02em;
}

.ic-apply__header h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin: 7px auto 0;
  background: linear-gradient(90deg, transparent, var(--apply-gold), transparent);
}

.ic-apply__cards {
  display: grid;
  gap: 8px;
}

.ic-apply-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #f0dfc4;
  border-radius: 16px;
  background: var(--apply-card);
  box-shadow: 0 5px 16px rgba(89, 64, 35, .05);
}

.ic-apply-card--without-referrer {
  background: var(--apply-card-2);
}

.ic-apply-card__content {
  min-width: 0;
}

.ic-apply-card__content h3 {
  margin: 0 0 7px;
  color: var(--apply-text);
  font-family: var(--cruise-mincho, "Yu Mincho", "Hiragino Mincho ProN", serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

/* 見出し色は完成見本に合わせ、2枚とも同じ濃茶（実装パックのオレンジ指定は不採用） */

.ic-apply-card__content p {
  margin: 0;
  color: #44362e;
  font-size: 15px;
  line-height: 1.55;
}

/* -------------------------
   CSS person icons
-------------------------- */
.ic-apply-card__icon {
  position: relative;
  width: 70px;
  height: 70px;
  justify-self: center;
}

.person {
  position: absolute;
  display: block;
}

.person::before {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border: 4px solid var(--apply-gold);
  border-radius: 50%;
}

.person::after {
  content: "";
  position: absolute;
  width: 39px;
  height: 26px;
  border: 4px solid var(--apply-gold);
  border-top: 0;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.person--large {
  left: 5px;
  top: 4px;
}

.person--large::before {
  left: 3px;
  top: 0;
}

.person--large::after {
  left: -4px;
  top: 31px;
}

.person--small {
  right: 4px;
  top: 20px;
  transform: scale(.72);
  transform-origin: center;
}

.person--small::before,
.person--small::after {
  border-color: var(--apply-gold);
}

.person--single {
  left: 16px;
  top: 4px;
}

.person--single::before {
  left: 7px;
  top: 0;
  border-color: #d88735;
}

.person--single::after {
  left: 0;
  top: 31px;
  border-color: #d88735;
}

/* -------------------------
   QR + CTA
-------------------------- */
.ic-apply__action-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.ic-apply__qr {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.ic-apply__button {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(223, 154, 53, .35);
  border-radius: 14px;
  background:
    linear-gradient(135deg,
      var(--apply-orange-1) 0%,
      var(--apply-orange-2) 100%);
  box-shadow:
    0 4px 10px rgba(204, 139, 44, .14),
    inset 0 1px 0 rgba(255,255,255,.35);
  color: var(--apply-orange-text);
  text-decoration: none;
  text-align: center;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .01em;
}

.ic-apply__button:hover {
  filter: brightness(.985);
}

.ic-apply__button:focus-visible {
  outline: 3px solid rgba(213,166,75,.45);
  outline-offset: 3px;
}

.ic-apply__button-arrow {
  flex: 0 0 auto;
  font-size: 29px;
  line-height: 1;
  font-weight: 400;
}

.ic-apply__reassurance {
  margin-top: 8px !important;
  white-space: nowrap;
  font-size: 14px !important;
  line-height: 1.3 !important;
}

.ic-apply__mobile-only {
  display: none;
}

/* =========================================================
   Smartphone
========================================================= */
@media (max-width: 768px) {
  /* スマホでは既存の入会ブロックを隠し、こちらへ差し替える */
  #incruises-join .jn-inner,
  #incruises-join .jn-deco{ display: none; }

  .ic-apply{ display: block; }

  .ic-apply__inner {
    width: 100%;
    padding: 10px 14px 12px;
  }

  .ic-apply__header {
    margin-bottom: 8px;
  }

  .ic-apply__header h2 {
    font-size: 25px;
  }

  .ic-apply-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 11px;
    border-radius: 14px;
  }

  .ic-apply-card__icon {
    width: 58px;
    height: 56px;
  }

  /* 完成見本どおり、大小2人を横に並べる（重ならないよう配置） */
  .person--large {
    left: 0;
    top: 4px;
    transform: scale(.74);
    transform-origin: left top;
  }

  .person--single {
    left: 8px;
    top: 4px;
    transform: scale(.80);
    transform-origin: left top;
  }

  .person--small {
    right: auto;
    left: 31px;
    top: 15px;
    transform: scale(.52);
    transform-origin: left top;
  }

  .ic-apply-card__content h3 {
    margin-bottom: 5px;
    font-size: 19px;
  }

  .ic-apply-card__content p {
    font-size: 14px;
    line-height: 1.42;
  }

  .ic-apply__action-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 9px;
  }

  .ic-apply__qr {
    width: 104px;
    height: 104px;
  }

  .ic-apply__button {
    min-height: 64px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 15px;
  }

  .ic-apply__mobile-only {
    display: inline;
  }

  .ic-apply__reassurance {
    margin-top: 7px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 390px) {
  .ic-apply__inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ic-apply__header h2 {
    font-size: 24px;
  }

  .ic-apply-card {
    grid-template-columns: 54px minmax(0, 1fr);
    padding: 9px 10px;
  }

  .ic-apply-card__icon {
    width: 52px;
    height: 52px;
  }

  .person--large { transform: scale(.66); }
  .person--single { transform: scale(.72); }

  .person--small {
    left: 28px;
    top: 14px;
    transform: scale(.47);
  }

  .ic-apply-card__content h3 {
    font-size: 18px;
  }

  .ic-apply-card__content p {
    font-size: 13.5px;
  }

  .ic-apply__action-row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
  }

  .ic-apply__qr {
    width: 96px;
    height: 96px;
  }

  .ic-apply__button {
    min-height: 60px;
    font-size: 14px;
  }

  .ic-apply__reassurance {
    font-size: 11.8px !important;
  }
}
