@charset "UTF-8";

/* =========================================================================
   Job Page Common
   ========================================================================= */
:root {
  --job-bg-base: #f4f8fb;
  --job-accent: #f55b14;
  --job-navy: #132e4b;
  --job-text: #333;
  --job-border: #e0e0e0;
}

body {
  background-color: var(--job-bg-base);
  /* 上品なドットパターン */
  background-image: radial-gradient(#dbe4ed 1px, transparent 1px),
    radial-gradient(#dbe4ed 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: var(--job-text);
  font-family: "Noto Sans JP", sans-serif;
}

.inner-1200 {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================================
   Job Header (MV) - Rich Navy Style
   ========================================================================= */
.job-header {
  position: relative;
  padding: 80px 0 100px;
  background-color: var(--job-navy);
  color: white;
  overflow: hidden;
  /* ドットパターン（白・透過） */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

/* 背景装飾（幾何学シェイプ） */
.job-header::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -50px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.job-header::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.job-header-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.job-header-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: white;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.job-header-sub {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* =========================================================================
   Breadcrumbs (パンくずリスト)
   ========================================================================= */
.breadcrumbs-wrap {
  background-color: #fff;
  border-bottom: 1px solid #eaeaea;
  width: 100%;
}

.breadcrumbs {
  padding: 15px 0;
  font-size: 0.8rem;
  color: #888;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  line-height: 1.3;
  margin: 0;
}

.breadcrumbs li:not(:last-child)::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 8px;
  font-size: 0.6rem;
  color: #ccc;
}

.breadcrumbs a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--job-accent);
  text-decoration: underline;
}

.breadcrumbs li:last-child span {
  color: var(--job-navy);
  font-weight: 700;
}

/* =========================================================================
   Job List Page (Archive)
   ========================================================================= */
.job-list-section {
  padding: 60px 0 100px;
}

/* 検索条件表示 */
.search-condition-display {
  background: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: #555;
  border: 1px solid #eaeaea;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  line-height: 1.8;
}

.search-condition-display i {
  color: var(--job-accent);
  margin-right: 8px;
}

.search-condition-display strong {
  color: var(--job-navy);
  font-weight: 700;
  background: #f0f4f8;
  padding: 2px 8px;
  border-radius: 4px;
  margin: 0 4px;
  display: inline-block;
}

/* List Grid */
.job-list-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Job Card Design */
.job-list-card {
  display: flex;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.job-list-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(19, 46, 75, 0.1);
  border-color: rgba(245, 91, 20, 0.3);
}

.job-list-thumb {
  width: 300px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.job-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.job-list-card:hover .job-list-thumb img {
  transform: scale(1.08);
}

.job-list-body {
  padding: 25px 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.job-list-meta-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.job-cat-badge,
.job-emp-badge {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1;
}

.job-cat-badge {
  background-color: var(--job-navy);
  color: #fff;
}

.job-emp-badge {
  background-color: #fff;
  color: var(--job-navy);
  border: 1px solid var(--job-navy);
}

.job-location {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  display: flex;
  align-items: center;
  margin-left: auto; /* 右寄せ */
}

.job-location i {
  color: var(--job-accent);
  margin-right: 5px;
}

.job-list-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--job-navy);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* 一覧用テーブル */
.job-list-table {
  width: 100%;
  margin-bottom: 15px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.job-list-table th {
  text-align: left;
  padding: 4px 0;
  font-size: 0.8rem;
  color: #888;
  font-weight: 700;
  width: 40px;
  vertical-align: top;
}

.job-list-table td {
  padding: 4px 0 4px 15px;
  font-size: 0.9rem;
  color: #444;
  vertical-align: top;
  line-height: 1.6;
}

.salary-highlight {
  color: var(--job-accent);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: "Roboto", sans-serif;
}

.job-list-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #eee;
}

.job-tag-item {
  font-size: 0.75rem;
  color: #666;
  background: #f8f9fa;
  padding: 3px 10px;
  border-radius: 30px;
  border: 1px solid #eee;
}

.job-list-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  background: #fcfcfc;
  border-left: 1px solid #eee;
  color: #ddd;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.job-list-card:hover .job-list-arrow {
  background: var(--job-accent);
  color: #fff;
}

/* Pagination */
.pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: white;
  border: 1px solid #ddd;
  text-decoration: none;
  color: var(--job-navy);
  font-weight: 700;
  font-family: "Roboto", sans-serif;
  transition: all 0.3s;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--job-navy);
  color: white;
  border-color: var(--job-navy);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(19, 46, 75, 0.2);
}

