body {
  margin: 0;
}

header,
.wp-block-group__inner-container,
.wp-block-cover {
  max-width: 1200px;
  margin: 0 auto;
}
.wp-block-navigation__container {
  gap: 30px;
}

code a {
  text-decoration: none;
  color: black;
}

/* ==========================
   Job Search Form Layout
   ========================== */

   .job-search {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: "Noto Sans JP", sans-serif;
  }
  
  .job-search h2 {
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
  }
  
  /* ========== Form Grid ========== */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 2rem;
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.4rem;
  }
  
  /* ========== Inputs / Selects ========== */
  .form-group select,
  .form-group input[type="text"] {
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  
  .form-group select:focus,
  .form-group input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
    outline: none;
  }
  
  /* ========== Job Count ========== */
  .job-count {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #333;
    text-align: center;
  }
  
  .job-count .highlight {
    color: #db0909;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  /* ========== Button ========== */
  .button-wrap {
    margin-top: 1.5rem;
    text-align: center;
  }
  
  .search-btn {
    background-color: #ec0808;
    display: none;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
  }
  
  .search-btn:hover {
    background-color: #b41616;
  }
  
  .search-btn:active {
    transform: scale(0.97);
  }
  
  /* ========== Responsive (Smartphone) ========== */
  @media (max-width: 768px) {
    .form-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
    }
  
    .job-search {
      padding: 1.5rem 1rem;
    }
  
    .search-btn {
      width: 100%;
      padding: 1rem;
      font-size: 1.05rem;
    }
  
    .job-count {
      text-align: center;
      margin-top: 1rem;
    }
  }
  
.form-grid p{
  display: none;
}

  /* ========== Extra Small Devices ========== */
  @media (max-width: 480px) {
    .job-search h2 {
      font-size: 1.3rem;
    }
  
    .form-group label {
      font-size: 0.9rem;
    }
  
    .form-group select,
    .form-group input[type="text"] {
      font-size: 0.9rem;
      padding: 0.6rem 0.7rem;
    }
  }
  

.image-flow {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.image-track {
  display: flex;
  gap: 60px;
  animation: scroll-left 30s linear infinite;
}

.image-track img {
  height: 80px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.3s, opacity 0.3s;
}

.image-track img:hover {
  transform: scale(1.1);
  opacity: 1;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 1200px) {
  header {
    padding-inline: 10px;
  }

  .wp-block-group__inner-container {
    padding-inline: 10px;
  }
}


/* recommended section */

/* ==========================================================
   Bizresearch Job Section Styles
   Recommended Jobs & Featured Jobs
   Base: White | Accent: Red | Text: Black
   ========================================================== */

/* Container section */
section.recommended-jobs,
section.featured-jobs {
  background-color: #fff;
  margin: 0 auto;
  max-width: 1200px; /* Fixed max-width */
  border-bottom: 1px solid #eee;
  padding: 20px; /* Padding for inner space */
}

/* Section titles */
.recommended-jobs h2,
.featured-jobs h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  border-left: 6px solid #d50000;
  padding-left: 12px;
}

/* Job card container (Grid Layout) */
.job-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  gap: 20px; /* Space between items */
}

/* Each job card */
.job-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.job-card:hover {
  border-color: #d50000;
  box-shadow: 0 4px 12px rgba(213, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Job title */
.job-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
}

/* Job details */
.job-card p {
  font-size: 0.95rem;
  color: #333;
  margin: 4px 0;
  line-height: 1.5;
}

/* Detail link button */
.view_detail {
  margin-top: 15px;
}

.job-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #c20909;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.job-link:hover {
  /* Background color on hover can be uncommented if you want it */
  /* background-color: #b00000; */
}

/* "View More" button at the bottom */
.view-more {
  text-align: center;
  margin-block: 30px;
}

.view-more .btn-red {
  display: inline-block;
  padding: 10px 28px;
  background-color: #d50000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.view-more .btn-red:hover {
  background-color: #b00000;
}

/* ==========================================================
   Responsive (Smartphone) — 768px and below
   ========================================================== */
