/* ===== CARD ===== */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.card h2,
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ===== COMPANY TABLE ===== */
.card table {
  width: 100%;
  border-collapse: collapse;
}

.card table th,
.card table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card table th {
  width: 8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.card table tr:last-child th,
.card table tr:last-child td {
  border-bottom: none;
}

/* ===== GRID UTILITY ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
}

/* ===== ARCHIVE LAYOUT ===== */
.archive-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== POST LIST ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-list__link {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.post-list__img {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-list__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-list__link:hover .post-list__img img {
  transform: scale(1.05);
}

.post-list__body {
  flex: 1;
  min-width: 0;
}

.post-list__cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  color: var(--color-text-sub);
  margin-bottom: 0.5rem;
}

.post-list__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.post-list__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

.post-list__meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .post-list__link {
    flex-direction: column;
  }

  .post-list__img {
    width: 100%;
    height: 200px;
  }
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar__widget {
  background: var(--color-bg-warm);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.sidebar__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-text-sub);
}

.sidebar__cat-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
}

.sidebar__cat-list li:last-child {
  border-bottom: none;
}

.sidebar__cat-list a {
  display: flex;
  justify-content: space-between;
  transition: var(--transition);
}

.sidebar__cat-list a:hover {
  font-weight: 600;
}

.sidebar__recent {
  display: block;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sidebar__recent:last-child {
  border-bottom: none;
}

.sidebar__recent-date {
  font-size: 0.75rem;
  color: var(--color-text-sub);
  display: block;
  margin-bottom: 0.2rem;
}

.sidebar__recent-title {
  font-size: 0.875rem;
  line-height: 1.5;
}

.sidebar__recent:hover .sidebar__recent-title {
  text-decoration: underline;
}

/* ===== SINGLE ARTICLE ===== */
.single-hero {
  position: relative;
  margin-top: 72px;
  height: 60vh;
  min-height: 320px;
  max-height: 600px;
  overflow: hidden;
}

.single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.single-hero__body {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  width: 100%;
  padding: 0 var(--container-pad);
}

.single-hero__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ===== ENTRY CONTENT ===== */
.entry-content {
  max-width: 720px;
  line-height: 1.9;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content img {
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
}

.entry-content a {
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.entry-content a:hover {
  border-color: var(--color-text);
}

.entry-content ul,
.entry-content ol {
  list-style: initial;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.entry-content ol {
  list-style: decimal;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* ===== POST NAV ===== */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.post-nav__link {
  flex: 1;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: var(--transition);
  display: block;
}

.post-nav__link:hover {
  border-color: var(--color-text);
}

.post-nav__link--next {
  text-align: right;
}

.post-nav__dir {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-sub);
  margin-bottom: 0.25rem;
}

/* ===== ARCHIVE HERO ===== */
.archive-hero {
  padding-top: calc(72px + 4rem);
  padding-bottom: 3rem;
}

.archive-hero .section__en {
  margin-bottom: 0.5rem;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
  min-height: 36px;
}

.filter-tab:hover,
.filter-tab.is-active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--color-bg-dark);
  color: var(--color-white);
  text-align: center;
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.cta-section__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section__text {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2.5rem;
}

.cta-section .section__en {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.75rem;
}

/* ===== POST META ===== */
.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  color: var(--color-text-sub);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.post-meta__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  padding: 0.15rem 0.6rem;
  color: var(--color-text-sub);
}

/* =========================================
   Product Page - CV特化スタイル
   ========================================= */
.product-pains {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}
.product-pains ul {
  list-style: none;
  padding: 0;
}
.product-pains ul li {
  padding: 0.75rem 0 0.75rem 2.5rem;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  font-size: 1.05rem;
}
.product-pains ul li:last-child { border-bottom: none; }
.product-pains ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e53e3e;
  font-weight: bold;
  font-size: 1.2rem;
}

.product-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-benefit-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.product-benefit-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #1a1a2e;
}

