/* カスタムプロパティ（CSS変数） */
:root {
  /* カラーパレット */
  --color-main: #792389;
  --color-sub: #FDD000;
  --color-white: #FFFFFF;
  
  /* フォント（Windows 等で input がゴシックにならないよう Web フォントを先に） */
  --font-mincho: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "MS PMincho", "MS Mincho", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-mincho);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--color-sub);
  min-height: 100vh;
  box-sizing: border-box;
  letter-spacing: 0.09em;
}

body.terms-modal-open {
  overflow: hidden;
}

img {
  width: 100%;
}

/* 利用規約モーダル */
.terms-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.terms-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4% 4%;
}

.terms-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
}

.terms-modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  max-height: 92vh;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  color: var(--color-white);
  text-align: center;
  display: flex;
  flex-direction: column;
}

@supports (height: 100dvh) {
  .terms-modal-content {
    max-height: calc(
      100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8%
    );
  }
}

.terms-modal-lead {
  font-family: "FOT-TsukuAMDin Std", var(--font-mincho);
  font-weight: 800;
  font-style: normal;
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0.15em;
  color: var(--color-sub);
  min-height: 60px;
  margin: 0 auto 14px;
  text-align: center;
}

.terms-modal-sublead {
  font-family: "FOT-TsukuAMDin Std", var(--font-mincho);
  font-weight: 800;
  font-style: normal;
  font-size: 14px;
  line-height: 30px;
  letter-spacing: 0.2em;
  color: var(--color-white);
  min-height: 30px;
  margin: 0 auto 12px;
  text-align: center;
}

.terms-modal-paper {
  background: #f3f3f3;
  color: #111111;
  border-radius: 2px;
  width: min(86vw, 338px);
  height: min(62.2vh, 530px);
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
  text-align: left;
  padding: 7% 3% 7% 0;
  margin: 0 auto;
}

@supports (height: 100dvh) {
  .terms-modal-paper {
    height: min(62.2dvh, 530px);
  }
}

.terms-modal-body p,
.terms-modal-body li {
  font-family: "Noto Sans", var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2em;
  color: #000000;
}

.terms-modal-body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 7% 0 4%;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-main) transparent;
}

.terms-modal-body::-webkit-scrollbar {
  width: 11px;
}

.terms-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terms-modal-body::-webkit-scrollbar-thumb {
  background-color: var(--color-main);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.terms-modal-body p {
  margin-bottom: 16px;
}

.terms-modal-body ol,
.terms-modal-body ul {
  padding-left: 1.35rem;
  margin-bottom: 16px;
}

.terms-agree-button {
  margin: 5% auto 0;
  width: min(73.8vw, 290px);
  border: none;
  border-radius: 999px;
  background: var(--color-sub);
  color: var(--color-main);
  font-family: "FOT-TsukuAMDin Std", var(--font-mincho);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.2em;
  padding: 10px 25px;
  box-shadow: 2px 6px 0 #bf640f;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.terms-agree-button:active {
  transform: translateY(6px) scale(1);
  box-shadow: 0 0 0 #bf640f;
}

.terms-agree-button-image {
  width: 79%;
  max-width: 229px;
}

@media (max-width: 400px) {
  .terms-modal-content {
    max-width: 340px;
  }

  .terms-modal-lead {
    font-size: 20px;
  }

  .terms-modal-body p,
  .terms-modal-body li {
    font-size: 0.98rem;
  }

}

/* 画面切り替え制御 */
.screen {
  display: none;
}

.screen.active {
  display: block;
  height: calc(100% - 66px);
}

/* ラッパー（黄色い枠） */
.wrapper {
  border: 10px solid var(--color-sub);
  background-color: var(--color-main);
  position: relative;
  /* overflow-y: scroll; */
  /* border-bottom: none; */
}

/*
 * PC表示ではSP幅の疑似端末フレームとして中央固定表示する。
 * モバイルは既存レイアウトのまま。
 */
@media (min-width: 768px) {
  body {
    background: #f2e9f6;
  }

  .wrapper {
    width: min(100%, 430px);
    margin: 20px auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  }
}

/* コンテンツラッパー（最大幅設定） */
.content-wrapper {
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
}

/* コンテナ */
.container {
  margin: 0 auto;
}

/* ロゴセクション */
.logo-section {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.logo-image {
  max-width: 41%;
  padding: 8px 11px 3px;
  height: auto;
  display: block;
}

/* ヘッダー */
.header {
  margin-bottom: 0.4rem;
  padding: 0 1.1rem;
}

.title-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.subtitle-image {
  max-width: 40%;
  height: auto;
  display: block;
  margin: 0 0 0.8rem;
}

/* メインコンテンツ */
.main-content {
  border-radius: 0.5rem;
  padding: 1.1rem;
  margin-bottom: 2rem;
}

/* フォームセクション */
.form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* margin-bottom: 1.5rem; */
  border: 3px solid #fff;
  border-radius: 12px;
  padding: 0 20px 28px;
}

.form-section--input {
  padding: 0 14px 22px;
  border-width: 4px;
  border-radius: 20px;
  align-items: stretch;
}

.form-label-image {
  height: auto;
  display: block;
  text-align: center;
  max-width: 160px;
  width: 87%;
  margin: -14px auto 0;
  background-color: var(--color-main);
  padding: 0 13px;
}

/* 矢印画像 */
.arrow-image {
  max-width: 22px;
  width: 22px;
  height: auto;
  display: block;
  margin: 1.5rem auto calc(1.5rem + 12px);
  text-align: center;
}

/* アップロードタイトル */
.upload-title {
  max-width: 276px;
  width: 94%;
  height: auto;
  display: block;
  text-align: center;
  margin: -17px auto 0;
  background-color: var(--color-main);
  padding: 0 10px;
}

.upload-title img {
  width: 94%;
}

/* アップロードエリア */
.upload-area {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 0.5rem;
  padding: 1rem;
}

.retrim-link-container {
  margin-top: 12px;
}

.retrim-link {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mincho);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
  transition: opacity 0.2s;
}