@media screen and (max-width: 768px) {
  section.recommended-jobs,
  section.featured-jobs {
    padding: 40px 15px; /* Add more padding for small screens */
  }

  /* Adjust section title size */
  .recommended-jobs h2,
  .featured-jobs h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  /* Switch to 1 column for job cards */
  .job-cards {
    grid-template-columns: 1fr; /* Single column */
    gap: 16px; /* Adjusted gap */
  }

  .job-card {
    padding: 16px;
  }

  /* Job title size adjustment */
  .job-card h3 {
    font-size: 1.05rem;
  }

  /* Center the job link in smaller screens */
  .job-link {
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  /* Adjust view more button width for mobile */
  .view-more .btn-red {
    width: 100%;
  }
}

/* ==========================================================
   Extra small (phones under 480px)
   ========================================================== */
@media screen and (max-width: 480px) {
  /* Smaller font size for job description */
  .job-card p {
    font-size: 0.9rem;
  }

  /* Adjust title size for very small screens */
  .recommended-jobs h2,
  .featured-jobs h2 {
    font-size: 1.2rem;
  }
}


  /* ===== About Page ===== */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #000;
    background-color: #fff;
    font-family: "Noto Sans JP", sans-serif;
    line-height: 1.8;
  }
  
  /* Headings */
  .about-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #E60012;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .about-section h2 {
    font-size: 1.5rem;
    border-left: 5px solid #E60012;
    padding-left: 10px;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .about-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
  }
  
  /* Paragraphs */
  .about-section p {
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  /* Features */
  .about-features ul {
    list-style: none;
    padding: 0;
  }
  
  .about-features li {
    background: #fafafa;
    padding: 10px 15px;
    border-left: 4px solid #E60012;
    margin-bottom: 10px;
    border-radius: 4px;
  }
  
  /* Steps (How It Works) */
  .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 1rem;
  }
  
  .step {
    flex: 1 1 250px;
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s;
  }
  
  .step:hover {
    border-color: #E60012;
  }
  
  .step-number {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background-color: #E60012;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
  }
  
  /* Company Info Table */
  .about-company table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  
  .about-company th,
  .about-company td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
  }
  
  .about-company th {
    width: 25%;
    color: #E60012;
  }
  
  .about-company a {
    color: #E60012;
    text-decoration: none;
  }
  
  .about-company a:hover {
    text-decoration: underline;
  }
  
  /* Responsive */
  @media (max-width: 600px) {
    .steps {
      flex-direction: column;
    }
  }


/* ========== Global Reset & Variables ========== */
:root {
    --primary: #d60000; /* Red accent */
    --text: #111;
    --muted: #666;
    --bg: #fff;
    --border: #ddd;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
  }
  
  /* ========== Layout ========== */
  main.grid {
    margin-top: 40px;
    display: flex;
  
  }

  aside {
    width: 30%;
    height: fit-content;
  }

  section{
  }

  .job-result{
    padding: 1rem;
    width: 70%;
  }
  
  
  /* ========== Sidebar Filters ========== */
  aside.filters {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
  }
  
  aside.filters h3 {
    font-size: 1.1rem;
    margin-top: 0;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
    margin-bottom: 16px;
  }
  
  .filter-group {
    margin-bottom: 18px;
  }
  
  .filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.95rem;
  }
  
  .filter-group input,
  .filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  .btn-red {
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 19px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
  }
  
  .btn-red:hover {
    background: #b80000;
  }
  
  .btn-outline {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.9rem;
  }
  
  .btn-outline:hover {
    background: #f2f2f2;
  }
  
  /* ========== Results Section ========== */
  .results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  
  .results-count {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 4px;
  }
  
  .results-actions select {
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9rem;
  }
  
  /* ========== Job List ========== */
  .job-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .job-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    transition: box-shadow 0.2s;
  }
  
  .job-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .view_detail{
    margin-top: 25px;
  }
  .job-image img{
    width: 100%;
  }
/*   
  .job-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
  } */
  .job-actions{

    float: right;
  }
  
  .job-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px;
  }
  
  .job-meta {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2px;
  }
  
  .job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
  }
  
  .tag {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: var(--text);
  }
  
  .label-new {
    background: var(--primary);
    color: #fff;
    display: inline-block;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 4px;
  }
  
  .job-link {
 
    font-weight: 600;
    text-decoration: none;
  }
  
  .job-link:hover {
    text-decoration: underline;
  }
  
  /* ========== Pagination ========== */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
  }
  
  .pagination .btn-outline {
    min-width: 40px;
    text-align: center;
  }

  @media (max-width: 768px) {
    main.grid {
        margin-top: 0px;
        display: flex;
        flex-direction: column;
        gap: 2rem;
      }
    
      aside {
        width: 100%;
      }
    
      .job-result{
        width: 100%;
      }
  }


