/* K-ETA申請フォーム 追加スタイル
   ベースは現行本番から取得した bootstrap.min.css + style.css（/formstatic/css/）。
   ここには現行がページ内 <style> で持っていた分と、自前実装のJSが使う
   わずかな補助スタイル（オーバーレイ・エラー表示切替など）だけを置く。 */

/* ---------- フォント: サイト側（keta-travel.com）と統一 ---------- */
/* サイトは html{font-family:"Roboto",sans-serif}（wp-content/themes/keta/style.css）。
   サイト側の Roboto の Google Fonts <link> は rel="preload"（as属性・rel=stylesheet 無し）で
   実際には読み込まれておらず、描画はOSの sans-serif フォールバック
   （Mac=ヒラギノ / Win=Yu Gothic系 / Android=ローカルRoboto）になっている。
   同じ描画にするため、webフォントは読み込まずサイトと同一の指定だけを行う。
   ※このファイルは style.css（body に !important 指定あり）より後に読み込まれるため後勝ちで優先される */
body {
  font-family: "Roboto", sans-serif !important;
}
/* フォーム部品にも同じフォントを明示（bootstrap は inherit だが確実にするため） */
input, button, select, optgroup, textarea {
  font-family: "Roboto", sans-serif !important;
}

/* ---------- アクセシビリティ: WCAG AAの文字コントラスト ---------- */
/* ベースCSSの #f00 / #999 は白・薄橙背景上で4.5:1を下回るため、
   意味と見た目を保ったまま濃い色へ寄せる。 */
.form-note .font-red {
  color: #b00020 !important;
}
.label-required {
  color: #b00020 !important;
  border-color: #b00020 !important;
}
.label-confirm,
.label-not-required {
  color: #595959 !important;
  border-color: #595959 !important;
}
/* UNKNOWNチェックのラベルはPC計測時にbodyの濃灰背景が透けた扱いになったため、
   通常チェックボックスだけ背景を明示する（ボタン型ラジオは対象外）。 */
.form-check:not(.form-check-button) > .form-check-label {
  color: #212529;
  background-color: #fff;
}

/* ---------- 現行のページ内スタイル（step1）の移植 ---------- */
input[type='file'] { display: none; }

.filename {
  font-size: 1.4rem;
  color: #555;
  background: url(/formstatic/images/attachment.png) no-repeat 1px 50%;
  padding-left: 18px;
  margin-bottom: 20px;
}
/* ファイル未選択の間は現行と同じく .attachment を空（高さ0）にする */
.attachment .filename:empty { display: none; }