.retrim-link:hover {
  opacity: 0.8;
}

.preview-photo {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* アップロード情報ボックス */
.upload-info-box {
  background-color: var(--color-main);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.form-section > .upload-info-box {
  padding-bottom: 1rem;
}

.upload-info-text {
  color: var(--color-white);
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: var(--font-mincho);
}

.upload-info-text:last-child {
  margin-bottom: 0;
}

/* アップロードボタン */
.upload-button {
  background: var(--color-sub);
  border: none;
  cursor: pointer;
  padding: 10px 25px;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  box-shadow: 2px 6px 0 #BF640F;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.upload-button .button-image {
  max-width: 132px;
}

.upload-button:active {
  transform: translateY(6px) scale(1);
  box-shadow: 0 0 0 #BF640F;
}

.file-input {
  position: absolute;
  top: -9999px;
  left: -9999px;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* テキスト入力 */
.text-input {
  width: 178px;
  max-width: 178px;
  height: 47px;
  padding: 0 20px;
  border: 2px solid var(--color-main);
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-mincho);
  color: var(--color-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 12px auto 14px;
  -webkit-appearance: none;
  appearance: none;
}

.text-input::placeholder {
  color: #E1E1E1;
}

.text-input:focus {
  outline: none;
  border-color: var(--color-sub);
  box-shadow: 0 0 0 3px rgba(253, 208, 0, 0.3);
}

.input-guide {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  margin: 0 auto;
}

.input-guide-image {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.input-guide-text {
  color: var(--color-white);
  font-family: var(--font-mincho);
  margin-top: 14px;
  margin-bottom: 14px;
  margin-right: 0;
  flex: 0 1 auto;
}

.input-guide-lead-image,
.input-guide-detail-image {
  width: 100%;
  height: auto;
  display: block;
}

.input-guide-lead-image {
  max-width: 198px;
  margin-bottom: 8px;
}

.input-guide-detail-image {
  max-width: 179px;
}

.style-section {
  margin-bottom: 2.4rem;
  padding: 0 14px 18px;
  border-width: 4px;
  border-radius: 20px;
}

.style-select-title {
  width: 100%;
  max-width: 260px;
  margin: -18px auto 14px;
  background-color: var(--color-main);
  padding: 0 10px;
}

.style-select-title-image {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.style-option-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.style-option-button {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: "Hiragino Mincho Pro", "Hiragino Mincho ProN", var(--font-mincho);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

.style-option-image {
  width: 100%;
  border: 5px solid transparent;
  transition: border-color 0.15s ease;
}

.style-option-button--selected .style-option-image {
  border-color: var(--color-sub);
}

.style-option-label {
  color: var(--color-white);
}

@media (max-width: 420px) {
  .input-guide {
    gap: 10px;
  }

  .input-guide-image {
    width: 96px;
  }
}

/* 送信ボタン */
.submit-button {
  width: 85%;
  margin: 0 auto;
  background: var(--color-sub);
  border: none;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  box-shadow: 2px 6px 0 #BF640F;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.submit-button:active {
  transform: translateY(6px) scale(1);
  box-shadow: 0 0 0 #BF640F;
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.button-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.submit-button .button-image {
  max-width: 98px;
}

/* トリミングモーダル */
.trimming-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}

.trimming-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4%;
}

.trimming-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.trimming-modal-content {
  position: relative;
  background-color: var(--color-main);
  border-radius: 12px;
  padding: 5%;
  width: min(92vw, 430px);
  max-height: 92vh;
  overflow: auto;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@supports (height: 100dvh) {
  .trimming-modal-content {
    max-height: calc(
      100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 8%
    );
  }
}

.trimming-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-mincho);
}

/* トリミングエリア */
.trimming-area {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trimming-canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.crop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  /* widthとheightはJavaScriptで動的に設定される */
  pointer-events: none;
}

.crop-frame {
  position: absolute;
  left: 0;
  top: 0;
  /* widthとheightはJavaScriptで動的に設定される */
  aspect-ratio: 1;
  border: none;
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  cursor: move;
  touch-action: none;
  transform: translateZ(0);
  will-change: transform;
  /* アニメーションするボーダー */
  background-image: 
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 50%, transparent 50%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 50%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78) 50%, transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78) 50%, transparent 50%);
  background-size: 10px 1px, 10px 1px, 1px 10px, 1px 10px;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  animation: marching-ants 1s linear infinite;
}

.face-size-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.face-size-guide-circle {
  position: absolute;
  width: 64%;
  height: 86%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.face-size-guide-line {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.face-size-guide-line--horizontal {
  left: 14%;
  right: 14%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.face-size-guide-line--vertical {
  top: 14%;
  bottom: 14%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

@keyframes marching-ants {
  0% {
    background-position: 0 0, 0 100%, 0 0, 100% 0;
  }
  100% {
    background-position: 20px 0, -20px 100%, 0 -20px, 100% 20px;
  }
}

/* リサイズハンドル */
.resize-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, .7);
  background-color: rgba(0, 0, 0, 0.2);
  cursor: nwse-resize;
  z-index: 10;
  touch-action: none;
}

.resize-handle-nw {
  top: -8px;
  left: -8px;
  cursor: nwse-resize;
}

.resize-handle-ne {
  top: -8px;
  right: -8px;
  cursor: nesw-resize;
}

.resize-handle-sw {
  bottom: -8px;
  left: -8px;
  cursor: nesw-resize;
}

.resize-handle-se {
  bottom: -8px;
  right: -8px;
  cursor: nwse-resize;
}

/* トリミングボタングループ */
.trimming-button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.trimming-button {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  font-family: var(--font-mincho);
  min-width: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.trimming-button:active {
  transform: translateY(6px) scale(1);
  box-shadow: 0 0 0 #BF640F;
}

.trimming-button-secondary {
  background-color: #E5E7EB;
  color: #374151;
  box-shadow: 2px 6px 0 #BF640F;
}

.trimming-button-secondary:hover {
  background-color: #D1D5DB;
}

.trimming-button-primary {
  background: var(--color-sub);
  color: var(--color-main);
  box-shadow: 2px 6px 0 #BF640F;
}

.trimming-button-primary:hover {
  background: var(--color-sub);
}

.trimming-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.trimming-button:disabled:active {
  transform: none;
  box-shadow: 2px 6px 0 #BF640F;
}

/* ローディング画面 */
.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.loading-shurikens {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.loading-shuriken {
  width: 55px;
  height: auto;
  display: block;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-text {
  font-size: 1.25rem;
  color: var(--color-white);
  font-family: var(--font-mincho);
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

/* ローディング画面表示時にロゴを非表示 */
body.loading-active .logo-section {
  display: none;
}

/*
 * ローディング中は「内側を 100dvh に固定」すると、モバイル Safari で
 * 実表示より高くなりラッパー全体が縦に伸び、上下の黄色枠が画面外に出る。
 * ラッパーを 100svh（小さいビューポート）に合わせ、子を flex で伸ばして中央に配置する。
 */
body.loading-active .wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

body.loading-active .content-wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.loading-active #loading-screen.screen.active {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
}

body.loading-active #loading-screen.screen.active .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

body.loading-active .loading-content {
  min-height: 0;
}

/* 完了画面 */
#result-screen .container {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* メインコンテンツ（紫背景） */
.result-main-content {
  background-color: var(--color-main);
  border: 3px solid #fff;
  border-radius: 12px;
  padding: 0 20px 20px;
  margin: 0 1.1rem 1.7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-title {
  max-width: 200px;
  width: 62.5%;
  height: auto;
  display: block;
  text-align: center;
  margin: -26px auto 1.5rem;
  background-color: var(--color-main);
  padding: 0 10px;
}

.result-title-image {
  margin: 0 auto;
  width: 73%;
  height: auto;
  display: block;
}

.result-area {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background-color: var(--color-main);
  max-width: 261px;
}

.result-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

/* 最終お申込後のみ表示（長押し保存の案内） */
.result-save-hint {
  display: none;
}

.result-screen.apply-complete .result-save-hint {
  display: flex;
}

/* 下部セクション（黄色背景） */
.result-bottom-section {
  background-color: var(--color-sub);
  padding: 32px 10px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 101%;
  margin-left: -1px;
}

@media (min-width: 500px) {
  .result-bottom-section {
    max-width: 464px;
    margin: 0 auto;
  }
}

.printer-section {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.printer-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 100%;
}

.printer-text {
  color: var(--color-main);
  font-size: 0.875rem;
  line-height: 1.6;
  font-family: var(--font-mincho);
  margin: 0;
  flex: 1;
  font-weight: 600;
}

.print-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.print-button {
  width: min(73.8vw, 290px);
  background: var(--color-main);
  border: none;
  cursor: pointer;
  padding: 10px 25px;
  height: 56px;
  box-sizing: border-box;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  box-shadow: 0px 6px 0 #370440;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.print-button-image {
  width: 49%;
  max-width: 140px;
  height: auto;
  display: block;
}

.print-button:active {
  transform: translateY(6px) scale(1);
  box-shadow: 0 0 0 #370440;
}

/* やり直すボタン（完了画像の直下） */
.result-retry-inline-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 1.1rem 1.3rem;
}

.result-retry-inline-button {
  width: min(73.8vw, 290px);
  background: var(--color-sub);
  border: none;
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 18px;
  height: 56px;
  box-sizing: border-box;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  box-shadow: 2px 6px 0 #BF640F;
}

.result-retry-inline-button:active {
  transform: translateY(6px) scale(1);
  box-shadow: 0 0 0 #BF640F;
}

.result-retry-inline-button-image {
  width: 34.5%;
  max-width: 99px;
  height: auto;
  display: block;
}

.result-retry-inline-note {
  color: var(--color-white);
  font-size: 0.8rem;
  text-align: center;
  font-family: var(--font-mincho);
  margin: 0 1.1rem 1.1rem;
}

.final-apply-complete-section {
  display: none;
  width: 100%;
  margin-left: 0;
  padding: 32px 10px 28px;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background-color: var(--color-sub);
}

.result-screen.apply-complete #result-retry-inline-container,
.result-screen.apply-complete #result-retry-inline-note,
.result-screen.apply-complete #result-bottom-section {
  display: none;
}

.result-screen.apply-complete .final-apply-complete-section {
  display: flex;
  flex: 1;
  align-self: stretch;
}

.result-screen.apply-complete {
  background-color: var(--color-main);
  min-height: 100vh;
}

.result-screen.apply-complete .container {
  margin-top: 0;
  height: auto;
  min-height: 100%;
}

.result-screen.apply-complete.screen.active {
  height: auto;
  min-height: calc(100vh - 120px);
}

@media (min-width: 500px) {
  .final-apply-complete-section {
    max-width: 464px;
    margin: 0 auto;
  }
}

.final-apply-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

.final-apply-id-box {
  width: 286px;
  height: 46px;
  background: var(--color-white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.final-apply-id-text {
  color: var(--color-main);
  font-family: var(--font-mincho);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

