/* ========================================
   QLife Landing Page Styles - 治験LP 被験者募集 2501
   Contact Form 7対応版
   ======================================== */

/* CSS Variables */
:root {
  --card-width: 330px;
  --card-gap: 20px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: #0e2249;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.sp-only {
  display: none;
}

/* ========================================
   Header
   ======================================== */
.header {
  background: #fff;
  padding: 16px 80px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
}

.logo img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-list {
  display: flex;
  gap: 48px;
}

.nav-list a {
  font-size: 16px;
  color: #0e2249;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: #ff8e0c;
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ff8e0c;
  color: #fff;
  padding: 12px 36px;
  border-radius: 100px;
  box-shadow: 0 8px 0 0 #ae7636;
  font-weight: 800;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0 0 #ae7636;
}

.btn-cta:active {
  transform: translateY(8px);
  box-shadow: none;
}

.btn-icon, .btn-arrow {
  display: flex;
  align-items: center;
}

.btn-cta-large {
  padding: 12px 36px;
  font-size: 20px;
}

.header-cta {
  position: relative;
  top: -4px;
}

/* ========================================
   First View (FV)
   ======================================== */
.fv {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff5e9 0%, #ffe8d0 100%);
}

.fv-bg {
  position: absolute;
  inset: 0;
  background: url('../img/lp_recruit_2501/fv_bg.webp') center/cover no-repeat;
}

.fv-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 80px 86px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.fv-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.fv-catch {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  color: #0e2249;
  line-height: 1.5;
}

.fv-catch-line1 {
  font-size: 36px;
  letter-spacing: 1.44px;
}

.fv-catch-line2 {
  font-size: 54px;
  text-align: left;
  width: 400px;
}

.fv-catch-line2 span {
  letter-spacing: 4.32px;
}

.fv-logo img {
  width: 363px;
  height: auto;
}

.fv-authority {
  position: absolute;
  bottom: 86px;
  left: max(80px, calc((100% - 1440px) / 2 + 80px));
  display: flex;
  gap: 29px;
  align-items: center;
}

.fv-authority img {
  height: 82px;
  width: auto;
}

.fv-image {
  position: absolute;
  right: 80px;
  top: 72px;
  width: 528px;
}

@media (min-width: 1441px) {
  .fv-image {
    right: calc((100% - 1440px) / 2 + 80px);
  }
}


/* ========================================
   CTA Section
   ======================================== */
.cta-section {
  background: #fff5e9;
  padding: 80px 0 60px;
}

.cta-inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.cta-lead {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 16px;
}

/* ========================================
   Section Title
   ======================================== */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  color: #0e2249;
  text-align: center;
}

.section-title .num {
  font-size: 42px;
  font-weight: 700;
}

.title-capsule {
  width: 32px;
  height: 32px;
}

.title-capsule.rotated {
  transform: rotate(90deg);
}

/* ========================================
   About Section
   ======================================== */
.about-section {
  background: #fff5e9;
  padding: 80px 0 80px;
}

.about-content {
  text-align: center;
}

.about-lead {
  font-size: 28px;
  font-weight: 500;
  color: #ff8e0c;
  line-height: 1.8;
  margin-bottom: 48px;
}

.about-desc {
  font-size: 16px;
  color: #0e2249;
}

.about-desc .bold {
  font-weight: 500;
}

/* ========================================
   Worries Section
   ======================================== */
.worries-section {
  background: #fffefc;
  padding: 80px 0;
}

.worries-content {
  display: flex;
  justify-content: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.worries-card {
  width: 368px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.worries-image {
  height: 198px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.worries-image img {
  max-height: 100%;
  width: auto;
}

.worries-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff8e0c;
  text-align: center;
}

.worries-list {
  width: fit-content;
}

.worries-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.check-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8e0c' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.worries-list span:last-child {
  font-size: 16px;
  font-weight: 500;
  color: #0e2249;
}

/* ========================================
   Reasons Section
   ======================================== */
.reasons-section {
  background: #fff5e9;
  padding: 80px 0 0;
}

.reasons-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.reason-card {
  background: #fffefc;
  border: 1.74px solid #0e2249;
  border-radius: 10px;
  padding: 0 31px 32px 42px;
  display: flex;
  align-items: center;
  min-height: 310px;
}

.reason-card:nth-child(3) .reason-image {
  padding-top: 28px;
}

.reason-card:nth-child(3) .reason-image img {
  width: 200px;
}

.reason-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 580px;
}

.reason-header {
  display: flex;
  align-items: center;
  gap: 21px;
}

