/*
Theme Name: Career Vibe Pro Final v22
Author: Onff inc.
Description: Corporate Media Theme (Button Fix)
Version: 42.0.0
*/

/* =========================================
   1. Strict Reset & Base
   ========================================= */
*,
*:before,
*:after {
  box-sizing: border-box !important;
  margin: 0;
  padding: 0;
}

:root {
  --c-primary: #003366;
  --c-accent: #f58220;
  --c-bg: #fdfdfd;
  --c-text: #222;
  --c-border: #e0e0e0;
  --w-container: 1200px;
  --h-header: 80px;
  --h-header-sp: 60px;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  padding-top: var(--h-header);
  word-wrap: break-word;
  overflow-x: hidden;
}
@media (max-width: 900px) {
  body {
    padding-top: var(--h-header-sp);
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
ul {
  list-style: none;
}
input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* Utility */
.l-container {
  width: 100%;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.u-pc-only {
  display: block;
}
.u-sp-only {
  display: none !important;
}
@media (max-width: 900px) {
  .u-pc-only {
    display: none !important;
  }
  .u-sp-only {
    display: block !important;
  }
}
.u-text-center {
  text-align: center;
}
.u-mt-20 {
  margin-top: 20px;
}
.u-mt-40 {
  margin-top: 40px;
}

/* =========================================
   2. Header
   ========================================= */
.l-header {
  height: var(--h-header);
  background: #fff;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(
    to right,
    var(--c-primary) 0%,
    var(--c-accent) 100%
  );
  border-image-slice: 1;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}
@media (max-width: 900px) {
  .l-header {
    height: var(--h-header-sp);
  }
}

.l-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.c-logo {
  flex-shrink: 0;
  margin-right: 40px;
}
.l-footer .c-logo {
  margin: 0;
}
.c-logo a {
  display: block;
  line-height: 0;
}
.c-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  .c-logo img {
    height: 32px;
  }
}

.l-header__pc {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 25px;
}

.c-gnav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.c-gnav a {
  font-weight: bold;
  font-size: 14px;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: color 0.3s;
}
.c-gnav a span {
  font-size: 18px;
  color: var(--c-primary);
  transition: color 0.3s;
}
.c-gnav a:hover {
  color: var(--c-accent);
}
.c-gnav a:hover span {
  color: var(--c-accent);
}

.c-header-search {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 30px;
  height: 40px;
  overflow: hidden;
  max-width: 450px;
  flex-shrink: 0;
  transition: 0.3s;
}
.c-header-search:focus-within {
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.c-header-search select {
  border: none;
  background-color: transparent;
  font-size: 12px;
  font-weight: bold;
  color: var(--c-primary);
  padding: 0 30px 0 15px;
  border-right: 1px solid #eee;
  cursor: pointer;
  height: 100%;
  outline: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23003366' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px;
}
.c-header-search input {
  border: none;
  background: transparent;
  padding: 0 15px;
  font-size: 13px;
  width: 220px;
  outline: none;
  height: 100%;
}
.c-header-search button {
  border: none;
  background: transparent;
  color: var(--c-primary);
  cursor: pointer;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SP Search */
.c-sp-search-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #00509e 100%);
  color: #fff;
  padding: 0 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  height: 40px;
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}
.c-sp-search-btn span.material-icons-round {
  font-size: 20px;
}

.l-sp-search-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 10000;
  padding: 20px;
  border-bottom: 3px solid var(--c-accent);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
.l-sp-search-area.is-open {
  transform: translateY(0);
}
.l-sp-search-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.l-sp-search-label {
  font-weight: bold;
  color: var(--c-primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.l-sp-search-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #333;
  padding: 0;
}
.c-sp-search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.c-sp-select {
  width: 100%;
  padding: 12px 30px 12px 12px;
  border: 2px solid #eee;
  border-radius: 6px;
  background-color: #fff;
  font-weight: normal;
  font-size: 14px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23003366' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
}
.c-sp-input-group {
  display: flex;
  border: 2px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}
.c-sp-input-group input {
  flex: 1;
  padding: 12px;
  border: none;
  font-size: 14px;
  outline: none;
}
.c-sp-input-group button {
  background: var(--c-primary);
  color: #fff;
  border: none;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================================
   3. MV
   ========================================= */
.p-mv {
  background: #fff;
  padding: 40px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
@media (max-width: 900px) {
  .p-mv {
    padding: 20px 0;
  }
}

/* Logo BG */
.p-mv::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200%;
  height: 180%;
  background-image: url("./assets/images/logo-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}

.p-mv__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  height: 460px;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .p-mv__grid {
    grid-template-columns: 1fr;
    height: auto;
    display: block;
  }
}

.p-mv__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  background: #000;
  min-width: 0;
  border: 4px solid #fff;
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.1);
}
@media (max-width: 900px) {
  .p-mv__main {
    height: 280px;
    margin-bottom: 15px;
  }
}

.swiper-container,
.swiper-wrapper,
.swiper-slide {
  width: 100%;
  height: 100%;
}
.p-mv__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.p-mv__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.5s;
}
.p-mv__link:hover img {
  transform: scale(1.05);
}

.p-mv__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  color: #fff;
  z-index: 10;
  pointer-events: none;
}
@media (max-width: 768px) {
  .p-mv__content {
    padding: 15px;
  }
}

.p-mv__content h2 {
  font-size: clamp(16px, 3.5vw, 26px);
  word-wrap: break-word;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.c-cat-label {
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}

.p-mv__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
@media (max-width: 900px) {
  .p-mv__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    height: auto;
  }
}

.p-mv__item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .p-mv__item {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
  }
}
.p-mv__item:hover,
.p-mv__item.is-active {
  border-color: var(--c-primary);
  background: #fdfdfd;
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.1);
}
.p-mv__item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .p-mv__item img {
    width: 100%;
    height: 70px;
    margin-bottom: 5px;
  }
}
.p-mv__item h3 {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 900px) {
  .p-mv__item h3 {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* =========================================
   4. Sections
   ========================================= */
.c-sec-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
  padding-bottom: 10px;
  border-left: none;
  border-bottom: 2px solid #eee;
}

.c-sec-head::before {
  content: attr(data-en);
  position: absolute;
  top: clamp(-35px, -4vw, -22px);
  left: clamp(-5px, -1vw, -2px);
  font-size: clamp(55px, 10vw, 80px);
  font-weight: 900;
  color: rgba(200, 200, 200, 0.15);
  line-height: 1;
  z-index: 0;
  font-family: sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}

.c-sec-head h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(45deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.p-sec-feature .c-sec-head::before {
  content: "FEATURE";
  color: rgba(197, 160, 89, 0.2);
}
.p-sec-review .c-sec-head::before {
  content: "REVIEW";
  color: rgba(255, 255, 255, 0.15);
}
.l-main .c-sec-head::before {
  content: "COLUMN";
  color: rgba(0, 51, 102, 0.1);
}

.c-sec-btn {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: bold;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  padding: 5px 20px;
  border-radius: 20px;
  transition: 0.3s;
  white-space: nowrap;
}
.c-sec-btn:hover {
  background: var(--c-primary);
  color: #fff;
}
.c-sec-btn.-sp-full {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  padding: 12px;
  font-size: 14px;
  text-align: center;
}

/* Feature */
.p-sec-feature {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 80px 0;
  color: var(--c-text);
}
.c-sec-head.-gold {
  border-bottom-color: #c5a059;
}

.c-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 768px) {
  .c-feature-grid {
    grid-template-columns: 1fr;
  }
}

.c-feature-card {
  display: block;
  position: relative;
  height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}
.c-feature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.c-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 51, 102, 0.2);
}
.c-feature-card:hover img {
  transform: scale(1.05);
}

