/* ============================================================
   JIA株主優待2026（セレクタは .jia- プレフィックスで統一）
============================================================ */

/* ---- ベースレイアウト ---- */
.jia-auth {
  padding: 0 0 40px;
}

/* ---- ステッパー ---- */
.jia-stepper {
  display: flex;
  align-items: center;
  max-width: 560px;
  margin: 24px auto 28px;
}
.jia-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.jia-stepper__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.jia-stepper__label {
  font-size: 11px;
  color: #999;
  text-align: center;
  white-space: nowrap;
}
html[lang="ja"] .jia-stepper__label {
  line-height: 1.4;
}
.jia-stepper__item--active .jia-stepper__circle {
  background: #002D5D;
}
.jia-stepper__item--active .jia-stepper__label {
  color: #002D5D;
  font-weight: 700;
}
.jia-stepper__item--done .jia-stepper__circle {
  background: #6b8ab5;
}
.jia-stepper__item--done .jia-stepper__label {
  color: #6b8ab5;
}
.jia-stepper__line {
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 6px;
  margin-bottom: 18px;
}

/* ---- カード ---- */
.jia-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 80px;
  margin-bottom: 48px;
}
@media (max-width: 480px) {
  .jia-card {
    padding: 20px 16px;
  }
}
.jia-card--faq {
  padding: 80px;
}
.jia-card--contact {
  text-align: center;
  padding: 80px;
}

/* ---- セクション見出し ---- */
.jia-section-ttl {
  margin: 0 0 16px;
}
.jia-section-desc {
  font-size: 16px;
  color: #444;
  margin: 0 0 20px;
}
html[lang="ja"] .jia-section-desc {
  line-height: 1.75;
}

/* ---- ガイドアコーディオン ---- */
.jia-guide-accordion {
  border-radius: 4px 4px 0 0;
  margin-bottom: 64px;
  overflow: hidden;
}
.jia-guide-accordion__btn {
  position: relative;
  width: 100%;
  border: 1px solid #002D5D;
  background: #002D5D;
  color: #fff;
  border: none;
  border-radius: 0 0 4px 4px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.4;
  font-family: inherit;
}
.jia-guide-accordion__btn:hover {
  background: #243d60;
}
.jia-guide-accordion__btn:focus {
  background: #243d60;
}
.jia-guide-accordion__icon {
  display: block;
  position: absolute;
  content: "";
  right: 20px;
  top: 50%;
  height: 9px;
  width: 9px;
  border-bottom: 1.5px solid #FFF;
  border-right: 1.5px solid #FFF;
  transform: translateY(-50%) rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.jia-guide-accordion__btn.is-open .jia-guide-accordion__icon {
  transform: translateY(-50%) rotate(225deg);
}
.jia-guide-accordion__body {
  border-left: 1px solid #002D5D;
  border-right: 1px solid #002D5D;
  border-bottom: 1px solid #002D5D;
  border-radius: 0 0 4px 4px;
  padding: 40px;
}
.jia-guide-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
@media (max-width: 480px) {
  .jia-guide-content {
    gap: 10px;
  }
}
.jia-guide-item {
  flex: 1;
  min-width: 0;
}
.jia-guide-item__label {
  font-size: 11px;
  color: #666;
  margin: 0 0 6px;
  text-align: center;
  line-height: 1.4;
}
.jia-guide-item__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  background: #f0f0ec;
  border: 1px solid #ddd;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jia-guide-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.jia-guide-item__arrow {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #002D5D;
  z-index: 1;
}