/* =========================================================================
   Job Detail Page (Single)
   ========================================================================= */

/* Single Header */
.single-job-header {
  background-color: var(--job-navy);
  color: white;
  padding: 40px 0 60px;
  position: relative;
  /* ドットパターン */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
}

/* ヘッダー内パンくず (白文字) */
.single-job-header .breadcrumbs {
  padding: 0 0 20px;
  color: rgba(255, 255, 255, 0.6);
}
.single-job-header .breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
}
.single-job-header .breadcrumbs a:hover {
  color: white;
  text-decoration: underline;
}
.single-job-header .breadcrumbs li:last-child span {
  color: white;
}
.single-job-header .breadcrumbs li:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.4);
}

.single-header-card {
  position: relative;
  z-index: 2;
}

.single-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.single-job-meta .job-cat-badge {
  background-color: white;
  color: var(--job-navy);
}

.single-job-meta .job-emp-badge {
  background-color: transparent;
  color: white;
  border-color: white;
}

.single-job-meta .job-location {
  color: white;
  margin-left: 0;
}
.single-job-meta .job-location i {
  color: var(--job-accent);
}

.single-job-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 25px;
}

.job-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 0.8rem;
  padding: 5px 15px;
  border-radius: 50px;
}

/* Container */
.single-container {
  padding: 60px 0 100px;
}

.job-detail-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.job-main-column {
  flex: 1;
  min-width: 0;
}

.job-side-column {
  width: 320px;
  position: sticky;
  top: 100px;
}

/* -------------------------------------------------------------------------
   GSAP Custom Slider
   ------------------------------------------------------------------------- */
.gsap-job-slider {
  width: 100%;
  margin-bottom: 50px;
}

.slider-main-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-color: #eee;
  border-radius: 12px;
  margin-bottom: 10px;
}

.slide-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: #eee;
}

.slide-item.active {
  display: flex;
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Thumbnails */
.slider-thumb-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px;
}

.thumb-item {
  width: calc(20% - 8px);
  aspect-ratio: 16 / 9;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  background: #eee;
  opacity: 0.6;
  transition: all 0.3s;
  flex-shrink: 0;
}

.thumb-item:hover,
.thumb-item.active {
  opacity: 1;
  border-color: var(--job-accent);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Detail Content Styling
   ------------------------------------------------------------------------- */
.detail-section {
  margin-bottom: 60px;
}

/* 見出しスタイル */
.detail-heading {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--job-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid #eef2f6;
}

.detail-heading i {
  color: var(--job-accent);
  font-size: 1.2rem;
}

/* ★Intro Group Box (会社概要 & メッセージをまとめる枠) */
.intro-group-box {
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.intro-block .text-content {
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
  white-space: normal;
}

/* 区切り線 */
.intro-divider {
  border: none;
  border-top: 1px dashed #ddd;
  margin: 40px 0;
}

/* Message & Overview Box (単体使用時や下部用) */
.business-message,
.company-overview-box {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
  line-height: 1.8;
  color: #444;
  font-size: 1rem;
}

.business-message .text-content,
.company-overview-box {
  white-space: normal;
}

/* Data Table */
.job-data-dl {
  background: white;
  border-top: 1px solid #e0e0e0;
}

.job-data-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}

.job-data-dt {
  width: 25%;
  background-color: #fafafa;
  padding: 20px 25px;
  font-weight: 700;
  color: var(--job-navy);
  display: flex;
  align-items: flex-start;
  font-size: 0.95rem;
}

.job-data-dd {
  width: 75%;
  padding: 20px 25px;
  color: #333;
  line-height: 1.8;
  font-size: 1rem;
  background-color: #fff;
}

/* Elements in Table */
.salary-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: #333;
  font-family: "Roboto", sans-serif;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.salary-badge {
  background: var(--job-accent);
  color: white;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 4px;
}

.note-text {
  font-size: 0.9rem;
  color: #666;
  background: #f8f8f8;
  padding: 10px;
  border-radius: 6px;
  display: block;
}

.station-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #555;
  margin-top: 10px;
}

/* -------------------------------------------------------------------------
   Sticky Sidebar & CTA
   ------------------------------------------------------------------------- */
.sticky-cta-box {
  background: white;
  border: 1px solid #eee;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.cta-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--job-navy);
}