/* ===============================
   General Layout
=============================== */
.job-detail.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #222;
  line-height: 1.7;
  background: #fff;
}

/* ===============================
   Job Header
=============================== */
.job-header {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.job-header .job-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.5rem;
}

.job-header .company-name {
  font-size: 1.1rem;
  color: #c00; /* red accent */
  margin-bottom: 0.3rem;
}

.job-header .job-location {
  font-size: 1rem;
  color: #666;
}

/* ===============================
   Job Image (optional)
=============================== */
.job-image {
  text-align: center;
  margin: 2rem 0;
}

.job-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ===============================
   Job Meta Information
=============================== */
.job-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem 1.5rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.job-meta .meta-item strong {
  color: #000;
  margin-right: 0.25rem;
}

/* ===============================
   Job Description / Requirements / Benefits
=============================== */
.job-description,
.job-requirements,
.job-benefits {
  margin-bottom: 2rem;
}

.job-description h2,
.job-requirements h2,
.job-benefits h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  border-left: 4px solid #c00;
  padding-left: 0.5rem;
  margin-bottom: 1rem;
}

.job-description p {
  margin: 0;
  color: #333;
}

.job-requirements ul,
.job-benefits ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: #333;
}

/* ===============================
   Apply Section
=============================== */
.apply-area {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 3rem;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

/* --- Apply Button --- */
.apply-btn {
  display: inline-block;
  background-color: #c00;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.apply-btn:hover {
  background-color: #a00;
  transform: translateY(-2px);
}

/* --- Back Button --- */
.back-btn {
  display: inline-block;
  background-color: #fff;
  color: #000;
  border: 1px solid #aaa;
  padding: 0.9rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.back-btn:hover {
  background-color: #f5f5f5;
}

/* ===============================
   Responsive (SP)
=============================== */
@media (max-width: 768px) {
  .job-detail.container {
    padding: 1.5rem 1rem;
  }

  .job-header .job-title {
    font-size: 1.4rem;
  }

  .apply-area > p{
    display: none;
  }

  .job-meta {
    grid-template-columns: 1fr;
  }

  .apply-area {
    flex-direction: column;
    align-items: stretch;
  }

  .apply-btn,
  .back-btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
  }
}

/* ===============================
   Very Small Screens
=============================== */
@media (max-width: 480px) {
  .job-header .job-title {
    font-size: 1.3rem;
  }

  .job-meta {
    font-size: 0.9rem;
  }

  .apply-btn,
  .back-btn {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
}


  /* Bizresearch Registration Form */
.register-form {
  max-width: 420px;
  margin: 1rem auto;
  padding: 1rem;
  background-color: #fff;
  /* border: 1px solid #e6e6e6;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); */
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
}

.register-form label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  font-weight: 600;
  color: #111;
}

.register-form input[type="text"],
.register-form input[type="email"],
.register-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input:focus {
  border-color: #d6001c;
  outline: none;
  box-shadow: 0 0 4px rgba(214, 0, 28, 0.3);
}

.register-form button[type="submit"] {
  display: block;
  width: 100%;
  background-color: #d6001c; /* Bizreach-style red */
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.register-form button[type="submit"]:hover {
  background-color: #b80018;
}

/* Success & error messages */
.register-form .error {
  background: #ffe6e6;
  border: 1px solid #ff8a8a;
  color: #d6001c;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

/* Responsive design */
@media (max-width: 600px) {
  .register-form {
    padding: 1.5rem;
    border-radius: 12px;
  }
  .register-form button[type="submit"] {
    font-size: 1rem;
  }
}


/* === Login Page Styling (Bizresearch) === */

.login-wrapper {
  max-width: 420px;
  margin: 60px auto;
  padding: 40px 30px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
}

.login-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #000;
  font-weight: 700;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  color: #000;
  background-color: #f9f9f9;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-group input:focus {
  border-color: #d32f2f; /* red accent */
  background-color: #fff;
  outline: none;
}

.login-button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #d32f2f; /* red accent */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
}

.login-button:hover {
  background-color: #b71c1c;
  transform: translateY(-1px);
}

.login-error {
  background-color: #fce4e4;
  color: #b71c1c;
  border-left: 4px solid #d32f2f;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.login-links {
  text-align: center;
  margin-top: 20px;
}

.login-links a {
  color: #d32f2f;
  text-decoration: none;
  font-weight: 600;
}

.login-links a:hover {
  text-decoration: underline;
}


/* Sidebar */
.mypage-sidebar {
  width: 240px;
  color: #4e4d4d;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
 
}

.mypage-sidebar .user-info {
  margin-bottom: 20px;
}

.user-info {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0px;
  margin-bottom: 10px;
}

.mypage-sidebar .username {
  font-size: 18px;
  font-weight: bold;
}

.mypage-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mypage-menu li {
  margin-bottom: 12px;
}

.mypage-menu a {
  color: #272626;
  text-decoration: none;
  padding: 8px 10px;
  display: block;
  border-radius: 6px;
  transition: background 0.3s;
}

.mypage-menu a:hover {
  background-color: #f44336;
}

/* Logout Button Style */
.logout-btn {
  background-color: #f44336;
  display: inline-block;
  text-align: center;
  color: #fff;
  padding: 10px;
  border-radius: 6px;
}

.logout-btn:hover {
  background-color: #c62828;
}

/* Main Content */
.mypage-content {
  flex: 1;
  padding: 40px;
  background-color: #fff;
}

.mypage-content h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #000;
}