.c-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 30, 60, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
}
.c-feature-title {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  line-height: 1.4;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  background: none;
  padding: 0;
  border-left: 4px solid #c5a059;
  padding-left: 15px;
}

/* Review */
.p-sec-review {
  background: linear-gradient(135deg, var(--c-primary) 0%, #004080 100%);
  padding: 80px 0;
  color: #fff;
}
.c-sec-head.-white {
  border-bottom-color: rgba(255, 255, 255, 0.3);
}
.c-sec-head.-white h2 {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}
.c-link-arrow {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 12px;
}
.c-link-arrow:hover {
  background: #fff;
  color: var(--c-primary);
}

/* Review Button White Override */
.p-sec-review .c-sec-btn {
  color: #fff;
  border-color: #fff;
}
.p-sec-review .c-sec-btn:hover {
  background: #fff;
  color: var(--c-primary);
}

/* Grid Layouts */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-sec-review .c-card-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .c-card-grid,
  .p-sec-review .c-card-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .c-card-grid,
  .p-sec-review .c-card-grid {
    grid-template-columns: 1fr;
  }
}

.c-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  color: var(--c-text);
  transition: 0.3s;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}
.c-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.c-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.c-card:hover img {
  transform: scale(1.05);
}
.c-card__meta {
  font-size: 0.8rem;
}
.c-card__cat {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--c-primary);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 2px;
}
.c-card--review .c-card__cat {
  background: var(--c-accent);
}
.c-card__body {
  padding: 15px;
}
.c-card__title {
  font-size: 15px;
  font-weight: bold;
  margin: 0;
  line-height: 1.5;
  height: 3em;
  overflow: hidden;
}
.c-review-stars {
  display: block;
  color: var(--c-accent);
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

/* =========================================
   5. Sidebar
   ========================================= */
.l-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin: 60px auto 80px;
}
.l-main {
  min-width: 0;
  width: 100%; /* 念のため */
}

