/* 下層ページ（body.page-sub） */

body.page-sub #wrapper {
  position: static;
}

body.page-sub header {
  position: relative;
  background: var(--brand-blue);
}

body.page-sub header h1,
body.page-sub header h1 a,
body.page-sub header ul li a {
  color: #fff;
}

body.page-sub header h1 a {
  text-decoration: none;
}

body.page-sub .page_content {
  min-height: 1px;
}

/* 売買の流れ（flow.html） */
.flow_page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.flow_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.flow_section--buyer {
  margin-top: 56px;
  padding-top: 56px;
}

.flow_section_title {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 600;
  text-align: center;
}

.flow_steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow_step {
  position: relative;
  padding-left: 56px;
  padding-bottom: 28px;
}

.flow_step:last-child {
  padding-bottom: 0;
}

.flow_step::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 19px;
  bottom: 0;
  width: 2px;
  background: rgba(36, 55, 122, 0.2);
}

.flow_step:last-child::before {
  display: none;
}

.flow_step_title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: var(--brand-blue);
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 600;
  line-height: 1.5;
}

.flow_step_num {
  flex-shrink: 0;
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  margin-left: -56px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.flow_step_body {
  margin: 0;
  padding-left: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.flow_step_body p {
  margin: 0 0 0.5em;
}

.flow_step_body p:last-child {
  margin-bottom: 0;
}

.flow_note {
  margin-top: 0.75em;
  color: var(--brand-blue);
  font-weight: 600;
}

.flow_note--action {
  padding: 10px 14px;
  border-left: 3px solid var(--brand-blue);
  background: rgba(36, 33, 121, 0.06);
}

.flow_marker {
  font-weight: 600;
}

/* ご売却理由（reason.html） */
.reason_page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.reason_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.reason_section + .reason_section {
  margin-top: 48px;
}

.reason_section_title {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.5;
}

.reason_list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.reason_list li {
  position: relative;
  margin-bottom: 0.65em;
  padding-left: 1.25em;
}

.reason_list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--brand-blue);
  font-weight: 600;
}

.reason_list li:last-child {
  margin-bottom: 0;
}

/* 不動産Q&A（qa.html） */
.qa_page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
  background: #f8f8fc;
}

.qa_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.qa_section + .qa_section {
  margin-top: 48px;
}

.qa_section_title {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.5;
}

.qa_item {
  margin-bottom: 20px;
  padding: 24px 24px 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(36, 33, 121, 0.08);
}

.qa_item:last-child {
  margin-bottom: 0;
}

.qa_row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 12px 16px;
  align-items: start;
}

.qa_row--a {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(36, 33, 121, 0.2);
}