/* Layout Wrapper */
.mypage-container {
  display: flex;
  min-height: 100vh;
}

/* ========== RESPONSIVE STYLES ========== */

/* Tablet view (<= 1024px) */
@media (max-width: 1024px) {
  .mypage-sidebar {
    width: 200px;
    padding: 15px;
  }

  .mypage-content {
    padding: 20px;
  }
}

/* Mobile view (<= 768px) */
@media (max-width: 768px) {
  .mypage-container {
    flex-direction: column;
  }

  .mypage-sidebar {
    width: 100%;
    border-bottom: 1px solid #ddd;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mypage-menu ul {
    display: flex;
    overflow-x: auto;
    gap: 10px;
  }

  .mypage-menu li {
    margin-bottom: 0;
  }

  .mypage-menu a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .logout-btn {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .mypage-content {
    padding: 20px;
  }
}

/* Extra small devices (<= 480px) */
@media (max-width: 480px) {
  .mypage-sidebar .username {
    font-size: 16px;
  }

  .mypage-menu a {
    font-size: 13px;
    padding: 6px 10px;
  }

  .mypage-content h1 {
    font-size: 20px;
  }
}


/* === Apply Button === */
.apply-btn {
  background-color: #d7000f;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.apply-btn:hover {
  background-color: #b0000d;
}

/* === Modal Overlay === */
.modal-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* === Modal Content === */
.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  position: relative;
  animation: slideUp 0.3s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  color: #333;
  cursor: pointer;
}

/* Form elements */
.apply-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}
.apply-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  resize: vertical;
}
.submit-btn {
  background-color: #d7000f;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  margin-top: 15px;
  cursor: pointer;
}
.submit-btn:hover {
  background-color: #b0000d;
}