/* ---- フォーム ---- */
.jia-form-wrap {
  max-width: 560px;
  margin: 4px auto 0;
}
.jia-form-label-top {
  font-size: 16px;
  color: #444;
  margin: 0 0 20px;
  line-height: 1.5;
}
.jia-field-group {
  margin-bottom: 20px;
}
.jia-field-row {
  display: flex;
  align-items: stretch;
  border-radius: 3px;
  overflow: hidden;
}
.jia-field-label {
  background: #333333;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  max-width: 200px;
  width: 100%;
  min-width: 100px;
  line-height: 1;
  border-radius: 4px 0 0 4px;
}
.jia-field-input {
  flex: 1;
  padding: 20px 16px;
  font-size: 16px;
  color: #222;
  background: transparent;
  font-family: inherit;
  line-height: 1.4;
  min-width: 0;
}
input[type="text"].jia-field-input {
  border: 1.5px solid #333333;
}
.jia-field-input::placeholder {
  color: #aaa;
  font-size: 13px;
}
.jia-field-group:focus-within .jia-field-input {
  border-color: #0062FE;
  background-color: #EBF3FF;
  outline: none;
}
.jia-field-input.is-error {
  background: #fff5f5;
  color: #c0392b;
}
.jia-field-group.is-error .jia-field-input {
  border-color: #c0392b;
  background: #fff5f5;
}

/* ---- エラーメッセージ ---- */
.jia-field-error {
  font-size: 14px;
  color: #c0392b;
  margin: 8px 0 10px;
  line-height: 1.5;
  min-height: 0;
}
.jia-field-error:empty {
  margin: 0;
}

/* ---- サーバーエラー ---- */
.nsi-errors {
  color: #c0392b;
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0;
}

/* ---- フォーカス時コールアウト ---- */
.jia-callout {
  display: none;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  background: #f7f7f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 4px auto 6px;
  position: relative;
}
.jia-callout::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #f7f7f5;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
}
.jia-callout.is-visible {
  display: flex;
}
.jia-callout__img-wrap {
  width: 168px;
  height: 80px;
  flex-shrink: 0;
  border: 1px solid #ddd;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jia-callout__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.jia-callout__text {
  font-size: 12px;
  color: #444;
  line-height: 1.5;
}