.reason-num {
  font-family: 'DIN 2014 Narrow', sans-serif;
  font-size: 72px;
  font-weight: 600;
  color: #ff8e0c;
}

.reason-divider {
  width: 1.74px;
  height: 37px;
  background: #ff8e0c;
}

.reason-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reason-title {
  font-size: 24px;
  font-weight: 800;
  color: #ff8e0c;
}

.reason-subtitle {
  font-size: 17px;
  font-weight: 500;
  color: #0e2249;
}

.reason-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reason-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reason-list span:last-child {
  font-size: 14px;
  font-weight: 500;
  color: #0e2249;
}

.reason-list strong {
  font-weight: 800;
}

.reason-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
}

.reason-image img {
  max-width: 347px;
  max-height: 244px;
}

/* ========================================
   Cases Section
   ======================================== */
.cases-section {
  background: #fff;
  padding: 80px 0 40px;
  overflow: hidden;
}

.cases-title-wrap {
  text-align: center;
}

.cases-subtitle {
  font-size: 20px;
  font-weight: 500;
  color: #0e2249;
}

.cases-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 0 auto;
}

.carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.cases-cards {
  display: flex;
  gap: var(--card-gap);
  transform: translateX(0); /* デフォルトで3つ目（真ん中）を表示 */
  transition: transform 0.3s ease;
}

.case-card {
  flex-shrink: 0;
  width: var(--card-width);
  display: flex;
  flex-direction: column;
}

.case-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 55px;
  margin-bottom: 8px;
  padding: 0 10px;
}

.case-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.case-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-company {
  font-size: 14px;
  color: #000;
}

.case-type {
  font-size: 14px;
  padding: 0 5px;
}

.case-type.type-red {
  background: #ffe5e5;
  color: #d30000;
}

.case-type.type-blue {
  background: #e9edff;
  color: #08009f;
}

.case-body {
  background: #fff5e9;
  border: 1.28px solid #0e2249;
  border-radius: 0 16px 16px 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 212px;
}

.case-result {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.case-badge {
  padding: 2px 8px;
  border-radius: 13px;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}

.badge-result {
  background: #ff8e0c;
}

.badge-issue {
  background: #646464;
}

.badge-action {
  background: #e16b5d;
}

.case-result-text {
  font-size: 19px;
  font-weight: 700;
  color: #ff8e0c;
  line-height: 1.3;
}

.case-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  min-height: 42px;
}

.case-item p {
  font-size: 12.87px;
  color: #333;
  line-height: 1.4;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 24px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #0e2249;
}

/* ========================================
   Flow Section
   ======================================== */
.flow-section {
  background: #fffefc;
  padding: 80px 0 0;
}

.flow-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 62px;
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -23px;
  z-index: 1;
}

.step-label {
  font-family: 'DIN 2014 Narrow', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #ff8e0c;
}

.step-num {
  width: 46px;
  height: 46px;
  background: #ff8e0c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DIN 2014 Narrow', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fffefc;
}

.step-card {
  width: 232px;
  border: 1.55px solid #0e2249;
  border-radius: 9px;
  overflow: hidden;
}

.step-icon {
  height: 128px;
  background: #fff5e9;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.step-icon-1 {
  background: #fff5e9 url("../img/lp_recruit_2501/image_flow01.webp") center 30px/50% no-repeat;
}

.step-icon-2 {
  background: #fff5e9 url("../img/lp_recruit_2501/image_flow02.webp") center 30px/50% no-repeat;
}

.step-icon-3 {
  background: #fff5e9 url("../img/lp_recruit_2501/image_flow03.webp") center 30px/50% no-repeat;
}

.step-icon-4 {
  background: #fff5e9 url("../img/lp_recruit_2501/image_flow04.webp") center 30px/35% no-repeat;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  color: #ff8e0c;
  text-align: center;
  padding: 12px 0 4px;
}

.step-desc {
  font-size: 14px;
  font-weight: 500;
  color: #0e2249;
  text-align: center;
  padding-bottom: 12px;
}

.flow-arrow {
  width: 24px;
  height: 42px;
  background: url("../img/lp_recruit_2501/flow-arrow.webp") center/contain no-repeat;
  align-self: center;
}

.flow-operator {
  display: flex;
  align-items: center;
  gap: 19px;
}

.operator-image img {
  width: 120px;
  height: auto;
}

.operator-bubble {
  background: #fff5e9;
  padding: 6px 19px;
  border-radius: 0 19px 19px 19px;
}