.entry-btn-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--job-accent);
  color: white;
  font-weight: 700;
  padding: 16px;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(245, 91, 20, 0.3);
}

.entry-btn-side:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(245, 91, 20, 0.4);
  background: #ff6f30;
  color: white;
}

/* Bottom CTA Area */
.entry-cta-area {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  margin-top: 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.entry-lead {
  margin-bottom: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--job-navy);
}

.entry-btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--job-accent);
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 60px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(245, 91, 20, 0.3);
  transition: all 0.3s;
}

.entry-btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(245, 91, 20, 0.4);
  background-color: #ff6f30;
  color: #fff;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  /* Header */
  .job-header {
    padding: 60px 0;
  }
  .single-job-header {
    padding: 40px 0 60px;
  }

  /* List */
  .job-list-card {
    flex-direction: column;
  }
  .job-list-thumb {
    width: 100%;
    aspect-ratio: 16/9;
  }
  .job-list-arrow {
    display: none;
  }
  .job-list-body {
    padding: 25px 20px;
  } /* 左右パディングを少し狭く */
  .job-location {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
  } /* 勤務地を改行 */

  /* Search Condition Display */
  .search-condition-display {
    padding: 20px;
    font-size: 0.9rem;
  }

  /* Single Meta (スマホで縦並び) */
  .single-job-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Detail Layout */
  .job-detail-layout {
    flex-direction: column;
  }
  .job-side-column {
    display: none;
  }
  .job-main-column {
    width: 100%;
  }

  /* Table */
  .job-data-row {
    flex-direction: column;
  }
  .job-data-dt {
    width: 100%;
    padding: 15px 20px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
  }
  .job-data-dd {
    width: 100%;
    padding: 20px;
  }

  /* Buttons */
  .entry-btn-lg {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
  }
}
/* =========================================================================
   Entry Modal & Form Styles (Final Optimized)
   ========================================================================= */

/* --- Modal Container --- */
.entry-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.entry-modal-wrap.is-open {
  opacity: 1;
  visibility: visible;
}

.entry-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 46, 75, 0.85);
  backdrop-filter: blur(5px);
}

.entry-modal-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.entry-modal-wrap.is-open .entry-modal-container {
  transform: translateY(0);
}

/* --- Header --- */
.entry-modal-header {
  background: var(--color-navy, #132e4b);
  color: #fff;
  padding: 20px 30px;
  text-align: center;
  flex-shrink: 0;
}

.entry-modal-title {
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.entry-modal-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 5px;
}

/* Close Button */
.entry-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.entry-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.entry-modal-close .close-bar {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
}
.entry-modal-close .close-bar:last-child {
  transform: rotate(-45deg);
}

/* --- Body Scroll --- */
.entry-modal-body {
  padding: 30px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f8f8f8;
  flex-grow: 1;
}

/* --- Form Layout --- */
.cf7-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 25px;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* ラベル調整 */
.form-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px; /* ★隙間を少し広げました */
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color-navy, #132e4b);
  font-size: 1rem;
}