.modal-question {
  width: 20px;
  height: 20px;
  background-color: #2c5697;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-question > img { height: 15px; }

.modal-wrapper {
  z-index: 999;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: 50px 10px;
  text-align: center;
  padding-top: 0px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
/* 現行は :target 方式。自前JSがクラスで開く場合（.open）も同じ見た目にする */
.modal-wrapper:target,
.modal-wrapper.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s, visibility 0.4s;
}
.modal-wrapper::after {
  display: inline-block;
  height: 100%;
  margin-left: -0.05em;
  vertical-align: middle;
  content: '';
}
.modal-wrapper .modal-window {
  box-sizing: border-box;
  display: inline-block;
  z-index: 20;
  position: relative;
  top: 20px;
  width: 90%;
  max-width: 1000px;
  max-height: 100%;
  padding: 20px 20px 40px 40px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  vertical-align: middle;
}
@media screen and (max-width: 768px) {
  .modal-wrapper .modal-window {
    width: 85%;
    padding: 15px;
  }
}
.modal-wrapper .modal-window .modal-sentences {
  height: calc(100vh - 100px);
  overflow-y: auto;
  text-align: left;
  color: #333333;
}
.modal-overlay {
  z-index: 10;
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.8);
}
.modal-wrapper .modal-close {
  z-index: 20;
  position: absolute;
  top: 0;
  right: 20px;
  width: 65px;
  color: #95979c !important;
  font-size: 45px;
  font-weight: 300;
  line-height: 65px;
  text-align: center;
  text-decoration: none;
  text-indent: 0;
}
.modal-wrapper .modal-close:hover { color: #2b2e38 !important; }
.modal-btn-box {
  padding-top: 20px;
  padding-right: 15px;
  display: flex;
  justify-content: flex-end;
}
.modal-h4 {
  font-size: 1.8rem !important;
  font-weight: bold;
  border: none;
  padding-left: 0;
  margin: 20px 0;
  color: #000;
}
.modal-header { font-size: 2rem; }
.modal-text {
  font-size: 1.4rem;
  padding-right: 40px;
  margin-top: 0px !important;
}
.form-control.unknown {
  background-color: #e9ecef;
  opacity: 1;
}
.width-217 { width: 217px; }
@media (max-width: 1020px) {
  .modal-header { font-size: 1.6rem; }
  .modal-text {
    font-size: 1.6rem;
    padding-top: 10px;
    margin-top: 0px !important;
  }
  .modal-height { max-height: 100% !important; }
}

/* ---------- SP版のページ内スタイル（現行SP実HTMLの<style>を移植） ----------
   現行はPCとSPで別ページ・別のページ内CSSを持つ。上のモーダル等の値はPC版のもの。
   SP版ページ（body[data-platform="sp"]）ではSP実測値で上書きする。 */
body[data-platform="sp"] h3.form-header { color: #000; }
/* .form-submit{margin-top:50px} は現行でstep1/step2/confirmのSPだけが持つ
   ページ内スタイルのため、build.jsが該当ページの<head>に直接出力する */
body[data-platform="sp"] .modal-wrapper .modal-window {
  width: 70%;
  max-width: 600px;
  max-height: 550px;
  padding: 30px 30px 15px;
}
@media screen and (max-width: 768px) {
  body[data-platform="sp"] .modal-wrapper .modal-window {
    width: 85%;
    padding: 30px 20px 20px 20px;
  }
  body[data-platform="sp"] #step1_submit_btn { font-size: 1.4rem; }
}
body[data-platform="sp"] .modal-wrapper .modal-window .modal-sentences {
  height: auto;
  max-height: 500px;
}
body[data-platform="sp"] .modal-wrapper .modal-window .modal-sentences p span { font-size: 1.4rem; }
body[data-platform="sp"] .modal-wrapper .modal-close {
  right: 8px;
  width: 35px;
  font-size: 20px;
  font-weight: 700;
  line-height: 35px;
}
body[data-platform="sp"] .modal-btn-box {
  padding-right: 0;
  justify-content: center;
}
body[data-platform="sp"] .modal-header { font-size: 1.6rem; }
body[data-platform="sp"] .modal-text {
  font-size: 1.4rem;
  padding-right: 10px;
  padding-top: 0;
  margin-top: 20px !important;
}

/* SP: step2 同意チェックのチェックマーク補正。
   style.css の .checkmark:after（left:5px/top:0/7×14px/太さ3px/rotate40deg）は
   チェックが19.5pxの枠から上へはみ出し、実機では絵文字の☑️のように見える。
   ネイティブのチェックボックス（青い角丸枠に収まった白チェック）と同じく
   枠内に収まる細めのチェックにする。青背景#007bffはstyle.cssのまま */
body[data-platform="sp"] .agree-checkbox .checkmark:after {
  left: 6.5px;
  top: 2.5px;
  width: 6px;
  height: 11px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- 自前実装のJSが使う補助 ---------- */
/* エラー文はJSが .show を付けて表示する（現行はjQueryの.show()＝inline style） */
.form-error.show { display: block; }

/* パスポート画像プレビュー（現行はcanvas。ここではimgで同じ見た目にする） */
#preview_box .thumb {
  max-width: 200px;
  margin-top: 10px;
  border: solid 1px #ddd;
}


/* 旅行会社電話番号の国番号ドロップダウン（現行と同じ国旗リスト方式）。
   本体のスタイルは style.css（.form-tel / .tel-country-list 等）にある。
   ※現行CSSのハイライトは name="tel_country" 向けで、本番でもこのリストには
   効いていない（実測）ため、あえて補わず本番と同じ見た目にする */
.tel_country_selected { cursor: pointer; }

/* 「滞在先 郵便番号」等の幅217px枠内の注記は折り返さない */
.width-217 .asterisk { white-space: nowrap; }

/* プログレスの完了済みステップ: チェックマーク画像(checked.png)を丸枠の中央に */
.page-nav-pc li.checked .page-nav-pc-num {
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-nav li.checked {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* SPは✓の描画が丸枠に対して少し上に見えるため、実機指摘に合わせて下へ補正 */
.page-nav li.checked img {
  position: relative;
  top: 2px;
}

/* 完了画面 */
.complete-box { text-align: center; padding: 30px 0; }
.complete-box .mark { font-size: 44px; color: #198754; }

/* 決済画面（第2弾の自作デザイン。ブランドアイコンのみ本物画像 pay01〜05.jpg） */
.payment-box {
  max-width: 420px;
  margin: 40px auto;
  /* 枠線はカードブランドタイルと同じ紺色 */
  border: solid 1px #ced4da;  /* カード番号入力欄と同色 */
  background: #fafafa;
  padding: 40px;
}
@media (max-width: 728px) {
  .payment-box { padding: 20px 16px 24px; margin: 24px auto; }
}
.payment-box .list-pay-type {
  max-width: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto 26px;
  padding: 0;
  list-style: none;
}
.payment-box .list-pay-type li { list-style: none; line-height: 0; }
/* SP: ブランドマーク列と「カード番号」ラベルの間隔。
   style.css の @media(max-width:768px) .list-pay-type{margin:auto !important} が
   上の margin-bottom:26px を0に潰して密着していたため、!importantで取り戻す */
body[data-platform="sp"] .payment-box .list-pay-type { margin: 0 auto 26px !important; }
/* 各ブランドロゴは紺色の枠に入れる（第2弾デザインの枠+本物のロゴ画像）。
   タイルは正方形にする。style.css がSPで img に margin-bottom 25px を
   !important 付きで当てて枠が縦長になるため、ここで margin を打ち消す */
.payment-box .list-pay-type li.brand-frame {
  border: solid 1px #ced4da;  /* カード番号入力欄と同色 */
  border-radius: 3px;
  background: #fff;
  padding: 4px;
}
.payment-box .list-pay-type li.brand-frame img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain;
  display: block;
  margin: 0 !important;
}
.pay-btn {
  display: block;
  width: 300px;
  margin: 14px auto 0;
  background-color: #dc003b;
  border-color: #dc003b;
  color: #fff;
  font-weight: bold;
  font-size: 1.8rem;
  padding: 12px;
}
.pay-btn:hover { background-color: #c00034; border-color: #c00034; color: #fff; }
@media (max-width: 728px) {
  .pay-btn { width: 100%; margin-left: 0; }
}
.card-field { margin-bottom: 16px; }
.card-field label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 5px;
}
#card-element, #expiry-element, #cvc-element {
  padding: 11px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  background: #fff;
  height: 44px;
}
/* カード名義のplaceholderはStripe枠の「月/年」等と同じ薄いグレー */
#card-name::placeholder { color: #aab7c4; }
/* SP: フォーカス時にiOS Safariが自動ズームしないよう16px以上を明示
   （16px未満の入力欄にフォーカスするとページ全体が拡大される） */
body[data-platform="sp"] #card-name { font-size: 16px; }
/* 有効期限とセキュリティコードはSPでも横並び（本物の card-form-flex と同じ） */
.card-row { display: flex; gap: 12px; }
.card-row > div { flex: 1; }
#payment-error { color: #f00; font-size: 1.4rem; margin-top: 10px; min-height: 1em; }

/* セキュリティコードの「？」ヘルプ（本物の help-icon / tool-tip を移植。
   アイコンは下に申請料金の記載があるため薄いグレーで控えめにする） */
.help-icon-wrapper { position: relative; }
.help-icon {
  width: 16px;
  height: 16px;
  position: absolute;
  right: 10px;
  bottom: 14px;
  cursor: pointer;
}
.tool-tip {
  display: none;
  position: absolute;
  bottom: 40px;
  right: -7px;
  background-color: rgba(51, 51, 51, 0.9);
  color: #fff;
  width: 210px;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px;
  border-radius: 3px;
  z-index: 5;
  text-align: left;
}
.tool-tip:after {
  content: '';
  position: absolute;
  top: 100%;
  right: 18px;
  width: 0;
  border: 6px solid transparent;
  border-top-color: rgba(51, 51, 51, 0.9);
}
.help-icon:hover + .tool-tip,
.tool-tip.show { display: block; }
.payment-note-error { width: auto; max-width: 800px; }

/* ローディングオーバーレイ */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, .8);
  z-index: 1100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.overlay.open { display: flex; }
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top-color: #dc1616;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* キーボード操作時のフォーカスを見えるようにする */
.btn:focus-visible,
.form-control:focus-visible {
  outline: 2px solid #2e80ff;
  outline-offset: 1px;
}

/* 申請状況確認: 申請ID欄（.status_input_input は .form-control ではないため
   Bootstrapのエラー表示が効かない）。他の項目と同じ赤枠＋✖印にし、
   エラー文は欄の直下に出す（欄の下マージン40pxを打ち消す）。2026-09-08 */
.status_input_input.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc3545' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23dc3545' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
  background-repeat: no-repeat;
  background-position: center right 12px;
  background-size: 18px 18px;
}
.form-error[data-error-for="st_app_code"] { margin: -34px 0 28px 10px; }
@media (max-width: 768px) { .form-error[data-error-for="st_app_code"] { margin-left: 0; } }

/* 申請状況確認の見出し: SPのみ 2.2rem（PCは style.css の 2.8rem のまま）。2026-09-08 釘崎さん指示 */
@media (max-width: 768px) { .status-title { font-size: 2.2rem; } }

/* SPのステップ見出しを h3→h2 に変更（見出し階層の是正, 2026-09-14）。
   旧 h3 に効いていた style.css の .page-nav h3{margin-top:30px} 相当を維持する */
.page-nav h2.sp-ttl { margin-top: 30px; }  /* travel は build.js が head の <style> で 15px に上書き（2026-09-18） */
/* ---------- パスポート画像アップロード欄（2026-09-17 改善版） ----------
   配色は既存フォームのものだけを使う（未入力欄 #ffe8b2 / 注意事項 #fff7ec / 枠線 #ced4da /
   文字 #495057 / 紺 #2c5697 / 必須の赤 #b00020）。装飾的な色は足さない。 */
.pp-upload { margin-top: 4px; }
/* 要件ボックスは注意事項（クリーム色）と区別するため薄いグレー（2026-09-17 釘崎さん指示） */
.pp-upload__req { margin: 0 0 8px; padding: 10px 12px; border-radius: 3px; background: #f1f3f5; color: #212529; }
.pp-upload__req-title { margin: 0 0 4px; font-size: 1.4rem; font-weight: bold; }
.pp-upload__req-list { margin: 0; padding: 0 0 0 1.2em; font-size: 1.3rem; line-height: 1.6; }
.pp-upload__req-list li { margin: 0; }
.pp-upload__req-link { margin: 4px 0 0; font-size: 1.3rem; }
.pp-upload__req-link a { font-size: 1.3rem; }
.pp-upload__req-link a, .pp-upload__help a { color: #2c5697; text-decoration: underline; }
.pp-upload__btnwrap { position: relative; max-width: 480px; }
/* ラベル本体: 疑似要素なし・子要素なし（iOS Chrome 対策）。上の余白に補足文、左に装飾要素を重ねる */
.pp-upload__btn {
  display: block; width: 100%; min-height: 60px; box-sizing: border-box;
  margin: 0; padding: 10px 14px 28px 68px;
  border: 1px solid #ced4da; border-radius: 2.5px;
  background: #ffe8b2; color: #212529; cursor: pointer;
  font-weight: normal; font-size: 1.5rem; line-height: 1.35; text-align: left;
  /* iOS Chrome の選択メニューの並びは、メニューが要素の「上」に出る（要素が画面下寄り）と
     逆順になる UIKit の仕様で、マークアップ・CSSでは変えられない（2026-09-18 実機テスト1〜5で確定） */
}
.pp-upload__btn:hover, .pp-upload__btn:focus-visible, .pp-upload.is-dragover .pp-upload__btn {
  background: #ffe0a0; box-shadow: 0 0 0 2px rgba(44,86,151,.25); outline: none;
}
/* 装飾（アイコン＋補足文）: ラベルに重ねるが、タップはすべてラベルに通す */
.pp-upload__deco { position: absolute; inset: 0; pointer-events: none; }
.pp-upload__deco::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 40px; height: 40px; margin-top: -20px;
  box-sizing: border-box; border: 1px solid #ced4da; border-radius: 2.5px; background-color: #fff;
  background-repeat: no-repeat; background-position: center; background-size: 24px 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/><circle cx='12' cy='13' r='3.5'/></svg>");
}
.pp-upload__deco--photo::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23495057' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='14' rx='1.5'/><circle cx='8.5' cy='10' r='1.6'/><path d='M21 16l-5.2-5.2a1 1 0 0 0-1.4 0L7 18'/></svg>");
}
.pp-upload__deco-sub { position: absolute; left: 68px; right: 14px; bottom: 9px; font-size: 1.25rem; font-weight: normal; line-height: 1.3; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-upload__done { display: flex; gap: 12px; align-items: flex-start; max-width: 480px; margin: 0; padding: 10px 12px; border: 1px solid #ced4da; border-radius: 2.5px; background: #f8f9fa; }
.pp-upload__preview { flex: 0 0 auto; }
.pp-upload #preview_box .thumb { max-width: 124px; max-height: 124px; margin: 0; border: 1px solid #ced4da; border-radius: 2px; background: #fff; }
.pp-upload__meta { flex: 1 1 auto; min-width: 0; }
.pp-upload__ok { margin: 0 0 2px; font-size: 1.5rem; font-weight: bold; color: #212529; display: flex; align-items: center; gap: 6px; } /* チェック画像を文字の上下中央に */
.pp-upload__check { display: block; flex: 0 0 auto; width: 18px; height: 18px; margin: 0; background: none; } /* 進捗バーと同じチェック画像（2026-10-04） */
.pp-upload .attachment .filename { margin-bottom: 4px; word-break: break-all; }
.pp-upload__status { margin: 0 0 4px; font-size: 1.3rem; color: #495057; min-height: 1.3em; }
.pp-upload__status.is-done { color: #2c5697; font-weight: bold; }
.pp-upload__status.is-error { color: #b00020; font-weight: bold; }
.pp-upload__bar { height: 6px; margin: 0 0 6px; border-radius: 3px; background: #e9ecef; overflow: hidden; }
.pp-upload__bar span { display: block; height: 100%; width: 5%; background: #2c5697; transition: width .2s; }
.pp-upload__recheck { margin: 0 0 6px; font-size: 1.25rem; color: #6c757d; }
.pp-upload__change, .pp-upload__retry {
  display: inline-block; margin: 0 8px 0 0; padding: 7px 12px; min-height: 36px;
  border: 1px solid #ced4da; border-radius: 2.5px; background: #fff; color: #495057;
  font-size: 1.3rem; font-weight: bold; cursor: pointer;
}
.pp-upload__change:hover, .pp-upload__retry:hover { background: #f1f3f5; }
.pp-upload__retry { color: #b00020; border-color: #b00020; margin-bottom: 6px; }
.pp-upload__done.is-error { border-color: #b00020; background: #fff; }
.pp-upload__done.is-error .pp-upload__check { opacity: .35; }
.pp-upload__error { margin-top: 4px; }
@media (max-width: 768px) {
  .pp-upload__btn { max-width: none; min-height: 64px; }
  .pp-upload__done { max-width: none; }
  .pp-upload__change, .pp-upload__retry { display: block; width: 100%; margin: 4px 0 0; }
}
/* SP: カメラ／写真・ファイルの2ボタン */
.pp-upload__btns { display: flex; flex-direction: column; gap: 8px; }
.pp-upload__btns .pp-upload__btn { min-height: 58px; }
/* 2ボタンの間は白（全体の .not-entered の黄色背景を打ち消す） */
.pp-upload__btns.not-entered { background: transparent; }
/* サムネイルの拡大 */
.pp-upload__zoom { display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; text-align: center; }
.pp-upload__zoom-hint { display: block; margin-top: 3px; font-size: 1.1rem; color: #6c757d; }
.pp-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.95); display: flex; flex-direction: column; }
.pp-lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 8px 12px; border: 1px solid #fff; border-radius: 2.5px; background: rgba(0,0,0,.5); color: #fff; font-size: 1.4rem; font-weight: bold; cursor: pointer; }
.pp-lightbox__scroll { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: center; justify-content: center; padding: 48px 8px 8px; }
.pp-lightbox__scroll img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; }
body.pp-lightbox-open { overflow: hidden; }
/* 滞在先の注意事項ボックス（travel、要件ボックスと同じ見た目） */
.field-note { margin: 0 0 8px; }
/* travel SP: 入国・出国予定日の1行表示 */
.form-date--onerow span { margin-right: 8px; }
/* travel: パスポート欄の導入文・滞在先の入力例リンク・モーダル内の区画 */
.pp-upload__intro { margin: 8px 0 0; font-size: 1.3rem; line-height: 1.6; color: #555; }
body[data-platform="sp"] .pp-upload__intro { padding-left: 1.4em; text-indent: -1.4em; } /* SP: ※ のぶら下げ（2026-10-01） */
.note-mark { display: inline-block; width: 1.4em; text-indent: 0; } /* ※ を固定幅にして2行目以降の左端を本文に揃える */
.pp-upload__intro a { font-size: 1.3rem; }
.pp-upload__intro a, .field-link a { color: #2c5697; text-decoration: underline; }
.field-link { margin: -4px 0 8px; font-size: 1.3rem; }
.guide-box { margin: 12px 0; padding: 10px 12px; border-radius: 3px; background: #f1f3f5; }
.guide-box--good { background: #eef5ee; }
.guide-box--bad { background: #f8eeee; }
.guide-box__title { margin: 0 0 4px; font-weight: bold; }
.guide-box p { margin-bottom: 6px; }
/* travel 1ページ目の中見出し（パスポート情報・連絡先情報）はページ見出しと同じく中央配置 */
.form-header--center, body[data-platform="sp"] h3.form-header.form-header--center { justify-content: center; text-align: center; font-size: 1.9rem; }
/* 見本モーダル冒頭の注意（注意事項と同じ薄いオレンジ） */
.modal-note { padding: 10px 12px; border-radius: 3px; background: #fff7ec; }
/* 滞在先の入力例モーダルは 1.2rem */
/* 滞在先の入力例モーダル: 本文1.4rem、見出し1.5rem、見出し・導入文の下margin 10px */
.modal-sentences--stay, .modal-sentences--stay p { font-size: 1.4rem; }
.modal-sentences--stay .modal-stay__title { font-size: 1.5rem; font-weight: bold; margin: 0 0 10px; }
.modal-sentences--stay .modal-stay__lead { margin: 0 0 10px; }
/* 「滞在先の入力例を見る」を「必須」の右に */
label.label-inline { display: inline-block; margin-right: 10px; }
.field-link--inline { display: inline-block; font-size: 1.4rem; vertical-align: baseline; color: #2c5697; text-decoration: underline; }
/* MRZ 読み取りの案内 */
.pp-upload__ocr { margin: 0 0 6px; font-size: 1.3rem; color: #495057; }
.pp-upload__ocr.is-busy { color: #6c757d; }
.pp-upload__ocr.is-done { color: #2c5697; font-weight: bold; }
/* travel: 次へボタン 1.6rem（従来は SP で 1.4rem） */
body[data-platform="sp"] .form-submit #step1_submit_btn { font-size: 1.6rem; }
/* travel: 「パスポートに姓の記載がない」1.4rem */
.name-unknown-check .form-check-label { font-size: 1.4rem; }
/* travel: 見本・滞在先モーダルは横幅を広く */
body[data-platform="sp"] #modal-01 .modal-window, body[data-platform="sp"] #modal-stay .modal-window { width: 92%; max-width: none; }
/* travel: 「パスポートに姓の記載がない」を必須マークの右に */
.name-label-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.name-label-row label.label-inline { margin: 0; }
.name-unknown-check--inline { display: inline-flex; align-items: center; gap: 4px; padding-left: 0; margin: 0; }
.name-unknown-check--inline .form-check-input { position: static; margin: 0; }
.name-unknown-check--inline .form-check-label { font-size: 1.4rem; margin: 0; }
/* 注意文の2行目を「※ 」の後ろに揃える（ぶら下げ） */
.note-hanging, .form-note p.note-hanging, body[data-platform="sp"] .form-note p.note-hanging { padding-left: 1.4em; text-indent: -1.4em; font-size: 1.3rem; line-height: 1.7; }

/* ※ 注記の2行目以降を本文の左端にそろえる（flex 方式。2026-10-04 釘崎さん指摘） */
.note-flex, .form-note p.note-flex, body[data-platform="sp"] .form-note p.note-flex, body[data-platform="sp"] .pp-upload__intro.note-flex { display: flex; align-items: flex-start; gap: .35em; padding-left: 0; text-indent: 0; }
.note-flex .note-mark { flex: 0 0 auto; width: auto; text-indent: 0; font-size: inherit; line-height: inherit; }
.note-flex .note-body { flex: 1 1 auto; min-width: 0; font-size: inherit; line-height: inherit; } /* span の既定サイズ（1.6rem）を打ち消し、p と同じ大きさにする */

/* 確認画面からの修正時（travel SP）: ボタン1つを中央に */
body[data-platform="sp"] .form-submit .form-group--edit-return { display: flex; justify-content: center; }
body[data-platform="sp"] .form-submit .form-group--edit-return [hidden] { display: none !important; }

/* 2026-10-16 釘崎さん指示（SP の見出し階層）: 見出しは 1.6rem の黒太字で統一、※注記はグレーで「※」を薄く、プレースホルダーもグレー */
body[data-platform="sp"] .form-group > label:not(.status-input-title),
body[data-platform="sp"] form label:not(.form-check-label):not(.custom-control-label):not(.btn):not(.pp-upload__btn):not([for="agreement"]):not(.status-input-title),
body[data-platform="sp"] form legend { font-size: 1.6rem !important; font-weight: 700; color: #000; }
body[data-platform="sp"] small.asterisk { display: block; color: #6b7280; font-size: 1.3rem; line-height: 1.5; }
body[data-platform="sp"] small.asterisk::before { content: "※"; color: #9aa3ad; margin-right: .3em; }
body[data-platform="sp"] .form-control::placeholder { color: #9aa3ad; opacity: 1; }
/* 2026-10-16 追加指示: 「姓 / Surname」「名 / Given name」の英語部分も同じ太字・サイズに。「パスポートに姓の記載がない」はグレー。プルダウンの未選択表示はグレーにしない */
body[data-platform="sp"] form label:not(.status-input-title) > span:not(.label-required) { font-size: 1.6rem !important; font-weight: 700 !important; color: #000; }
body[data-platform="sp"] .name-unknown-check .form-check-label { color: #6b7280; }
/* 2026-10-16 追加指示: 写真アップロードのボタン風ラベルと「同意する」のチェックラベルは太字にしない */
body[data-platform="sp"] label.pp-upload__btn { font-weight: 400 !important; }
body[data-platform="sp"] label[for="agreement"] { font-weight: 400 !important; font-size: 1.6rem !important; color: #000; }

/* 2026-10-16 釘崎さん指示: SP の「Incentive Travel」注意ポップアップを申請フォームらしい落ち着いたデザインに（白カード・ネイビーの帯と「!」・注記はグレー枠・ネイビーの全幅 OK ボタン） */
body[data-platform="sp"] #modal-incentive-travel .modal-window { width: 90%; max-width: 420px; padding: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
body[data-platform="sp"] #modal-incentive-travel .modal-window::before { content: ""; display: block; height: 6px; background: #152e54; }
body[data-platform="sp"] #modal-incentive-travel .modal-sentences { padding: 22px 20px 20px; height: auto; text-align: left; }
body[data-platform="sp"] #modal-incentive-travel .modal-h4 { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; }
body[data-platform="sp"] #modal-incentive-travel .modal-h4 img { display: none; }
body[data-platform="sp"] #modal-incentive-travel .modal-h4::before { display: none; }
body[data-platform="sp"] #modal-incentive-travel .modal-h4 { border-bottom: 0 !important; padding-bottom: 0; }
body[data-platform="sp"] #modal-incentive-travel .modal-header { margin: 0 !important; font-size: 1.5rem; font-weight: 700; color: #152e54; line-height: 1.6; text-align: left; }
body[data-platform="sp"] #modal-incentive-travel .modal-text { margin: 0 0 18px; padding: 12px 14px; background: #f5f6f8; border-radius: 6px; font-size: 1.3rem; line-height: 1.6; color: #4b5563; text-align: left; }
body[data-platform="sp"] #modal-incentive-travel .modal-btn-box { margin: 0; text-align: center; }
body[data-platform="sp"] #modal-incentive-travel .modal-btn-box .btn { display: block; width: 100%; background-color: #dc003b !important; border-color: #dc003b !important; color: #fff; font-size: 1.6rem !important; font-weight: 700 !important; padding: 12px !important; border-radius: 6px; }
body[data-platform="sp"] #modal-incentive-travel .modal-close { color: #9aa3ad; font-size: 2.4rem; top: 10px; right: 12px; }

/* 送信ボタンの「見た目だけ無効」（2026-10-27）。disabled にしないので押せば案内が出る */
.btn[data-submit].is-blocked { opacity: .65; }
