/* ============================================================
   line-entry.css  （担当1・2026-11-24）
   申込みダイアログ（#application）の中の「QRコード」部分の見た目。
   今のダイアログ（palette-styles.css の dialog）の形・色（--red）に合わせ、
   明るくやわらかい雰囲気にしている。準備中のときはこの部分は表示されない。
   ============================================================ */

/* QRを出しているときだけ、パソコンでは画面のまん中に浮かぶカードにする */
@media (min-width: 560px) {
  #application.is-line-qr {
    inset: 0;
    width: min(calc(100% - 32px), 440px);
    height: fit-content;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 30px 28px 28px;
    border-radius: 20px;
    overflow: auto;
  }
}

#application.is-line-qr h2 {
  text-align: center;
  margin: 0 32px 6px;
}

.line-entry[hidden] { display: none; }

.line-entry {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.line-entry-lead {
  margin: 0;
  color: var(--red, #da0027);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* QRコードの台紙：白いカード＋うすい色のふち。読み取りやすいよう白い余白を広めに */
.line-entry-qr {
  width: min(232px, 72vw);
  aspect-ratio: 1;
  padding: 10px;
  border: 2px solid color-mix(in srgb, var(--red, #da0027) 18%, #fff);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgb(120 30 40 / 45%), 0 0 0 6px color-mix(in srgb, var(--red, #da0027) 6%, #fff);
}

.line-entry-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* 「スマホで見ている方はこちら」：今のボタンと同じ丸い形。主役（QR）より控えめな白地のボタン */
.line-entry-sp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: min(100%, 300px);
  margin-top: 4px;
  padding: 10px 18px;
  border: 2px solid var(--red, #da0027);
  border-radius: 999px;
  background: #fff;
  color: var(--red, #da0027);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.line-entry-sp:hover,
.line-entry-sp:focus-visible {
  background: var(--red, #da0027);
  color: #fff;
}

.line-entry-sp:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--red, #da0027) 35%, #fff);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .line-entry-sp { transition: none; }
}

/* QRの下の一言（2026-11-24 Kana決定） */
#application .line-entry-note { margin: .75rem 0 0; font-size: .9rem; line-height: 1.6; color: #555; text-align: center; }