/* ---- ボタン ---- */
.jia-btn {
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s;
  font-family: inherit;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.jia-btn--primary {
  flex-direction: column;
  width: 100%;
  background: #002D5D;
  color: #fff;
  padding: 24px 40px;
  margin-top: 24px;
  border-radius: 8px;
}
.jia-btn--primary:hover,
.jia-btn--primary:focus {
  background: #243d60;
  color: #fff;
}
.jia-btn--primary:active {
  background: #002D5D;
}
.jia-btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.jia-btn--contact {
  background: transparent;
  color: #002D5D;
  border: 1px solid #002D5D;
  padding: 24px 32px;
  font-size: 16px;
  margin: 16px auto 24px;
  border-radius: 3px;
  max-width: 320px;
}
.entry .entry-content a.jia-btn--contact {
  text-decoration: none;
}
.entry .entry-content a.jia-btn--primary {
  text-decoration: none;
  color: #fff;
}
.jia-btn--contact__text {
  position: relative;
}
.jia-btn--contact__text::after {
  position: absolute;
  content: "";
  right: -18px;
  top: 50%;
  height: 10px;
  width: 10px;
  border-top: 1.5px solid #002D5D;
  border-right: 1.5px solid #002D5D;
  transform: translateY(-50%) rotate(45deg);
}
.jia-btn--contact:hover,
.jia-btn--contact:focus {
  background: #002d5d;
  color: #fff;
}
.jia-btn__text {
  display: inline-block;
  position: relative;
}
.jia-btn__text::after {
  position: absolute;
  content: "";
  right: -18px;
  top: 50%;
  height: 12px;
  width: 12px;
  border-top: 1.5px solid #FFF;
  border-right: 1.5px solid #FFF;
  transform: translateY(-50%) rotate(45deg);
}
.jia-btn--contact:hover .jia-btn--contact__text::after {
  border-top: 1.5px solid #FFF;
  border-right: 1.5px solid #FFF;
}
.jia-btn__note {
  font-size: 10px;
}

/* ---- FAQ ---- */
.jia-faq-ttl {
  font-size: 14px;
  font-weight: 700;
  color: #002D5D;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
}
.jia-accordion {
  margin: 0;
}
.jia-accordion__item {
  margin-top: 24px;
}
.jia-accordion__btn {
  position: relative;
  width: 100%;
  background: #f0f0ec;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #444;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.5;
}
.jia-accordion__btn:hover {
  color: #FFF;
  background: #002D5D;
}
button.jia-accordion__btn:focus {
  color: #FFF;
  background: #002D5D;
}
.jia-accordion__text {
  flex: 1;
  margin-right: 32px;
}
html[lang="ja"] .jia-accordion__text {
  line-height: 1.5;
}
.jia-accordion__icon {
  display: block;
  position: absolute;
  content: "";
  right: 20px;
  top: 1.4em;
  height: 9px;
  width: 9px;
  border-bottom: 2px solid #888;
  border-right: 2px solid #888;
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.jia-accordion__btn.is-open .jia-accordion__icon {
  transform: rotate(225deg);
}
.jia-accordion__btn:hover .jia-accordion__icon {
  border-bottom: 2px solid #FFF;
  border-right: 2px solid #FFF;
}
.jia-accordion__body {
  margin: 20px 0 0;
  font-size: 14px;
  color: #444;
}
html[lang="ja"] .jia-accordion__body p {
  line-height: 2;
  margin: 8px 0 0;
}

/* ---- お問い合わせ ---- */
.jia-contact-ttl {
  font-weight: 700;
  color: #002D5D;
  margin: 0 0 16px;
  padding: 0;
  border: none;
  text-align: center;
}
body.page article.type-page .entry-content h2.jia-contact-ttl {
  font-size: 21px;
  padding-left: 0;
  border-left: none;
}
.jia-contact-ttl::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: #002D5D;
  margin: 16px auto 0;
}
.jia-contact-desc {
  font-size: 13px;
  color: #444;
  margin: 0 0 4px;
  text-align: center;
}
html[lang="ja"] .jia-contact-desc span {
  display: block;
  line-height: 2;
}
.jia-contact-note {
  font-size: 11px;
  color: #888;
  margin: 4px 0 0;
  text-align: center;
}
html[lang="ja"] .jia-contact-note {
  line-height: 1.6;
}

/* ============================================================
   JIA 登録画面（Step 2）
============================================================ */

/* ---- フォームラップ ---- */
.jia-reg__form-wrap {
  max-width: 740px;
  margin: 64px auto 0;
}

/* ---- フィールドグループ ---- */
.jia-reg__field-group {
  margin-bottom: 20px;
}

/* ---- フィールド行（ラベル + 入力欄） ---- */
.jia-reg__field-row {
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  overflow: hidden;
  gap: 20px;
}

/* ---- ラベル（ライトグレー背景） ---- */
.jia-reg__field-label {
  background: #e8e8e4;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 120px;
  max-width: 240px;
  width: 100%;
  letter-spacing: 0.04em;
  border-radius: 4px;
}

/* ---- 入力欄 ---- */
.jia-reg__field-input {
  flex: 1;
  font-size: 16px;
  color: #222;
  background: #fff;
  font-family: inherit;
  min-width: 0;
}
input.jia-reg__field-input {
  border: 2px solid #ccc;
  padding: 24px 20px;
  border-radius: 4px;
}
.jia-reg__field-input::placeholder {
  color: #aaa;
  font-size: 16px;
}

/* フォーカス */
.jia-reg__field-group:focus-within .jia-reg__field-label {
  border-color: #0062FE;
}
.jia-reg__field-group:focus-within .jia-reg__field-input {
  border-color: #0062FE;
  background-color: #EBF3FF;
  outline: none;
}

/* エラー */
.jia-reg__field-group.is-error .jia-reg__field-label {
  border-color: #c0392b;
}
.jia-reg__field-group.is-error .jia-reg__field-input {
  border-color: #c0392b;
  background: #fff5f5;
}
.jia-reg__field-input.is-error {
  border-color: #c0392b;
  background: #fff5f5;
}

/* ---- エラーメッセージ ---- */
.jia-reg__field-error {
  display: flex;
  flex-direction: column;
  margin-left: 260px;
  font-size: 14px;
  color: #c0392b;
  margin-top: 6px;
}
html[lang="ja"] .jia-reg__error-text {
  line-height: 1.5;
}
.jia-reg__field-error:empty {
  margin: 0;
}
.jia-reg__error-text {
  display: block;
  flex: 1;
}
.jia-reg__error-login-btn {
  flex-basis: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  max-width: 200px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 24px;
  background: #002D5D;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  transition: background 0.15s;
}
.entry .entry-content a.jia-reg__error-login-btn {
  color: #fff;
  text-decoration: none;
}
.jia-reg__error-login-btn:hover,
.jia-reg__error-login-btn:focus {
  background: #1a3d6b;
  color: #fff;
}
.jia-reg__error-login-text {
  position: relative;
}
.jia-reg__error-login-text::after {
  content: "";
  display: block;
  position: absolute;
  right: -16px;
  top: 50%;
  height: 6px;
  width: 6px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: translateY(-50%) rotate(45deg);
}

/* ---- 登録ボタン ---- */
.jia-reg__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 40px auto 0;
  padding: 24px 40px;
  background: #E07B00;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.jia-reg__btn:hover,
.jia-reg__btn:focus {
  background: #C56E00;
  color: #fff;
}
.jia-reg__btn:active {
  background: #A85E00;
}
html[lang="ja"] .jia-reg__btn {
  line-height: 1.5;
}
.jia-reg__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- 注意事項ボックス ---- */
.jia-reg__notice {
  max-width: 740px;
  margin: 48px auto 0;
  padding: 20px 24px;
  background: #f7f7f5;
  border-left: 3px solid #002D5D;
  border-radius: 0 3px 3px 0;
}
.jia-reg__notice-ttl {
  font-size: 13px;
  font-weight: 700;
  color: #002D5D;
  margin: 0 0 8px;
  line-height: 1.4;
}
.jia-reg__notice-body {
  font-size: 12px;
  color: #555;
  margin: 0;
}
html[lang="ja"] .jia-reg__notice-body {
  line-height: 1.75;
}
.jia-reg__notice-body strong {
  font-weight: 700;
  color: #222;
}

/* ---- FAQ内リンクボタン ---- */
.jia-reg__faq-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  max-width: 200px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 24px;
  background: #002D5D;
  font-size: 14px;
  font-weight: 700;
  border-radius: 20px;
  transition: background 0.15s;
}
.entry .entry-content a.jia-reg__faq-link-btn {
  color: #fff;
  text-decoration: none;
}
.jia-reg__faq-link-btn:hover,
.jia-reg__faq-link-btn:focus {
  background: #1a3d6b;
  color: #fff;
}
.jia-reg__faq-link-text {
  position: relative;
}
.jia-reg__faq-link-text::after {
  content: "";
  display: block;
  position: absolute;
  right: -16px;
  top: 50%;
  height: 6px;
  width: 6px;
  border-top: 1px solid #FFF;
  border-right: 1px solid #FFF;
  transform: translateY(-50%) rotate(45deg);
}