.operator-bubble p {
  font-size: 18px;
  font-weight: 500;
  color: #0e2249;
}

.operator-bubble strong {
  font-size: 24px;
  font-weight: 800;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: #fff5e9;
  padding: 80px 0 120px;
}

.contact-form-wrapper {
  max-width: 784px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.privacy-box,
.ic_for_personal_data {
  background: #fffefc;
  border: 1px solid #ff8e0c;
  border-radius: 8px;
  padding: 10px 16px;
  max-height: 210px;
  overflow-y: auto;
}

.privacy-text,
.ic_for_personal_data {
  font-size: 14px;
  line-height: 1.75;
  color: #0e2249;
}

.privacy-text ol,
.ic_for_personal_data ol {
  padding-left: 20px;
  list-style: decimal;
}

.privacy-text li,
.ic_for_personal_data li {
  margin-bottom: 8px;
}

.privacy-text a,
.ic_for_personal_data a {
  color: #0e2249;
  text-decoration: underline;
}

/* Contact Form 7のフォームテンプレート用スタイル */
.ic_title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 8px;
}

.ic_corporate {
  text-align: center;
  margin-bottom: 16px;
}

/* ========================================
   Contact Form スタイル（PR #165と同じ）
   ======================================== */
.contact-form,
.wpcf7-form {
  max-width: 784px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.form-label {
  width: 212px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.form-label label {
  font-size: 16px;
  color: #0e2249;
}

.required {
  background: #e75341;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  flex: 1;
  width: 548px;
  padding: 12px 16px;
  border: 1px solid #0e2249;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #6f6f6f;
}

.form-row select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2249' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center/24px no-repeat;
}

.privacy-check {
  display: flex;
  justify-content: center;
  padding: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #0e2249;
}

.checkbox-label input {
  width: 36px;
  height: 36px;
  accent-color: #ff8e0c;
}

.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #ff8e0c;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 100px;
  box-shadow: 0 8px 0 0 #ae7636;
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0 0 #ae7636;
}

.btn-submit:active {
  transform: translateY(8px);
  box-shadow: none;
}

/* ========================================
   Contact Form 7 追加スタイル
   ======================================== */
.wpcf7 {
  width: 100%;
}

/* Contact Form 7は自動的に<p>タグを追加するため、
   これらの<p>タグをレイアウトから除外する */
.wpcf7-form .form-row > p {
  display: contents;
}

.wpcf7-form .form-label > p {
  display: contents;
}

/* Contact Form 7のラッパー要素のスタイル */
/* CF7は<input>を<span class="wpcf7-form-control-wrap">でラップするため、
   このラッパーにflexboxのスタイルを適用する必要がある */
.wpcf7-form .form-row .wpcf7-form-control-wrap {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
}

/* CF7が生成する<input>要素のスタイル */
.wpcf7-form .form-row .wpcf7-form-control-wrap input,
.wpcf7-form .form-row .wpcf7-form-control-wrap select,
.wpcf7-form .form-row .wpcf7-form-control-wrap textarea {
  flex: 1;
  width: 100%;
  max-width: 548px;
}

/* チェックボックス（個人情報同意）を中央揃え */
.wpcf7-form .privacy-check {
  display: flex;
  justify-content: center;
  padding: 10px;
}

/* Contact Form 7は.privacy-check内にも<p>タグを追加するため、
   これをレイアウトから除外する */
.wpcf7-form .privacy-check > p {
  display: contents;
}

.wpcf7-form .privacy-check .wpcf7-form-control-wrap {
  flex: none;
  width: auto;
}

.wpcf7-form .wpcf7-acceptance {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 16px;
  color: #0e2249;
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 36px;
  height: 36px;
  accent-color: #ff8e0c;
}

/* チェックボックスとテキストの垂直方向の位置を揃える */
.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-list-item-label {
  font-size: 16px;
  color: #0e2249;
  line-height: 1;
}

