/* ============================================
   Okano Law Office - L-step Form Custom CSS
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* ============================================
   1. Base / Reset
   ============================================ */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #333;
  background-color: #f0f0f0;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 600px) {
  body {
    font-size: 16px;
  }
}

/* ============================================
   2. Container / Form Box
   - PC横幅を広げる (max-width: 1000px)
   - 縦線（3層）をなくし、フォームと背景の2層にする
   ============================================ */
.container {
  max-width: 900px; /* PC横幅 */
  padding-left: 0;
  padding-right: 0;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

/* Remove top spacing above form */
.container > .row {
  margin-top: 0;
  padding-top: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

.fieldsets {
  margin: 0;
  padding: 0;
}

.registration-form {
  margin: 0;
  padding: 0;
}

.form-box {
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 0;
  background: #fff;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.col-sm-10,
.col-sm-offset-1,
.col-md-10,
.col-md-offset-1,
.col-lg-8,
.col-lg-offset-2 {
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

/* ============================================
   3. Header (.form-top)
   - ロゴ画像を表示するための設定
   - デフォルトのタイトル・説明文・アイコンは非表示
   ============================================ */
.form-top {
  background-color: #fff;
  background-position: 15px center;
  background-size: auto 60%;
  background-repeat: no-repeat;
  width: 100%;
  height: 55px;
  padding: 8px 15px;
  margin: 0;
  border-bottom: none;
  position: relative;
}


/* Hide default title and description (logo image contains this info) */
.form-top-left {
  display: none;
}

/* Hide header icon */
.form-top-right {
  display: none;
}

@media (min-width: 768px) {
  .form-top {
    height: 70px;
    padding: 10px 20px;
    background-size: auto 60%;
  }
  .form-top::after {
    font-size: 1.2em;
    padding: 14px 30px;
  }
}

/* ============================================
   4. Section Headings
   ============================================ */

/* -- Medium heading (h4) -- */
h4.description-md-title {
  background: #1a2039;
  color: #ffffff;
  padding: 0.75em 1em;
  margin: 1.5em 0 1em;
  font-weight: 700;
  font-size: 1em;
  border-top: 2px solid #1a2039;
  border-bottom: 2px solid #1a2039;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
}

/* -- Small heading (h5) -- */
h5.description-title {
  color: #1a2039;
  font-weight: 700;
  font-size: 0.95em;
  padding: 0.5em 0;
  margin: 1em 0 0.5em;
  border-bottom: 1px solid #1a2039;
  box-shadow: none;
  background: transparent;
}

/* Column padding reset for headings */
.col-sm-4, .col-sm-8, .col-sm-12 {
  padding-left: 15px;
  padding-right: 15px;
}

/* ============================================
   5. Form Groups / Labels
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.control-label {
  font-weight: 400;
  color: #333;
  font-size: 0.95em;
  padding-top: 10px;
}

/* ============================================
   6. Required / Optional Badges
   ============================================ */

/* -- Required badge (override Bootstrap .label-danger) -- */
.label.label-danger {
  background-color: #FFA500;
  color: #FFF;
  font-weight: bold;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 3px;
  letter-spacing: 2px;
}

/* -- Optional badge (if present) -- */
.label.label-default {
  background-color: #999;
  color: #FFF;
  font-weight: bold;
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 3px;
  letter-spacing: 2px;
}

/* ============================================
   7. Input Fields (underline style)
   ============================================ */
input.form-control,
textarea.form-control {
  border: none;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  background: #f7f7f7;
  box-shadow: none;
  padding: 8px 4px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
  color: #333;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

input.form-control:focus,
textarea.form-control:focus {
  border-bottom-color: #0067c0;
  background: #fff;
  box-shadow: none;
  outline: none;
}

/* Select dropdowns keep a subtle border */
select.form-control {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1em;
  color: #333;
}

select.form-control:focus {
  border-color: #0067c0;
  box-shadow: none;
  outline: none;
}

/* Placeholder color */
input.form-control::placeholder,
textarea.form-control::placeholder {
  color: #aaa;
}

/* ============================================
   8. Radio Buttons & Checkboxes
   ============================================ */
.radios,
.checkboxes {
  padding-top: 5px;
}

.radio label,
.checkbox label {
  font-weight: 400;
  color: #333;
  padding-left: 25px;
  cursor: pointer;
  line-height: 1.8;
}

.radio input[type="radio"],
.checkbox input[type="checkbox"] {
  margin-top: 6px;
}

/* ============================================
   9. Help Text
   ============================================ */
.help-block {
  color: #888;
  font-size: 0.85em;
  margin-top: 4px;
}

/* ============================================
   10. Submit / Next Button (.btn-primary)
   ============================================ */
.btn-primary,
.btn-primary.btn-lg,
.btn-primary.btn-block,
#submit-button {
  background-color: #0067c0;
  border: 1px solid #0067c0;
  color: #FFF;
  font-weight: bold;
  font-size: 1.1em;
  letter-spacing: 0.2em;
  border-radius: 8px;
  padding: 12px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open > .btn-primary.dropdown-toggle,
#submit-button:hover,
#submit-button:focus,
#submit-button:active {
  background-color: #FFF;
  color: #0067c0;
  border: 1px solid #0067c0;
}

/* Remove Bootstrap active/focus shadow */
.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn:active:focus,
.btn:focus {
  outline: none;
  box-shadow: none;
}

/* ============================================
   11. Back Button (.btn-default)
   ============================================ */
.btn-default,
.btn-default.btn-lg,
#back-button {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  color: #333;
  font-weight: 400;
  font-size: 1em;
  border-radius: 4px;
  padding: 12px 20px;
  transition: background-color 0.3s ease;
}

.btn-default:hover,
.btn-default:focus,
#back-button:hover,
#back-button:focus {
  background-color: #e8e8e8;
  border-color: #bbb;
  color: #333;
}

/* ============================================
   12. Button Row Layout Fix
   - PC2ページ目の「戻る」と「次へ」が被らないようにする
   ============================================ */
.form-bottom > .form-editor > .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-bottom > .form-editor > .row > .col-xs-4 {
  flex: 0 0 auto;
  width: auto;
  min-width: 100px;
  padding: 0 5px;
}

.form-bottom > .form-editor > .row > .col-xs-12 {
  flex: 1;
  width: auto;
  padding: 0 5px;
}

@media (max-width: 767px) {
  .form-bottom > .form-editor > .row {
    flex-direction: column;
  }
  .form-bottom > .form-editor > .row > .col-xs-4,
  .form-bottom > .form-editor > .row > .col-xs-12 {
    width: 100%;
    padding: 0;
  }
  .form-bottom > .form-editor > .row > .col-xs-4 {
    order: 2;
    margin-top: 10px;
  }
  .form-bottom > .form-editor > .row > .col-xs-12 {
    order: 1;
  }
}

/* ============================================
   13. Thank You / Finish Page
   ============================================ */
.form-finish {
  text-align: center;
  padding: 40px 20px;
}

.form-finish b {
  color: #1a2039;
  font-size: 1.3em;
  display: block;
  margin-bottom: 20px;
}

.form-finish p {
  color: #555;
  font-size: 1em;
  line-height: 1.8;
  text-align: left;
}

/* ============================================
   14. Form Body
   ============================================ */
.form-bottom {
  padding: 20px 30px 30px;
  padding-top: 70px;
  background: #fff;
  position: relative;
}

/* Navy bar: between logo and form content */
.form-bottom::before {
  content: "\3010\7121\6599\76F8\8AC7\306E\3054\4E88\7D04\3011\7533\3057\8FBC\307F\30D5\30A9\30FC\30E0";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #1a2039;
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  padding: 12px 20px;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
  box-shadow: 0 -1px 0 0 #1a2039, 0 1px 0 0 #1a2039;
  z-index: 1;
}

/* ============================================
   15. PC Layout (768px+)
   ============================================ */
@media (min-width: 768px) {
  .form-bottom {
    padding: 30px 50px 40px;
    padding-top: 75px;
  }

  .form-bottom::before {
    font-size: 1.2em;
    padding: 14px 30px;
  }

  /* Fix: Label column wider to prevent text wrapping */
  .col-sm-4 {
    width: 38%;
  }
  .col-sm-8 {
    width: 62%;
  }
}

/* ============================================
   16. Utility / Misc
   ============================================ */

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Link color */
a {
  color: #0067c0;
}

a:hover {
  color: #004d8f;
  text-decoration: underline;
}

/* Validation error state */
.has-error .form-control {
  border-bottom-color: #d9534f;
}

.has-error .help-block,
.has-error .control-label {
  color: #d9534f;
}

/* Clearfix for button row */
.clearfix {
  clear: both;
}