@media (max-width: 900px) {
  .l-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

.c-widget {
  background: #fff;
  padding: 25px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}
.c-widget__title {
  font-size: 16px;
  font-weight: bold;
  border-bottom: 2px solid var(--c-primary);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.c-ranking-item {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: flex-start;
  border-bottom: 1px solid #f5f5f5;
  padding-bottom: 15px;
}
.c-ranking-num {
  width: 24px;
  height: 24px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.c-ranking-num.rank-1 {
  background-color: #c5a059 !important;
}
.c-ranking-num.rank-2 {
  background-color: #7a7a7a !important;
}
.c-ranking-num.rank-3 {
  background-color: #a05a2c !important;
}
.c-ranking-thumb {
  width: 90px;
  height: 65px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
}
.c-ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-ranking-info {
  flex: 1;
  min-width: 0;
}
.c-ranking-title {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================
   6. Archive List
   ========================================= */
.c-page-head {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}
.c-page-title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: bold;
  color: var(--c-primary);
}
.c-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.c-list-card {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: var(--radius);
  transition: 0.3s;
}
@media (max-width: 600px) {
  .c-list-card {
    flex-direction: column;
    gap: 15px;
  }
}
.c-list-card:hover {
  border-color: var(--c-primary);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.c-list-img {
  width: 240px;
  height: 150px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 600px) {
  .c-list-img {
    width: 100%;
    height: 180px;
  }
}
.c-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-list-body {
  flex: 1;
  min-width: 0;
}
.c-list-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}
.c-list-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* ここで「2行」を指定 */
  overflow: hidden;
}
.c-list-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.c-list-badge {
  background: var(--c-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: bold;
}

.c-review-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.c-review-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 15px 20px;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: 0.2s;
}
.c-review-list-item:hover {
  background: #fdfdfd;
  border-color: var(--c-primary); /* ホバー色をメインカラーに統一 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.c-review-list-thumb {
  width: 140px; /* 横幅 */
  height: 90px; /* 高さ */
  flex-shrink: 0; /* 縮まないように */
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.c-review-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.c-review-list-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1; /* 余ったスペースを埋める */
  min-width: 0; /* テキスト省略のために必要 */
}
.c-review-list-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: var(--c-primary);
  line-height: 1.4;
  /* 長すぎる場合に省略するなら以下を有効化 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-review-list-star {
  font-size: 14px;
  font-weight: bold;
  color: var(--c-accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

.c-arrow-icon {
  color: #ccc;
  margin-left: auto; /* ★矢印を右端に固定 */
  transition: transform 0.2s;
}
.c-review-list-item:hover .c-arrow-icon {
  color: var(--c-primary);
  transform: translateX(3px);
}
@media (max-width: 600px) {
  .c-review-list-item {
    padding: 12px;
    gap: 12px;
  }
  .c-review-list-thumb {
    width: 90px;
    height: 65px;
  }
  .c-review-list-title {
    font-size: 14px;
  }
}
/* =========================================
   7. Single
   ========================================= */
.p-entry {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
@media (max-width: 768px) {
  .p-entry {
    padding: 20px;
  }
}
@media (max-width: 400px) {
  .p-entry {
    padding: 0;
    border: none;
    box-shadow: none;
  }
}
.p-entry__meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}
.p-entry__title {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 20px;
}
.p-entry__thumb {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.p-entry__content {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 40px;
}
.p-entry__content h2 {
  background: #f0f8ff;
  padding: 15px 20px;
  border-left: 5px solid var(--c-primary);
  font-size: clamp(18px, 4vw, 22px); 
  font-weight: bold;
  margin: 50px 0 30px;
}
.p-entry__content h3 {
  font-size: 18px;
  font-weight: bold;
  border-bottom: 2px solid #eee;
  margin: 40px 0 20px;
  padding-bottom: 5px;
}
.p-entry__content p {
  margin-bottom: 1.8em;
}

.p-score-box {
  background: #fff;
  border: 2px solid var(--c-accent);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}
.p-score-header {
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
@media (max-width: 600px) {
  .p-score-header {
    flex-direction: column;
  }
}
.p-score-total strong {
  font-size: 48px;
  color: var(--c-accent);
  line-height: 1;
}
.p-score-details {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.p-score-bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}
.p-score-bar span {
  display: block;
  height: 100%;
  background: var(--c-accent);
}

.p-merit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
@media (max-width: 600px) {
  .p-merit-grid {
    grid-template-columns: 1fr;
  }
}
.p-merit-box {
  padding: 20px;
  border-radius: 8px;
}
.p-merit-box.-good {
  background: #f0faff;
  border: 1px solid #bceeff;
}
.p-merit-box.-bad {
  background: #fff5f5;
  border: 1px solid #ffccd5;
}
.p-merit-box h4 {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 16px;
}

/* Footer */
.l-footer {
  background: var(--c-primary);
  color: #fff;
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
}
/* =========================================
   Ranking Article Components
   ========================================= */

/* ランキング全体枠 */
.p-rank-item {
  margin-bottom: 60px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* サービス名 (H2) */
.p-rank-head {
  background: #f9f9f9;
  padding: 15px 20px;
  border-bottom: 3px solid var(--c-primary);
  display: flex;
  align-items: center;
  gap: 15px;
}
.p-rank-head p {
  display: none;
}
@media (max-width: 480px) {
  .p-rank-head {
    flex-direction: column;
    gap: 0;
  }
}

.p-rank-badge {
  background: var(--c-primary);
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
/* 1〜3位の色分け */
.p-rank-item[data-rank="1"] .p-rank-badge {
  background: #c5a059;
  box-shadow: 0 2px 10px rgba(197, 160, 89, 0.4);
}
.p-rank-item[data-rank="2"] .p-rank-badge {
  background: #7a7a7a;
}
.p-rank-item[data-rank="3"] .p-rank-badge {
  background: #a05a2c;
}

.p-rank-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  font-size: 20px !important;
}

/* コンテンツエリア */
.p-rank-body {
  padding: 30px;
}
@media (max-width: 600px) {
  .p-rank-body {
    padding: 20px;
  }
}

/* 画像とテキスト */
.p-rank-flex {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}
@media (max-width: 600px) {
  .p-rank-flex {
    flex-direction: column;
    gap: 20px;
  }
}

.p-rank-img {
  width: 40%;
  flex-shrink: 0;
}
.p-rank-img img {
  width: 100%;
  height: auto;
  border: 1px solid #eee;
  border-radius: 4px;
}
.p-rank-desc {
  flex: 1;
  font-size: 15px;
  line-height: 1.8;
}

/* 評価ボックス */
.c-rank-score {
  background: #f0f8ff;
  border: 1px solid #bceeff;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
}
.c-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #cadbe6;
  padding: 8px 0;
}
.c-score-row:last-child {
  border-bottom: none;
}
.c-score-label {
  font-weight: bold;
  color: var(--c-primary);
  font-size: 18px;
}
.c-score-star {
  color: #f58220;
  font-weight: bold;
  letter-spacing: 2px;
}

/* 口コミボックス */
.c-rank-review {
  margin-bottom: 30px;
}
.c-review-box {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
}
.c-review-icon {
  width: 40px;
  height: 40px;
  background: #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}
.c-review-box.-good .c-review-icon {
  background: #e6f7ff;
  color: #007bff;
}
.c-review-box.-bad .c-review-icon {
  background: #fff0f0;
  color: #dc3545;
}

/* CVボタン */
.c-rank-btn-wrap {
  text-align: center;
}
.c-rank-btn {
  display: inline-block;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(135deg, #f58220 0%, #ff5e00 100%);
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 18px;
  border-radius: 50px;
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(245, 130, 32, 0.4);
  transition: transform 0.2s;
  position: relative;
}
.c-rank-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.5);
}
.c-rank-btn::after {
  content: "\e5c8"; /* chevron_right */
  font-family: "Material Icons Round";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.c-btn-sub {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  font-weight: normal;
  margin-bottom: 2px;
} /* =========================================
   Ranking Article Components (Vertical & Star Fix)
   ========================================= */

/* ランキング全体枠 */
.p-rank-item {
  margin-bottom: 50px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* ヘッダー */
.p-rank-head {
  background: #f9f9f9;
  padding: 15px 20px;
  border-bottom: 3px solid var(--c-primary);
  display: flex;
  align-items: center;
  gap: 15px;
}
.p-rank-badge {
  background: var(--c-primary);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.p-rank-item[data-rank="1"] .p-rank-badge {
  background: #c5a059;
}
.p-rank-item[data-rank="2"] .p-rank-badge {
  background: #7a7a7a;
}
.p-rank-item[data-rank="3"] .p-rank-badge {
  background: #a05a2c;
}

.p-rank-head h2 {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: bold !important;
  line-height: 1.3 !important;
}

/* === エリア1: 画像・導入文（確実に縦並び） === */
.p-rank-intro {
  display: block !important; /* 強制的に縦並び */
  margin-bottom: 25px;
}
.p-rank-img {
  width: 100%;
  margin: 0 0 15px 0;
}
.p-rank-img img {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border: 1px solid #eee;
  border-radius: 6px;
}
.p-rank-lead h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--c-accent);
  display: inline-block;
  padding-bottom: 3px;
}
.p-rank-lead p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 0;
}

/* === エリア2: メリット・デメリット表 === */
.p-rank-merit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}
@media (max-width: 600px) {
  .p-rank-merit-row {
    grid-template-columns: 1fr;
  }
}

.c-merit-box,
.c-demerit-box {
  padding: 15px;
  border-radius: 6px;
}
.c-merit-box {
  background: #f0faff;
  border: 1px solid #bceeff;
}
.c-demerit-box {
  background: #fff5f5;
  border: 1px solid #ffccd5;
}

.c-md-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  padding-bottom: 5px;
}
.c-md-list li {
  position: relative;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 5px;
}
.c-md-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.c-merit-box li::before {
  background: #007bff;
}
.c-demerit-box li::before {
  background: #dc3545;
}

/* === エリア3: 詳細評価（星ズレ修正版） === */
.c-rank-score-wrap {
  margin-bottom: 25px;
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 15px;
  border-radius: 6px;
}
.c-rank-score-wrap h4 {
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
}
.c-score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  text-align: center;
}
.c-score-item {
  background: #fff;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #eee;
}
.c-score-item p {
  display: none;
}
.c-score-label {
  display: block;
  font-size: 16px;
  color: #666;
  font-weight: bold;
  margin-bottom: 5px;
}
@media (max-width: 576px) {
  .c-score-grid {
    grid-template-columns: 1fr;
  }
}
/* ★星評価の修正（重ね合わせ） */
.c-score-star-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.c-star-rating {
  position: relative;
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  font-family: sans-serif; /* フォント統一でズレ防止 */
  color: #ddd; /* 背景の星（グレー） */
  white-space: nowrap;
}
.c-star-rating::before {
  content: "★★★★★";
  display: block;
}
.c-star-rating::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  width: var(--rating-width, 0%); /* HTMLで指定 */
  color: #f58220; /* 評価の星（オレンジ） */
}
.c-score-num {
  font-weight: bold;
  color: #333;
  font-size: 16px;
  margin-top: 4px;
}