/* 必須マーク */
.req {
  background: transparent;
  color: var(--color-orange, #f55b14);
  border: 1px solid var(--color-orange, #f55b14);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 50px;
  font-weight: 500;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* --- Inputs --- */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fdfdfd;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-input input:focus,
.form-input textarea:focus {
  border-color: var(--color-orange, #f55b14);
  background: #fff;
  outline: none;
  box-shadow: 0 4px 12px rgba(245, 91, 20, 0.15);
}
.form-input textarea {
  resize: vertical;
}

/* Readonly Field */
.readonly-input {
  background-color: #f0f4f8 !important;
  color: #555;
  border: none !important;
  font-weight: 700;
  pointer-events: none;
  box-shadow: none !important;
}

/* --- Radio Buttons (Smaller) --- */
.wpcf7-radio {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wpcf7-list-item {
  margin: 0 !important;
}
.wpcf7-list-item label {
  display: block;
  cursor: pointer;
  padding: 0;
}
.wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ★性別ボタンを小さく調整 */
.wpcf7-list-item .wpcf7-list-item-label {
  display: block;
  padding: 8px 16px; /* パディング縮小 */
  min-width: 60px; /* 幅縮小 */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50px;
  color: #666;
  font-size: 0.9rem; /* フォントも少し小さく */
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: center;
}

.wpcf7-list-item input[type="radio"]:checked + .wpcf7-list-item-label {
  background: var(--color-orange, #f55b14);
  color: #fff;
  border-color: var(--color-orange, #f55b14);
  box-shadow: 0 4px 10px rgba(245, 91, 20, 0.3);
  font-weight: 700;
}
.wpcf7-list-item:hover .wpcf7-list-item-label {
  border-color: var(--color-orange, #f55b14);
  color: var(--color-orange, #f55b14);
}
.wpcf7-list-item input[type="radio"]:checked:hover + .wpcf7-list-item-label {
  color: #fff;
}

/* --- Submit Button & Spinner --- */
.submit-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  padding: 0 20px;
}

.entry-submit-btn {
  min-width: 280px;
  padding: 18px 40px;
  background: var(--color-orange, #f55b14);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(245, 91, 20, 0.3);
}
.entry-submit-btn:hover {
  background: #ff6f30;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 91, 20, 0.4);
}
.entry-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner absolute positioning */
.wpcf7-spinner {
  position: absolute !important;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 !important;
}
.wpcf7-response-output {
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 20px 0 !important;
  text-align: center;
}

/* --- Note Area --- */
.cf7-contact-note {
  font-size: 0.85rem;
  color: #666;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  border: 1px dashed #ccc;
}
.note-title {
  color: var(--color-orange);
  font-weight: bold;
  margin-bottom: 5px;
}
.note-info {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-row .label {
  background: #eee;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 3px;
  font-weight: bold;
}

/* --- Success Animation --- */
.entry-success-area {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.stamp-animation-container {
  width: 200px;
  height: 200px;
  position: relative;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: stamp-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  opacity: 0;
  transform: scale(2);
}

@keyframes stamp-bounce {
  0% {
    opacity: 0;
    transform: scale(3);
  }
  60% {
    opacity: 1;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.stamp-circle {
  position: absolute;
  inset: 0;
  border: 5px solid var(--color-orange, #f55b14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 8px var(--color-orange, #f55b14);
  opacity: 0.8;
  mask-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='0.5' filter='url(%23noise)'/%3E%3C/svg%3E");
  mask-mode: alpha;
}

.stamp-text {
  color: var(--color-orange, #f55b14);
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-10deg);
  border: 3px solid var(--color-orange, #f55b14);
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--color-orange);
}

.success-message {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-navy, #132e4b);
  line-height: 1.6;
  opacity: 0;
  animation: fade-in-up 0.5s ease 0.6s forwards;
  transform: translateY(20px);
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-close-modal-final {
  margin-top: 30px;
  background: #ccc;
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  opacity: 0;
  animation: fade-in-up 0.5s ease 0.8s forwards;
}
.btn-close-modal-final:hover {
  background: #999;
}

/* SP Responsive */
@media (max-width: 768px) {
  .entry-modal-container {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }
  .entry-modal-header {
    text-align: left;
    padding-right: 60px;
  }
  .form-row {
    padding: 15px;
  }
}

/* =========================================================================
   Job Entry Form (独自デザイン: je-プレフィックス)
   ========================================================================= */

/* --------------------------------------------
   1. ベーススタイル (共通)
   -------------------------------------------- */

/* パンくずリスト下の余白確保 */
.breadcrumbs-wrap {
  margin-bottom: 40px;
}

/* フォームコンテナ */
.je-form-wrapper {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
  margin-top: 40px;
  border: 1px solid #eef2f6;
}

/* 行（Row）の基本 */
.je-row {
  border-bottom: 1px solid #f0f0f0;
  padding: 24px 0;
}
.je-row:last-of-type {
  border-bottom: none;
}

/* ラベルエリア */
/* ラベルのコンテナ */
.je-label {
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 12px; /* ラベルとバッジの間隔 */
  margin-bottom: 10px;
  width: auto; /* コンテナ幅を自動調整 */
}

/* ラベルテキスト */
.je-label label {
  font-weight: 700;
  color: var(--job-navy);
  font-size: 1rem;
  line-height: 1; /* 高さを抑える */
  margin: 0; /* 余計な余白を除去 */
  padding: 0;
  width: auto; /* 勝手に広がらないようにする */
  display: inline-block;
}

/* 入力エリア */
.je-input {
  width: 100%;
}
.je-input .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* テキスト・テキストエリア共通 */
.je-text,
.je-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease;
  appearance: none;
  color: #333;
}

.je-text:focus,
.je-textarea:focus {
  background: #fff;
  border-color: var(--job-accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(245, 91, 20, 0.1);
}

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

/* 送信ボタンエリア */
.je-submit-area {
  margin-top: 50px;
  text-align: center;
}

.je-btn-submit {
  display: inline-block;
  background-color: var(--job-accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 18px 80px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 15px rgba(245, 91, 20, 0.3);
}

.je-btn-submit:hover {
  transform: translateY(-2px);
  background-color: #ff7043;
  box-shadow: 0 8px 25px rgba(245, 91, 20, 0.4);
  color: #fff !important;
}

/* 補足エリア (Contact Form 7外で使用する場合など) */
.je-note-area {
  margin-top: 50px;
  padding: 25px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.je-note-title {
  color: #e74c3c;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.je-note-text {
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.je-contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.je-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.je-info-item .label {
  background: #ddd;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  color: #555;
}

/* --------------------------------------------
   2. PC用レイアウト (min-width: 769px)
   -------------------------------------------- */
@media screen and (min-width: 769px) {
  .je-form-wrapper {
    padding: 60px 80px;
  }

  /* --- 通常の1列レイアウト (ラベル左・入力右) --- */
  .je-row {
    display: flex;
    gap: 60px;
    align-items: flex-start; /* 基本は上揃え */
  }

  /* テキストエリアが無い行は中央揃え */
  .je-row:not(:has(.je-textarea)) {
    align-items: center;
  }

  .je-label {
    width: 260px;
    flex-shrink: 0;
    margin-bottom: 0;
    justify-content: flex-start;
  }

  .je-input {
    flex: 1;
  }

  /* --- 2カラム（横並び）グリッドレイアウト (.je-grid-2) --- */
  /* Contact Form 7側で <div class="je-grid-2">...</div> で囲った部分に適用 
     ここでは「ラベル上・入力下」のスタックレイアウトに変更して2つ並べます
  */

  /* コンテナ: 2つのje-rowを横に並べる */
  .je-grid-2 {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid #f0f0f0;
    align-items: stretch; /* 高さを揃える */
  }

  /* グリッド内の行: 幅50%にして縦積みにリセット */
  .je-grid-2 .je-row {
    display: block; /* Flex解除して縦積みに */
    width: 50%;
    border-bottom: none;
    padding: 24px 0;
  }

  /* グリッド内のラベル: 幅固定を解除して100%に */
  .je-grid-2 .je-label {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* --------------------------------------------
   3. スマホ用レイアウト (max-width: 768px)
   -------------------------------------------- */
@media screen and (max-width: 768px) {
  .je-form-wrapper {
    padding: 24px 20px;
    margin-top: 30px;
  }

  .je-row {
    padding: 20px 0;
    /* スマホはデフォルトでブロック要素（縦積み）なので指定不要 */
  }

  /* グリッドもスマホでは縦並びに戻す */
  .je-grid-2 {
    display: block;
    border-bottom: none;
  }
  .je-grid-2 .je-row {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  .je-text,
  .je-textarea {
    font-size: 16px; /* ズーム防止 */
  }

  .je-btn-submit {
    width: 100%;
    padding: 16px;
  }
}
.l-main-form {
  padding-top: 80px;
  padding-bottom: 100px;
}
/* フォーム導入エリアのデザイン */
.form-intro {
  text-align: center;
  margin-bottom: 60px; /* フォームとの間隔 */
  padding: 0 20px;
}

/* タイトル装飾 */
.form-title {
  font-size: clamp(1.5rem, 4vw, 2rem); /* スマホで小さく、PCで大きく */
  font-weight: 900;
  color: var(--job-navy);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

/* タイトルの下のオレンジ色の線 */
.form-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--job-accent); /* オレンジ */
  margin: 15px auto 0;
  border-radius: 2px;
}

/* 説明文 */
.form-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
  max-width: 700px; /* 横に広がりすぎないように */
  margin: 0 auto;
}
@media (max-width: 480px) {
  .intro-group-box {
    padding: 40px 20px;
  }
}

/* ============================================
   FAQ Page Styles (page-faq.php)
   ============================================ */

.l-main-faq {
  padding: 80px 0 120px;
}

/* 導入文 */
.faq-intro {
  text-align: center;
  margin-bottom: 50px;
}
.faq-intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

/* タブナビゲーション */
.faq-tab-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.faq-tab-btn {
  background: #fff;
  border: 2px solid #ddd;
  color: #666;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-tab-btn:hover {
  background: #f0f0f0;
}
.faq-tab-btn.active {
  background: var(--job-navy); /* #132e4b */
  border-color: var(--job-navy);
  color: #fff;
  box-shadow: 0 5px 15px rgba(19, 46, 75, 0.2);
}

/* コンテンツグループ (切り替え表示) */
.faq-content-group {
  display: none; /* 初期状態非表示 */
  max-width: 900px;
  margin: 0 auto;
}
.faq-content-group.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* FAQ アイテム (カードデザイン) */
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

/* 質問エリア (ヘッダー) */
.faq-head {
  padding: 25px 30px;
  display: flex;
  align-items: center; /* 垂直中央 */
  cursor: pointer;
  position: relative;
  gap: 20px;
}

/* Qアイコン */
.faq-q-icon {
  background: var(--job-navy);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 質問テキスト */
.faq-question {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* 開閉アイコン (+ / x) */
.faq-toggle-icon {
  color: #bbb;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.faq-item.is-open .faq-toggle-icon {
  color: var(--job-accent);
}

/* 回答エリア (ボディ) */
.faq-body {
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.faq-body-inner {
  padding: 0 30px 30px 30px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 20px;
  padding-top: 25px; /* 線との距離 */
}

/* Aアイコン */
.faq-a-icon {
  background: #fdfdfd;
  border: 2px solid var(--job-accent);
  color: var(--job-accent);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* 回答テキスト */
.faq-answer-text {
  flex: 1;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  padding-top: 8px; /* アイコン位置との微調整 */
}

/* 注意書き・リンク */
.u-text-caution {
  color: #e74c3c;
  font-weight: bold;
}
.u-mt-10 {
  margin-top: 10px;
}
.faq-answer-text .text-link {
  color: var(--job-accent);
  text-decoration: underline;
}
.faq-step-list {
  margin-top: 10px;
  margin-left: 20px;
  list-style-type: decimal;
}
.faq-step-list li {
  margin-bottom: 5px;
}

/* お問い合わせ誘導エリア */
.faq-contact-area {
  text-align: center;
  margin-top: 80px;
  padding: 60px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.faq-contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--job-navy);
  margin-bottom: 15px;
}
.faq-contact-desc {
  margin-bottom: 30px;
}
.faq-btn {
  max-width: 300px; /* job.cssのボタン幅上書き */
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .l-main-faq {
    padding: 40px 0;
  }
  .faq-tab-nav {
    flex-direction: column;
    gap: 10px;
  }
  .faq-tab-btn {
    width: 100%;
    justify-content: center;
  }

  .faq-head {
    padding: 20px;
    gap: 15px;
  }
  .faq-q-icon,
  .faq-a-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .faq-question {
    font-size: 0.95rem;
  }
  .faq-body-inner {
    padding: 20px;
    flex-direction: column; /* スマホはAアイコンを上に */
    gap: 10px;
  }
  .faq-answer-text {
    padding-top: 0;
  }
}
/* ============================================
   Company Info Page (page-company.php)
   ============================================ */

/* メインエリア背景 */
.l-main-company {
  padding: 80px 0 120px;
}

/* コンテナ幅を少し狭めて読みやすくする（画像幅に合わせる） */
.inner-1000 {
  width: 90%;
  max-width: 1000px; /* PCでの画像の最大幅 */
  margin: 0 auto;
}

/* 画像ラッパー */
.company-image-container {
  background: #fff;
  border-radius: 8px; /* 角丸 */
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05); /* ふんわり影 */
  line-height: 0; /* 画像下の隙間除去 */
}

/* 縦長画像本体 */
.company-long-img {
  width: 100%;
  height: auto;
  display: block;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .l-main-company {
    padding: 40px 0 80px;
  }

  /* スマホでは影などをなくして画面いっぱいにしてもOK
     ここでは余白を保ちつつシンプルに表示 */
  .company-image-container {
    box-shadow: none;
    border-radius: 4px;
  }
}

/* ============================================
   お問い合わせページ用 追加スタイル
   ============================================ */

/* フォーム外の注釈ボックス */
.je-contact-note {
  margin-top: 50px;
  padding: 30px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.je-note-title {
  color: #e74c3c; /* 注意色の赤 */
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.je-note-text {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555;
}

/* 連絡先情報レイアウト */
.je-contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.je-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.je-info-item .label {
  background: #ddd;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  color: #555;
  font-family: "Roboto", sans-serif;
  transform: translateY(-1px);
}

.je-info-item a {
  color: var(--job-navy);
  text-decoration: none;
  transition: color 0.3s;
}

.je-info-item a:hover {
  color: var(--job-accent);
  text-decoration: underline;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .je-contact-info {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
} /* ============================================
   Privacy Policy Page (page-privacy.php)
   ============================================ */

.l-main-privacy {
  padding: 80px 0 120px;
}

/* 読みやすさのために幅を少し制限 */
.inner-1000 {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
}

.privacy-content {
  line-height: 1.8;
  color: #333;
}

/* 導入文 */
.privacy-intro {
  margin-bottom: 50px;
  font-size: 1rem;
}

/* 各セクションブロック */
.privacy-block {
  margin-bottom: 50px;
}

/* 見出し (h3) */
.privacy-block h3 {
  font-size: 1.25rem;
  color: var(--job-navy);
  border-left: 5px solid var(--job-accent);
  padding-left: 15px;
  margin-bottom: 20px;
  font-weight: 700;
  background: #f4f8fb; /* 薄い背景色で帯にする */
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 0 4px 4px 0;
}

/* 段落 */
.privacy-block p {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* リスト (ol) */
.privacy-list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-top: 15px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 6px;
}

.privacy-list li {
  margin-bottom: 10px;
  padding-left: 5px;
}
.privacy-list li::marker {
  font-weight: bold;
  color: var(--job-navy);
}

/* 余白調整用クラス */
.u-mt-20 {
  margin-top: 20px;
}

/* お問い合わせ先ボックス */
.privacy-contact-box {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 30px;
  max-width: 600px;
}

.privacy-contact-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.1rem;
}
.privacy-contact-list li:last-child {
  margin-bottom: 0;
}

.privacy-contact-list .label {
  background: #eee;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  color: #555;
  width: 60px;
  text-align: center;
}

.privacy-contact-list a {
  color: var(--job-navy);
  text-decoration: underline;
  transition: color 0.3s;
}
.privacy-contact-list a:hover {
  color: var(--job-accent);
  text-decoration: none;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .l-main-privacy {
    padding: 40px 0 80px;
  }

  .privacy-block h3 {
    font-size: 1.1rem;
    padding: 10px 10px 10px 10px;
  }

  .privacy-contact-box {
    padding: 20px;
  }

  .privacy-contact-list li {
    font-size: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ============================================
   Cancellation Page (Multi-step) - 修正版
   ============================================ */

.l-main-cancel {
  padding: 60px 0 120px;
  background-color: #f4f8fb;
}

/* --- プログレスバー --- */
.cancel-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px; /* スマホで端が見切れないように */
}
.progress-step {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  transition: all 0.3s;
  flex-shrink: 0; /* 縮小防止 */
}
.progress-step.active {
  background: var(--job-navy);
}
.progress-line {
  flex: 1;
  height: 4px;
  background: #ddd;
  margin: 0 -10px;
  z-index: 1;
  min-width: 20px; /* 線が消えないように最小幅確保 */
}

/* --- コンテンツボックス共通 --- */
.cancel-content-box {
  background: #fff;
  border-radius: 12px;
  padding: 50px; /* PCは広めに */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  text-align: center;
}

/* ▼▼▼ 修正: clampでレスポンシブな文字サイズに ▼▼▼ */
.cancel-head-lg {
  /* スマホ: 22px(1.375rem) 〜 PC: 28.8px(1.8rem) */
  font-size: clamp(1.15rem, 4vw, 1.8rem);
  color: var(--job-navy);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.4;
}

.cancel-head-md {
  /* スマホ: 18px(1.125rem) 〜 PC: 24px(1.5rem) */
  font-size: clamp(1.125rem, 3.5vw, 1.5rem);
  color: var(--job-navy);
  margin-bottom: 30px;
  font-weight: 700;
  border-bottom: 2px solid #f0f0f0;
  display: inline-block;
  padding-bottom: 10px;
  line-height: 1.4;
}

.cancel-lead {
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.8;
}
.u-text-red {
  color: #d32f2f;
  font-weight: bold;
}

/* --- STEP 1: 喪失リスト --- */
.loss-list-wrap {
  background: #fff5f5;
  border: 1px solid #ffebeb;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: left;
}
.loss-title {
  text-align: center;
  color: #d32f2f;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.loss-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.loss-list li:last-child {
  margin-bottom: 0;
}
.loss-list i {
  font-size: 1.5rem;
  color: #d32f2f;
  margin-top: 3px;
  width: 30px;
  text-align: center;
  flex-shrink: 0; /* アイコンが潰れないように */
}
.loss-text strong {
  display: block;
  color: #333;
  margin-bottom: 4px;
}
.loss-text span {
  font-size: 0.9rem;
  color: #666;
}

/* --- STEP 2: ルール --- */
.cancel-note-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 30px;
}
.note-title {
  color: #e67e22;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.rule-list {
  list-style: none;
  margin-top: 20px;
}
.rule-list li {
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 4px solid #ddd;
}
.rule-list strong {
  display: block;
  color: var(--job-navy);
  margin-bottom: 5px;
}
.rule-list span {
  font-size: 0.9rem;
  color: #555;
}

/* --- STEP 3: 手順フロー --- */
.step-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.flow-item {
  background: #f0f4f8;
  padding: 20px 15px;
  border-radius: 8px;
  width: 140px;
  text-align: center;
}
.step-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ccdbe8;
  margin-bottom: 5px;
  line-height: 1;
}
.flow-item p {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--job-navy);
  line-height: 1.4;
}
.flow-arrow {
  color: #ccc;
  font-size: 1.2rem;
}

/* --- ボタンエリア --- */
.cancel-btn-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.btn-stay {
  background: var(--job-accent);
  color: #fff;
  width: 100%;
  max-width: 400px;
  padding: 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(245, 91, 20, 0.3);
  transition: transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-stay:hover {
  transform: translateY(-2px);
  background: #ff7043;
  color: #fff;
}

.btn-proceed {
  background: transparent;
  color: #888;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 10px;
}
.btn-proceed:hover {
  color: #333;
}
.btn-proceed.btn-danger {
  background: #fff;
  border: 2px solid #d32f2f;
  color: #d32f2f;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 10px;
}
.btn-proceed.btn-danger:hover {
  background: #d32f2f;
  color: #fff;
}

.btn-back {
  background: #eee;
  border: none;
  color: #666;
  padding: 10px 30px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
}

/* --- モーダル --- */
.cancel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}
.cancel-modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeInModal 0.3s;
}
.modal-header {
  background: #f2f2f2;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  color: #333;
}
.modal-body {
  padding: 30px 20px;
  text-align: center;
}
.modal-alert-msg {
  font-size: 1.1rem;
  color: #d32f2f;
  line-height: 1.6;
}
.modal-check-list {
  text-align: left;
  margin-top: 20px;
  font-size: 0.9rem;
  background: #fffcfc;
  padding: 15px;
  border: 1px solid #eee;
}
.modal-check-list li {
  margin-bottom: 8px;
  padding-left: 1.2em;
  text-indent: -1.2em;
}
.modal-check-list li::before {
  content: "✔";
  color: #d32f2f;
  margin-right: 5px;
  font-weight: bold;
}
.modal-footer {
  padding: 20px;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  gap: 15px;
}
.btn-modal-cancel {
  background: #ddd;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  color: #555;
}
.btn-modal-dl {
  background: #d32f2f;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}
.btn-modal-dl:hover {
  background: #b71c1c;
}

/* ============================================
   ▼▼▼ スマホ対応 (修正箇所) ▼▼▼
   ============================================ */
@media screen and (max-width: 768px) {
  /* メインエリアの上下余白を縮小 */
  .l-main-cancel {
    padding: 30px 0 80px;
  }

  /* ボックスの内側余白(padding)を大幅に減らして横幅を確保 */
  .cancel-content-box {
    padding: 30px 10px;
  }

  /* フォントサイズ・余白の微調整 */
  .cancel-lead {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  /* スマホでの不自然な改行を防ぐため、強制改行(br)を無効化 */
  .cancel-lead br {
    display: none;
  }

  /* 喪失リストの余白調整 */
  .loss-list-wrap {
    padding: 20px 10px;
  }
  .loss-list li {
    gap: 10px;
  }

  /* プログレスバーのサイズ調整 */
  .progress-step {
    width: 60px;
    height: 60px;
    font-size: 0.75rem;
  }

  /* フローチャートの縦並び */
  .step-flow {
    flex-direction: column;
    gap: 15px;
  }
  .flow-item {
    width: 100%;
    max-width: 240px;
    padding: 15px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }

  /* モーダルのボタン */
  .modal-footer {
    flex-direction: column-reverse; /* キャンセルを下にする */
  }
  .btn-modal-cancel,
  .btn-modal-dl {
    width: 100%;
    text-align: center;
  }
  .cancel-note-box {
    padding: 20px 10px;
  }
}