/* ============================================================
   JIA レスポンシブ
============================================================ */

/* ---- タブレット（〜768px） ---- */
@media (max-width: 768px) {

  .jia-stepper {
    padding: 0 16px;
  }
  .jia-card {
    padding: 40px 40px 48px;
    margin-bottom: 32px;
  }
  .jia-card--faq {
    padding: 40px 40px 48px;
  }
  .jia-card--contact {
    padding: 40px;
  }
  .jia-guide-accordion {
    margin-bottom: 40px;
  }
  .jia-guide-accordion__body {
    padding: 24px;
  }
  .jia-form-wrap {
    max-width: 100%;
  }
  .jia-btn--contact {
    font-size: 14px;
  }
  .jia-stepper__label {
    font-size: 10px;
  }

  /* Step 2 */
  .jia-reg__field-row {
    flex-direction: column;
    gap: 8px;
  }
  .jia-reg__field-label {
    font-size: 16px;
    padding: 12px 16px;
    max-width: 100%;
    width: 100%;
    white-space: normal;
  }
  .jia-reg__field-error {
    margin-left: 0;
  }
}

/* ---- スマートフォン（〜480px） ---- */
@media (max-width: 480px) {

  .jia-stepper {
    margin: 16px auto 20px;
  }
  .jia-stepper__label {
    font-size: 10px;
    white-space: normal;
    max-width: 80px;
    text-align: center;
  }
  .jia-stepper__line {
    margin: 0 4px;
    margin-bottom: 20px;
  }

  .jia-card {
    padding: 24px 8px 32px;
    margin-bottom: 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
  .jia-card--faq {
    padding: 24px 8px 32px;
  }
  .jia-card--contact {
    padding: 32px 8px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .jia-section-desc {
    font-size: 14px;
  }

  .jia-guide-accordion {
    margin-bottom: 32px;
  }
  .jia-guide-accordion__btn {
    font-size: 14px;
    padding: 14px 16px;
  }
  .jia-guide-accordion__body {
    padding: 16px;
  }
  .jia-guide-content {
    flex-direction: column;
    gap: 24px;
  }
  .jia-guide-item {
    width: 100%;
  }
  .jia-guide-item__label {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .jia-guide-item__arrow {
    top: auto;
    right: auto;
    left: auto;
    bottom: -24px;
    border-bottom: none;
    border-top: 12px solid #002D5D;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
  }

  .jia-form-label-top {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .jia-field-group {
    margin-bottom: 12px;
  }
  .jia-field-row {
    flex-direction: column;
  }
  .jia-field-label {
    font-size: 16px;
    font-weight: 700;
    padding: 10px 12px;
    max-width: 100%;
    letter-spacing: 0.04em;
    justify-content: flex-start;
    border-radius: 4px 4px 0 0;
  }
  .jia-field-input {
    font-size: 16px;
    border-radius: 0 0 4px 4px;
  }
  input[type="text"].jia-field-input {
    padding: 12px 16px;
  }

  .jia-callout {
    flex-direction: column;
    max-width: 100%;
  }
  .jia-callout__text {
    font-size: 12px;
  }

  .jia-btn {
    max-width: 100%;
  }
  .jia-btn--primary {
    margin-top: 16px;
  }
  .jia-btn--contact {
    width: 100%;
    margin: 12px auto 16px;
  }

  .jia-faq-ttl {
    font-size: 13px;
  }
  .jia-accordion__btn {
    font-size: 14px;
    padding: 14px 16px;
  }
  .jia-accordion__text {
    margin-right: 28px;
    font-size: 14px;
  }
  .jia-accordion__body {
    font-size: 13px;
  }
  .jia-accordion__icon {
    right: 14px;
    height: 8px;
    width: 8px;
  }

  .jia-contact-desc {
    text-align: left;
  }
  html[lang="ja"] .jia-contact-desc span {
    display: inline;
  }
  body.page article.type-page .entry-content h2.jia-contact-ttl {
    font-size: 18px;
  }

  /* Step 2 SP */
  .jia-reg__form-wrap {
    margin: 32px auto 0;
  }
  .jia-reg__field-group:focus-within .jia-reg__field-label {
    border-color: #0062FE;
    border-bottom-color: #ccc;
  }
  .jia-reg__field-group.is-error .jia-reg__field-label {
    border-color: #c0392b;
    border-bottom-color: #ccc;
  }
  .jia-reg__field-input {
    border-radius: 0 0 4px 4px;
    padding: 14px 14px;
  }
  .jia-reg__btn {
    max-width: 100%;
    margin-top: 16px;
  }
  .jia-reg__notice {
    margin-top: 24px;
    padding: 16px;
  }
}