/* === エリア4: おすすめな人 === */
.c-rank-recommend {
  border: 2px solid #f0f0f0;
  padding: 20px;
  margin-bottom: 25px;
  background: #fff;
  border-radius: 6px;
}
.c-rank-recommend h4 {
  font-size: 15px;
  font-weight: bold;
  color: var(--c-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 14px;
}
.c-check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 3px;
  color: #fff;
  background: var(--c-accent);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === エリア5: CVボタン（余白・Gap調整） === */
.c-rank-btn-wrap {
  text-align: center;
  /* Gapを削除し、マージンで制御 */
  display: block;
}
/* サブタイトル */
.c-btn-sub {
  display: block;
  font-size: 13px;
  font-weight: bold;
  color: var(--c-primary);
  margin-bottom: 5px; /* ここでボタンとの距離を調整 */
  line-height: 1.2;
}
/* ボタン本体 */
.c-rank-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, #f58220 0%, #ff5e00 100%);
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(245, 130, 32, 0.3);
  transition: transform 0.2s;
  position: relative;
  text-decoration: none;
}
.c-rank-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 15px rgba(245, 130, 32, 0.4);
}
.c-rank-btn::after {
  content: "\e5c8";
  font-family: "Material Icons Round";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* =========================================
   Pagination (角丸デザイン)
   ========================================= */
.c-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

/* リンクと現在のページ番号の共通スタイル */
.c-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px; /* ボタンの幅 */
  height: 44px; /* ボタンの高さ */
  border-radius: 6px; /* ★ここを変更：50%から6pxへ（角丸） */
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* ホバー時（マウスを乗せたとき） */
.c-pagination a.page-numbers:hover {
  background: #fdfdfd;
  border-color: var(--c-primary, #f58220);
  color: var(--c-primary, #f58220);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 現在のページ（オレンジ色に塗りつぶし） */
.c-pagination .page-numbers.current {
  background: var(--c-primary, #f58220);
  border-color: var(--c-primary, #f58220);
  color: #fff;
  pointer-events: none;
}

/* 「…」のデザイン */
.c-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  width: auto;
  height: auto;
  color: #999;
}

/* 矢印アイコン */
.c-pagination .material-icons-round {
  font-size: 20px;
  line-height: 1;
}
/* =========================================
   Breadcrumb (パンくずリスト)
   ========================================= */
.c-breadcrumb {
  background: #f9f9f9;
  padding: 12px 0;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #eee;
}

.c-breadcrumb__list {
  display: flex;
  flex-wrap: nowrap; /* 折り返さず横に並べる */
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto; /* スマホで横スクロール */
  white-space: nowrap; /* テキストを改行させない */
  -webkit-overflow-scrolling: touch; /* スクロールを滑らかに */
  scrollbar-width: none; /* Firefoxスクロールバー非表示 */
}
.c-breadcrumb__list::-webkit-scrollbar {
  display: none; /* Chrome/Safariスクロールバー非表示 */
}

.c-breadcrumb__item {
  display: flex;
  align-items: center;
}

/* 区切りアイコン (>) */
.c-breadcrumb__item:not(:last-child)::after {
  content: "\e5cc"; /* Material Icons: chevron_right */
  font-family: "Material Icons Round";
  font-size: 16px;
  color: #999;
  margin: 0 8px;
}

/* リンクのスタイル */
.c-breadcrumb__item a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.c-breadcrumb__item a:hover {
  color: var(--c-primary, #f58220);
  text-decoration: underline;
}

/* 現在のページ（最後） */
.c-breadcrumb__item:last-child {
  color: #333;
  font-weight: bold;
  pointer-events: none; /* クリック不可 */
}
/* =========================================
   Service Review Card (共通デザインへの追加)
   ========================================= */

/* 星評価の表示スタイル */
.c-list-star {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px; /* タイトルと抜粋の間 */
  font-weight: bold;
  color: var(--c-accent); /* オレンジ色 */
  font-size: 15px;
}

.c-list-star .star-icon {
  font-size: 18px;
  line-height: 1;
  color: #ffcc00; /* 星アイコンは黄色っぽく */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.c-list-star .star-val {
  color: var(--c-text);
  font-size: 16px;
  font-family: sans-serif;
}
/* =========================================
   Badge Colors (バッジの色分け)
   ========================================= */

/* 特集記事 (Feature) -> 緑色 */
.c-list-badge.feature {
  background: #2cb696; /* 好きな色に変えてOK */
  box-shadow: 0 2px 5px rgba(44, 182, 150, 0.3);
}

/* サービス評判 (Service Review) -> オレンジ */
/* ※ archive.php で表示されたとき用 */
.c-list-badge.service_review {
  background: var(--c-accent); /* #f58220 */
}

/* コラム (Post) -> デフォルトの紺色のまま */
.c-list-badge.post {
  background: var(--c-primary);
}

/* =========================================
   Post Navigation (前後記事)
   ========================================= */
.p-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}
@media (max-width: 600px) {
  .p-post-nav {
    flex-direction: column;
    gap: 15px;
  }
}

.p-post-nav div {
  flex: 1;
  min-width: 0; /* フレックスアイテムの縮小許可 */
}

/* リンクボタンのデザイン */
.p-post-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between; /* アイコンと文字を両端へ */
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 6px;
  color: #333;
  font-weight: bold;
  font-size: 14px;
  transition: 0.3s;
  height: 100%; /* 高さを揃える */
  border: 1px solid #eee;
}
.p-post-nav a:hover {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* テキスト部分 */
.p-post-nav a span:not(.material-icons-round) {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* PREV (左寄せ) */
.p-post-nav .prev a {
  text-align: left;
  justify-content: flex-start;
  gap: 10px;
}
/* NEXT (右寄せ) */
.p-post-nav .next a {
  text-align: right;
  justify-content: flex-end;
  gap: 10px;
}

/* =========================================
   Related Posts (関連記事)
   ========================================= */
.p-related {
  margin-top: 60px;
  background: #fdfdfd;
  padding: 40px 0 0; /* 上の余白を確保 */
  border-top: 4px solid #f0f0f0; /* 区切り線 */
}

.p-related-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  padding-left: 15px;
  border-left: 6px solid var(--c-accent); /* アクセントカラーの線 */
  line-height: 1.4;
  color: #333;
}
/* =========================================
   Related Posts Mobile (スマホで2列表示)
   ========================================= */
@media (max-width: 600px) {
  /* 関連記事エリア内のグリッドを2列にする */
  .p-related .c-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px; /* 間隔を少し狭める */
  }

  /* 2列だと狭くなるので、文字サイズと余白を調整 */
  .p-related .c-card__title {
    font-size: 12px; /* 少し小さく */
    line-height: 1.4;
    height: 2.8em; /* 2行で収める */
  }

  .p-related .c-card__body {
    padding: 10px; /* 余白を少し詰める */
  }

  /* カテゴリラベルも少し小さく */
  .p-related .c-card__cat {
    font-size: 9px;
    padding: 2px 6px;
  }
}
.copyright {
  font-size: 0.8rem;
}

/* =========================================
   検索結果ヘッダーの装飾
   ========================================= */
.c-page-head--search {
  background: #fff;
  padding: 40px 20px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center; /* 全体を中央寄せにしてタイトルっぽく */
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.c-search-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* カテゴリバッジの装飾 */
.c-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  color: #fff;
}
.c-search-badge .material-icons-round {
  font-size: 16px;
}

/* バッジの色分け（テーマのカラーに合わせる） */
.c-search-badge.-all { background: #666; }
.c-search-badge.-post { background: var(--c-primary); }
.c-search-badge.-feature { background: #2cb696; }
.c-search-badge.-service_review { background: var(--c-accent); }

.c-search-text {
  font-size: 14px;
  font-weight: bold;
  color: #666;
}

/* 検索キーワード部分 */
.c-page-head--search .c-page-title {
  border: none;
  padding: 0;
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  color: #333;
}

.c-search-keyword {
  color: var(--c-primary);
  position: relative;
  display: inline-block;
}
/* キーワードの下に薄い黄色のアンダーラインを引く */
.c-search-keyword::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(245, 130, 32, 0.2); /* アクセントカラーの透過 */
  z-index: -1;
}