.product-comparison {
  overflow-x: auto;
  margin: 2rem 0;
}
.product-comparison table {
  width: 100%;
  border-collapse: collapse;
}
.product-comparison th {
  background: #1a1a2e;
  color: #fff;
  padding: 0.9rem 1rem;
  text-align: left;
}
.product-comparison td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eee;
}
.product-comparison tr:nth-child(even) td { background: #f9f9f9; }
.product-comparison td.before { color: #999; }
.product-comparison td.after { color: #1a6b2b; font-weight: 600; }

.product-usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-usecase-card {
  background: #fff;
  border-left: 4px solid #1a1a2e;
  padding: 1.25rem 1.5rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.product-faq { margin: 2rem 0; }
.product-faq-item {
  border-bottom: 1px solid #e8e8e8;
  padding: 1.25rem 0;
}
.product-faq-item .q {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
}
.product-faq-item .a {
  color: #555;
  line-height: 1.7;
}

.product-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
  counter-reset: step;
}
.product-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #eee;
}
.product-step:last-child { border-bottom: none; }
.product-step-num {
  width: 40px;
  height: 40px;
  background: #1a1a2e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

.product-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.product-testimonial {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border-top: 3px solid #1a1a2e;
}
.product-testimonial .quote {
  font-style: italic;
  color: #333;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.product-testimonial .source {
  font-size: 0.9rem;
  color: #888;
  font-weight: 600;
}

.section-label {
  display: inline-block;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.why-us-item {
  padding: 1.25rem;
  border: 2px solid #1a1a2e;
  border-radius: 10px;
}
.why-us-item .why-label {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.25rem;
}
.why-us-item .why-value {
  font-weight: 700;
  color: #1a1a2e;
}

/* ===== case-card ===== */
.case-card {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.case-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.case-card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.case-card:hover .case-card__image img {
  transform: scale(1.05);
}
.case-card__content {
  padding: 1.25rem;
}
.case-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.case-card__excerpt {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===== breadcrumb ===== */
.breadcrumb {
  font-size: 0.8125rem;
  color: #999;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumb__item {
  display: inline-flex;
  align-items: center;
}
.breadcrumb a,
.breadcrumb__link {
  color: #666;
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover,
.breadcrumb__link:hover { color: #1a1a2e; }
.breadcrumb__separator {
  color: #bbb;
  margin: 0 0.4rem;
  font-size: 0.75rem;
}
.breadcrumb__item:last-child {
  color: #1a1a2e;
  font-weight: 500;
}

/* ===== CTA button ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 24px;
  min-width: 160px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  border: 2px solid transparent;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn--primary {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}
.btn--secondary {
  background: #fff;
  color: #1a1a2e;
  border-color: #1a1a2e;
}

/* ===== Philosophy Section ===== */
.philosophy-section {
  background: #0d0d0d;
  color: #e8e8e8;
  padding: 6rem 0;
}
.philosophy__lead {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 3rem;
  color: #fff;
}
.philosophy__stories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
  border-left: 2px solid rgba(255,255,255,0.15);
  padding-left: 2rem;
}
.philosophy__story p {
  font-size: clamp(0.9rem, 1.8vw, 1.0625rem);
  line-height: 2;
  color: rgba(255,255,255,0.72);
}
.philosophy__conclusion {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.9;
  color: #fff;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ===== Company Values ===== */
.company-values {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.company-value__item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}
.company-value__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.company-value__num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  flex-shrink: 0;
  width: 3rem;
  letter-spacing: -0.02em;
}
.company-value__body h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.company-value__body p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
}

/* ===== Company Header ===== */
.company-header {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--color-border);
}
.company-header__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
}
.company-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.company-header__sub {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  letter-spacing: 0.1em;
}

/* ===== MVV Sections ===== */
.mvv-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.mvv-section--dark {
  background: #0d0d0d;
  color: #e8e8e8;
  border-color: rgba(255,255,255,0.08);
}
.mvv-section--dark .mvv-block__label {
  color: rgba(255,255,255,0.4);
}
.mvv-section--dark .mvv-block__heading {
  color: #fff;
}
.mvv-section--dark .mvv-block__body p {
  color: rgba(255,255,255,0.65);
}
.mvv-section--warm {
  background: var(--color-bg-warm, #f8f7f4);
}
.mvv-block__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
  display: block;
}
.mvv-block__heading {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.mvv-block__body p {
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--color-text-secondary);
}
.mvv-block__body p + p {
  margin-top: 1.25rem;
}

/* ===== Value List ===== */
.value-list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.value-item:first-child {
  border-top: 1px solid var(--color-border);
}
.value-item__num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
  letter-spacing: -0.04em;
  padding-top: 0.25rem;
}
.value-item__body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  line-height: 1.4;
}
.value-item__body p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.9;
}

/* ===== Company Table ===== */
.company-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.company-table th,
.company-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.8;
  text-align: left;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}
.company-table th {
  width: 8rem;
  color: var(--color-text-sub);
  font-weight: 500;
  background: var(--color-bg-warm, #f8f7f4);
  white-space: nowrap;
}
.company-table td a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