/* Success message */
.apply-success {
  background-color: #e7f6e7;
  border: 1px solid #7cc67c;
  color: #2b662b;
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes slideUp {
  from {transform: translateY(50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}


/* === Success Notification === */
.apply-success {
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #4CAF50;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideIn 0.4s ease forwards, fadeOut 0.5s ease 3s forwards;
}

/* === Animations === */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === 応募履歴 (Application History) === */
.application-history {
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  border-left: 5px solid #d32f2f; /* Red accent */
  padding-left: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.application-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.application-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.job-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.job-title a {
  color: #000;
  text-decoration: none;
}

.job-title a:hover {
  color: #d32f2f;
  text-decoration: underline;
}

.application-date {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.detail-btn {
  background-color: #d32f2f; /* red accent */
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.detail-btn:hover {
  background-color: #b71c1c;
}

.no-applications {
  text-align: center;
  color: #777;
  font-size: 1rem;
  padding: 2rem;
  background-color: #fafafa;
  border-radius: 12px;
  border: 1px solid #eee;
}


/* ===========================
   Bizresearch: Edit Profile Page
   =========================== */

   /* =============================
   Profile Edit Page Styling
   ============================= */


.edit-profile {
  max-width: 800px;
  margin: auto;
  margin-bottom: 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 40px;
  font-family: "Noto Sans JP", sans-serif;
}

.edit-profile h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
  text-align: center;
}

.edit-profile form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edit-profile label {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 4px;
  display: block;
  font-weight: 500;
}

.edit-profile input[type="text"],
.edit-profile input[type="number"],
.edit-profile input[type="email"],
.edit-profile input[type="password"],
.edit-profile input[type="tel"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.edit-profile input:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.edit-profile button[type="submit"] {
  background: #e60023;
  color: #fff;
  font-size: 1rem;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.edit-profile button[type="submit"]:hover {
  background: #c5001e;
}

/* Success & Error Messages */
.edit-profile .success {
  color: #0a8a00;
  background: #e8f7e8;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.edit-profile .error {
  color: #c5001e;
  background: #fdeaea;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Back link */
.edit-profile p a {
  color: #0073aa;
  text-decoration: none;
}

.edit-profile p a:hover {
  text-decoration: underline;
}

/* =============================
   Responsive (Smartphone)
   ============================= */
@media (max-width: 768px) {
  .bizresearch-section {
    margin: 20px auto;
    padding: 10px;
  }

  .edit-profile {
    padding: 20px;
    box-shadow: none;
    border-radius: 10px;
  }

  .edit-profile h1 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .edit-profile input,
  .edit-profile button {
    font-size: 1rem;
  }

  .edit-profile button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .edit-profile {
    padding: 16px;
  }

  .edit-profile h1 {
    font-size: 1.2rem;
  }

  .edit-profile label {
    font-size: 0.9rem;
  }

  .edit-profile input {
    padding: 8px 10px;
  }

  .edit-profile button[type="submit"] {
    padding: 10px;
  }
}


  form br {
    display: none;
  }

/* ===============================
   Contact Form 7 Custom Styling
   =============================== */

   .wpcf7 form {
    max-width: 600px;
    margin: 40px auto;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    font-family: "Noto Sans JP", sans-serif;
  }

.bizresearch-section h2, .bizresearch-section > p {
  text-align: center;
}
  
  /* Label styling */
  .wpcf7 form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-top: 18px;
    margin-bottom: 6px;
    font-size: 0.95rem;
  }
  
  /* Input + textarea base */
  .wpcf7 form input[type="text"],
  .wpcf7 form input[type="email"],
  .wpcf7 form input[type="tel"],
  .wpcf7 form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafafa;
  }
  
  /* Focus effect */
  .wpcf7 form input:focus,
  .wpcf7 form textarea:focus {
    outline: none;
    border-color: #e60012; /* Bizresearch red tone */
    box-shadow: 0 0 4px rgba(230, 0, 18, 0.2);
    background-color: #fff;
  }
  
  /* Textarea specific */
  .wpcf7 form textarea {
    min-height: 140px;
    resize: vertical;
  }
  
  /* Submit button */
  .wpcf7 form .submit-btn {
    display: inline-block;
    background-color: #e60012;
    color: #fff;
    font-weight: 600;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 24px;
    transition: background-color 0.25s ease, transform 0.15s ease;
  }
  
  .wpcf7 form .submit-btn:hover {
    background-color: #cc0010;
    transform: translateY(-1px);
  }
  
  .wpcf7 form .submit-btn:active {
    transform: translateY(1px);
  }
  
  /* Validation error messages */
  .wpcf7 form .wpcf7-not-valid-tip {
    color: #d93025;
    font-size: 0.85rem;
    margin-top: 4px;
  }
  
  .wpcf7 form .wpcf7-response-output {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
  }
  
  .wpcf7 form .wpcf7-mail-sent-ok {
    background-color: #e7f5ec;
    border: 1px solid #a8d5b9;
    color: #256b3f;
  }
  
  .wpcf7 form .wpcf7-validation-errors {
    background-color: #fdecea;
    border: 1px solid #f5c2c0;
    color: #842029;
  }
  
  /* Responsive adjustments */
  @media (max-width: 480px) {
    .wpcf7 form {
      padding: 20px;
    }
  
    .wpcf7 form .submit-btn {
      width: 100%;
      text-align: center;
    }
  }

#display_count {
 width: fit-content;
}

.display-count-selector {
 width: fit-content;
}