/* 送信ボタンのスタイル（紙飛行機アイコン付き・PR #165と同じ） */
.wpcf7-form .wpcf7-submit {
  display: block;
  background-color: #ff8e0c;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26.25 3.75L13.125 16.875' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M26.25 3.75L18.125 26.25L13.125 16.875L3.75 11.875L26.25 3.75Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 36px) center;
  background-size: 30px 30px;
  color: #fff;
  border: none;
  padding: 12px 90px 12px 36px;
  border-radius: 100px;
  box-shadow: 0 8px 0 0 #ae7636;
  font-size: 20px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  margin: 0 auto;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wpcf7-form .wpcf7-submit:hover {
  transform: translateY(4px);
  box-shadow: 0 4px 0 0 #ae7636;
}

.wpcf7-form .wpcf7-submit:active {
  transform: translateY(8px);
  box-shadow: none;
}

/* 送信ボタンのラッパーを中央揃え（:has()セレクタ対応ブラウザ用） */
.wpcf7-form p:has(.wpcf7-submit) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

/* 送信ボタンのラッパーを中央揃え（フォールバック） */
.wpcf7-form > p:last-of-type {
  text-align: center;
}

/* スピナーを送信ボタンの右側に絶対位置で配置（中央揃えに影響しないように） */
.wpcf7-form p:has(.wpcf7-submit) .wpcf7-spinner {
  position: absolute;
  right: calc(50% - 130px);
  margin: 0;
}

/* バリデーションエラーメッセージ */
.wpcf7-not-valid-tip {
  display: block;
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
  width: 100%;
}

/* 送信ボタン押下前はエラーメッセージを非表示にする */
.wpcf7-form.hide-errors .wpcf7-not-valid-tip:not(.privacy-error-message) {
  display: none !important;
}

.wpcf7-form.hide-errors .wpcf7-not-valid {
  background-color: transparent !important;
}

.wpcf7-form.hide-errors .wpcf7-response-output {
  display: none !important;
}

/* スクリーンリーダー用エラーメッセージも非表示にする（送信ボタン押下前） */
.wpcf7.js .screen-reader-response ul {
  display: none !important;
}

.wpcf7.js.submitted .screen-reader-response ul {
  display: block !important;
}

/* チェックボックス用エラーメッセージ（.privacy-checkの直下に表示） */
.privacy-error-message {
  display: block;
  color: #dc2626;
  font-size: 14px;
  margin-top: 8px;
  margin-bottom: 16px;
  text-align: center;
}

/* エラー時のフォーム背景を赤くする */
.wpcf7-not-valid {
  background-color: #FFE4E1 !important;
}

/* 送信完了/エラーメッセージ */
.wpcf7-response-output {
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.wpcf7-form.sent .wpcf7-response-output {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* スピナー（送信中） */
.wpcf7-spinner {
  margin: 0 auto;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #ff8e0c;
  padding: 80px 0 60px;
  text-align: center;
  color: #fff;
}

.footer-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 36px;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 106px;
  margin-bottom: 36px;
}

.footer-info {
  text-align: left;
}

.footer-info p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.footer-info .company-name {
  margin-bottom: 13px;
}

.footer-info .label {
  display: inline-block;
  width: 48px;
  margin-right: 13px;
}

.footer-badge img {
  width: 110px;
  height: auto;
}

.copyright {
  font-size: 16px;
  font-weight: 500;
}

/* ========================================
   Hamburger Menu & Mobile Menu
   ======================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #0e2249;
  border-radius: 1px;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  background: #fff;
  z-index: 201;
  padding: 20px 20px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: top 0.3s ease;
}

.mobile-menu.active {
  top: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 24px 48px;
  font-size: 16px;
  color: #0e2249;
  border-bottom: 1px solid #bdbdbd;
  text-align: center;
}

.mobile-nav-link:first-child {
  border-top: 1px solid #bdbdbd;
}

.mobile-cta {
  margin-top: 24px;
  padding: 12px 26px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
  .fv-image {
    width: 400px;
    right: 50px;
  }

  .header{
    padding: 20px 36px;
  }
}

@media (max-width: 1016px) {
  .flow-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    gap: 24px;
  }
  
  .flow-arrow {
    display: none;
  }
}

@media (max-width: 1035px) {
  .reason-card {
    flex-direction: column;
    padding: 20px 36px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .reason-text {
    min-width: auto;
  }
  
  .reason-image {
    padding-top: 20px;
  }
}

@media (max-width: 910px) {
  .nav-list {
    gap: 24px;
  }
}

@media (max-width: 868px) {
  .fv-logo img {
    width: 300px;
  }

  .fv-content{
    gap: 140px;
  }

  .fv-text{
    line-height: 52px;
    gap:38px
  }

  .fv-catch-line1 {
    font-size: 30px;
  }

  .fv-catch-line2 {
    font-size: 47px;
  }

  .fv-image {
    right: 30px;
  }

  .nav-list {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 20px 20px;
  }
  
  .logo img {
    height: 34px;
  }

  .cta-section {
    padding: 32px 0;
  }
  
  .fv {
    min-height: auto;
    height: 800px;
  }
  
  .fv-content {
    text-align: center;
    padding: 32px 20px 36px;
    gap: 60px;
  }

  .about-content,
  .worries-content,
  .reasons-content,
  .flow-content,
  .contact-form,
  .wpcf7-form {
    padding-left: 16px;
    padding-right: 16px;
  }

  .worries-content {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }
  
  .fv-catch-line1 {
    font-size: 24px;
  }
  
  .fv-catch-line2 {
    font-size: 36px;
    width: auto;
    text-align: center;
  }

  .fv-logo{
    margin: 0 auto;
  }
  
  .fv-logo img {
    width: 250px;
  }
  
  .fv-image {
    position: relative;
    right: auto;
    top: auto;
    width: 290px;
    height: 270px;
    max-width: none;
    margin: 0 auto;
  }
  
  .fv {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .fv-authority {
    position: relative;
    bottom: auto;
    left: auto;
    flex-wrap: wrap;
    justify-content: center;
    background: #fff5e9;
    padding: 24px 16px;
    gap: 16px;
  }
  
  .fv-authority img {
    height: 60px;
  }
  
  .section-title {
    gap: 12px;
  }
  
  .section-title h2 {
    font-size: 24px;
    line-height: 1.4;
  }
  
  .about-lead {
    font-size: 20px;
    text-align: left;
    padding-left: 0.1em;
  }
  
  .about-lead br,
  .about-desc br {
    display: none;
  }
  
  .about-desc {
    text-align: left;
    padding-left: 0.1em;
  }
  
  .reasons-section {
    overflow: hidden;
  }
  
  .reason-card {
    flex-direction: column;
    padding: 20px 16px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
  }
  
  .reason-header {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  
  .reason-num {
    font-size: 40px;
  }
  
  .reason-divider {
    display: none;
  }
  
  .reason-title-wrap {
    text-align: center;
  }
  
  .reason-title {
    font-size: 18px;
  }
  
  .sp-only {
    display: block;
  }
  
  .reason-subtitle {
    font-size: 14px;
  }
  
  .reason-text {
    max-width: 100%;
    overflow: hidden;
    gap: 20px;
  }
  
  .reason-list {
    width: 100%;
  }
  
  .reason-list li {
    align-items: flex-start;
  }
  
  .reason-list span:last-child {
    font-size: 14px;
    word-break: break-word;
  }
  
  .reason-card:nth-child(2) .reason-image {
    padding-left: 16px;
  }
  
  .reason-image {
    padding-top: 20px;
  }
  
  .reason-image img {
    max-width: 300px;
  }
  
  .operator-bubble {
    padding: 6px 12px;
  }
  
  .operator-bubble p {
    font-size: 16px;
  }
  
  .operator-bubble strong {
    font-size: 20px;
  }
  
  .cases-carousel {
    padding: 0 20px;
  }
  
  /* Contact Form レスポンシブ（PR #165と同じ） */
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .form-label {
    width: 100%;
  }
  
  .form-row input,
  .form-row select,
  .form-row textarea {
    width: 100%;
  }

  .wpcf7-form .form-row .wpcf7-form-control-wrap {
    width: 100%;
  }
  
  .wpcf7-form .form-row .wpcf7-form-control-wrap input,
  .wpcf7-form .form-row .wpcf7-form-control-wrap select,
  .wpcf7-form .form-row .wpcf7-form-control-wrap textarea {
    max-width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 36px;
  }
  
  .footer-info {
    text-align: center;
  }
  
  .flow-operator {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .btn-cta-large {
    padding: 12px 16px;
  }
}

@media (max-width: 400px) {
  .fv-authority img {
    height: 55px;
  }
  
  .fv-authority {
    gap: 10px;
  }
  
  .fv-catch-line1 {
    font-size: 20px;
  }
  
  .fv-catch-line2 {
    font-size: 32px;
  }
  
  .operator-bubble p {
    font-size: 14px;
  }
  
  .worries-card {
    width: 100%;
    max-width: 368px;
  }
}

/* 1730px以上：5カード全て表示時はカルーセルナビを非表示 */
@media (min-width: 1730px) {
  .cases-cards {
    transform: translateX(0) !important;
  }
  
  .carousel-nav,
  .carousel-dots {
    display: none !important;
  }
}

/* ========================================
   フッターリンク（会社概要セクション内）
   ======================================== */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 70px;
  margin: 24px 0 16px;
  list-style: none;
  padding: 0;
}

.footer-link-item a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-link-item a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