.qa_label {
  margin: 0;
  display: grid;
  place-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.qa_row--q .qa_label {
  background: var(--brand-blue);
  color: #fff;
}

.qa_row--a .qa_label {
  border: 2px solid var(--brand-blue);
  background: #fff;
  color: var(--brand-blue);
}

.qa_question {
  margin: 0.35rem 0 0;
  color: var(--brand-blue);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  line-height: 1.65;
}

.qa_answer {
  margin-top: 0.35rem;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.85;
}

.qa_answer p {
  margin: 0 0 0.75em;
}

.qa_answer p:last-child {
  margin-bottom: 0;
}

.qa_answer_list {
  margin: 0 0 0.75em;
  padding-left: 1.5em;
}

.qa_answer_list li {
  margin-bottom: 0.35em;
}

.qa_answer_list li:last-child {
  margin-bottom: 0;
}

.qa_note {
  margin-top: 0.75em;
  color: var(--brand-blue);
  font-weight: 600;
}

.visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 会社概要（company.html） */
.company_page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.company_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.company_dl {
  display: grid;
  grid-template-columns: minmax(6.5em, 10em) 1fr;
  gap: 20px 28px;
  margin: 0;
}

.company_dl dt {
  margin: 0;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
}

.company_dl dd {
  margin: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.company_dl dd a {
  color: var(--text-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company_dl dd a:hover {
  color: var(--brand-blue);
}

.company_inline_list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.company_inline_list li {
  margin-bottom: 0.35em;
}

.company_inline_list li:last-child {
  margin-bottom: 0;
}

.company_partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.company_partners li {
  flex: 0 1 auto;
}

.company_history {
  margin-top: 48px;
}

.company_section_title {
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.5;
}

.company_timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.company_timeline_item {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px 24px;
  padding-bottom: 24px;
}

.company_timeline_item:last-child {
  padding-bottom: 0;
}

.company_timeline_date {
  color: var(--brand-blue);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 600;
  line-height: 1.6;
}

.company_timeline_text {
  margin: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.company_timeline_text p {
  margin: 0 0 0.5em;
}

.company_timeline_text p:last-child {
  margin-bottom: 0;
}

/* お問い合わせフォーム（purchase.html / sale.html） */
.contact_page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.contact_page .page_title {
  margin-bottom: 32px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.contact_intro {
  margin-bottom: 24px;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.85;
}

.contact_intro p {
  margin: 0 0 1em;
}

.contact_intro p:last-child {
  margin-bottom: 0;
}

.contact_intro_note {
  font-weight: 600;
  color: var(--brand-blue);
}

.contact_lead {
  margin: 0 0 16px;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
  text-align: center;
}

.form_section {
  margin: 0 0 40px;
  padding: 0;
  border: none;
}

.form_section_title {
  display: block;
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 600;
  line-height: 1.5;
}

.form_fieldset {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form_row--nested {
  margin-bottom: 0;
}

.form_sublabel {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.form_inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.form_inline_text {
  font-size: 15px;
  line-height: 1.5;
}

.form_input--short {
  width: 7em;
  max-width: 100%;
}

.form_input--zip {
  max-width: 12em;
}

.form_radio_group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.form_radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.form_radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.form_loan_group {
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 4px;
  background: rgba(36, 33, 121, 0.04);
}

.form_loan_group .form_row:last-child {
  margin-bottom: 0;
}

.form_select--short {
  width: auto;
  min-width: 10em;
  max-width: 100%;
}

/* 採用情報（recruit.html） */
.recruit_page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.recruit_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.recruit_section {
  margin-bottom: 48px;
}

.recruit_section_title {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(18px, 1.5vw, 26px);
  font-weight: 600;
  line-height: 1.5;
}

.recruit_job_title {
  margin: 0 0 16px;
  color: var(--brand-blue);
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 600;
  line-height: 1.5;
}

.recruit_highlight {
  margin: 0 0 12px;
  color: var(--brand-blue);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 600;
  line-height: 1.6;
}

.recruit_job p {
  margin: 0 0 20px;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.85;
}

.recruit_dl {
  display: grid;
  grid-template-columns: minmax(6em, 9em) 1fr;
  gap: 12px 24px;
  margin: 0;
}

.recruit_dl dt {
  margin: 0;
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.recruit_dl dd {
  margin: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.recruit_dl dd a {
  color: var(--text-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.recruit_dl dd a:hover {
  color: var(--brand-blue);
}

.recruit_company_name {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.recruit_form_section .form_notice {
  margin-bottom: 24px;
}

.form_row--privacy {
  margin-top: 8px;
}

.form_checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
}

.form_checkbox input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--brand-blue);
}

.form_checkbox a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* お知らせ記事（news/*.html）— flow_page と同じ体裁 */
.news_page {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.news_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.news_section_title {
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.news_date {
  display: block;
  margin: 0 0 28px;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
  text-align: center;
}

.news_body {
  margin: 0;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.8;
}

.news_body p {
  margin: 0 0 0.5em;
}

.news_body p:last-child {
  margin-bottom: 0;
}

.news_back {
  margin: 48px 0 0;
  text-align: center;
  font-size: clamp(14px, 1vw, 16px);
}

.news_back a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.news_back a:hover {
  opacity: 0.75;
}

/* プライバシーポリシー（privacy.html） */
.privacy_page {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  color: var(--text-blue);
}

.privacy_page .page_title {
  margin-bottom: 48px;
  color: var(--brand-blue);
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 600;
  text-align: center;
}

.privacy_section {
  margin-bottom: 40px;
}

.privacy_section:last-child {
  margin-bottom: 0;
}

.privacy_section_title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-blue);
  color: var(--brand-blue);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 600;
  line-height: 1.5;
}

.privacy_body p {
  margin: 0 0 1em;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.9;
}

.privacy_body p:last-child {
  margin-bottom: 0;
}

.privacy_note {
  margin-top: 1.25em;
  font-weight: 600;
}

.form_notice {
  margin: 0 0 32px;
  padding: 12px 16px;
  border-left: 3px solid var(--brand-blue);
  background: rgba(36, 33, 121, 0.06);
  font-size: 14px;
  line-height: 1.6;
}

.contact_form {
  margin: 0;
}

.form_row {
  margin-bottom: 24px;
}

.form_label {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.form_required {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
}

.form_input,
.form_select,
.form_textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(36, 33, 121, 0.25);
  border-radius: 4px;
  background: #fff;
  color: var(--text-blue);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.form_input:focus,
.form_select:focus,
.form_textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(36, 33, 121, 0.15);
}

.form_textarea {
  resize: vertical;
  min-height: 160px;
}

.form_select {
  cursor: pointer;
}

.form_actions {
  margin-top: 32px;
  text-align: center;
}

.form_submit {
  min-width: 240px;
  padding: 14px 40px;
  border: none;
  border-radius: 4px;
  background: var(--brand-blue);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.form_submit:hover {
  opacity: 0.88;
}

.contact_tel {
  margin: 40px 0 0;
  font-size: 15px;
  text-align: center;
  line-height: 1.6;
}

.contact_tel a {
  color: var(--brand-blue);
  font-weight: 600;
  text-decoration: none;
}

.contact_tel a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body.page-sub .nav-toggle span {
    background: #fff;
  }

  body.page-sub header nav.is-open ul li a {
    color: var(--brand-blue);
  }

  .flow_page {
    padding: 32px 16px 56px;
  }

  .flow_page .page_title {
    margin-bottom: 32px;
  }

  .flow_section_title {
    margin-bottom: 24px;
  }

  .flow_step {
    padding-left: 48px;
  }

  .flow_step_num {
    width: 36px;
    height: 36px;
    margin-left: -48px;
    font-size: 16px;
  }

  .flow_step::before {
    left: 17px;
    top: 32px;
  }

  .flow_section--buyer {
    margin-top: 40px;
    padding-top: 40px;
  }

  .reason_page {
    padding: 32px 16px 56px;
  }

  .reason_page .page_title {
    margin-bottom: 32px;
  }

  .reason_section + .reason_section {
    margin-top: 40px;
  }

  .reason_section_title {
    margin-bottom: 20px;
  }

  .qa_page {
    padding: 32px 16px 56px;
  }

  .qa_page .page_title {
    margin-bottom: 32px;
  }

  .qa_section + .qa_section {
    margin-top: 40px;
  }

  .qa_section_title {
    margin-bottom: 24px;
  }

  .qa_item {
    margin-bottom: 16px;
    padding: 20px 16px 16px;
  }

  .qa_row {
    grid-template-columns: 2.5rem 1fr;
    gap: 10px 12px;
  }

  .qa_label {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 13px;
  }

  .qa_row--a {
    margin-top: 14px;
    padding-top: 14px;
  }

  .company_page {
    padding: 32px 16px 56px;
  }

  .company_page .page_title {
    margin-bottom: 32px;
  }

  .company_dl {
    grid-template-columns: 1fr;
    gap: 8px 0;
  }

  .company_dl dt {
    margin-top: 12px;
  }

  .company_dl dt:first-child {
    margin-top: 0;
  }

  .company_history {
    margin-top: 40px;
  }

  .company_section_title {
    margin-bottom: 24px;
  }

  .company_timeline_item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-bottom: 20px;
  }

  .contact_page {
    padding: 32px 16px 56px;
  }

  .contact_page .page_title {
    margin-bottom: 24px;
  }

  .contact_intro {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .form_section {
    margin-bottom: 32px;
  }

  .form_inline {
    gap: 8px;
  }

  .form_input--short,
  .form_input--zip {
    width: 100%;
    max-width: none;
  }

  .recruit_page {
    padding: 32px 16px 56px;
  }

  .recruit_page .page_title {
    margin-bottom: 32px;
  }

  .recruit_section {
    margin-bottom: 40px;
  }

  .recruit_dl {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .recruit_dl dt {
    margin-top: 12px;
  }

  .recruit_dl dt:first-child {
    margin-top: 0;
  }

  .news_page {
    padding: 32px 16px 56px;
  }

  .news_page .page_title {
    margin-bottom: 32px;
  }

  .news_section_title {
    margin-bottom: 24px;
  }

  .news_date {
    margin-bottom: 24px;
  }

  .news_back {
    margin-top: 40px;
  }

  .privacy_page {
    padding: 32px 16px 56px;
  }

  .privacy_page .page_title {
    margin-bottom: 32px;
  }

  .privacy_section {
    margin-bottom: 32px;
  }

  .form_notice {
    margin-bottom: 24px;
    font-size: 13px;
  }

  .form_row {
    margin-bottom: 20px;
  }

  .form_submit {
    width: 100%;
    min-width: 0;
  }
}
