/* ============================================================
   company.css – 会社概要ページ固有スタイル
   ============================================================ */

/* ---------- COMPANY MESSAGE ---------- */
.co-message__title {
  margin-bottom: 2.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .co-message__title {
    font-size: 1.875rem;
  }
}

.co-message__body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.co-message__body p {
  line-height: 2;
  color: var(--muted-foreground);
}

.co-message__sign {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.co-message__sign-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.co-message__sign-name {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

/* ---------- PHILOSOPHY ---------- */
.philosophy__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .philosophy__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.philosophy__card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2rem;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

@media (min-width: 768px) {
  .philosophy__card {
    padding: 2.5rem 2.5rem 3rem;
  }
}

.philosophy__card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--upro-orange-rgb), 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(var(--upro-orange-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Top shine line */
.philosophy__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

/* Hover glow background */
.philosophy__card-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  opacity: 0.4;
  transition: opacity 0.4s;
}

.philosophy__card:hover .philosophy__card-bg {
  opacity: 1;
}

.philosophy__card-bg--1 {
  background: radial-gradient(ellipse at 20% 0%, rgba(var(--upro-orange-rgb), 0.15), transparent 70%);
}

.philosophy__card-bg--2 {
  background: radial-gradient(ellipse at 20% 0%, rgba(245, 158, 11, 0.15), transparent 70%);
}

.philosophy__card-bg--3 {
  background: radial-gradient(ellipse at 20% 0%, rgba(249, 115, 22, 0.15), transparent 70%);
}

/* Big number */
.philosophy__number {
  position: relative;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.4s;
}

.philosophy__card:hover .philosophy__number {
  background: linear-gradient(
    180deg,
    rgba(var(--upro-orange-rgb), 0.3) 0%,
    rgba(var(--upro-orange-rgb), 0.08) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

/* Icon */
.philosophy__icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(var(--upro-orange-rgb), 0.12);
  border: 1px solid rgba(var(--upro-orange-rgb), 0.2);
  color: var(--upro-orange);
  margin-bottom: 1.5rem;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.philosophy__card:hover .philosophy__icon {
  background: rgba(var(--upro-orange-rgb), 0.18);
  border-color: rgba(var(--upro-orange-rgb), 0.35);
  box-shadow: 0 0 20px rgba(var(--upro-orange-rgb), 0.15);
}

.philosophy__icon svg {
  width: 24px;
  height: 24px;
}

/* Title & text */
.philosophy__card-title {
  position: relative;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.philosophy__card-text {
  position: relative;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
}

/* Bottom accent line */
.philosophy__card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 30%;
  background: linear-gradient(90deg, var(--upro-orange), transparent);
  opacity: 0.4;
  transition: width 0.5s, opacity 0.5s;
}

.philosophy__card:hover .philosophy__card-line {
  width: 100%;
  opacity: 1;
  background: linear-gradient(90deg, var(--upro-orange), rgba(var(--upro-orange-rgb), 0.3));
}

/* ---------- HISTORY ---------- */
.history__timeline {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
}

.history__line {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 126px;
  width: 2px;
  background: var(--border);
}

@media (min-width: 768px) {
  .history__line {
    display: block;
  }
}

.history__item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

@media (min-width: 768px) {
  .history__item {
    gap: 2rem;
  }
}

.history__year {
  display: none;
  width: 88px;
  flex-shrink: 0;
  padding-top: 2px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .history__year {
    display: block;
  }
}

.history__year--mobile {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .history__year--mobile {
    display: none;
  }
}

.history__dot {
  display: none;
  position: relative;
  z-index: 10;
  margin-top: 6px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid var(--upro-orange);
  background: var(--background);
}

@media (min-width: 768px) {
  .history__dot {
    display: block;
  }
}

.history__dot--first {
  background: var(--upro-orange);
  box-shadow: 0 0 0 4px rgba(var(--upro-orange-rgb), 0.12);
}

.history__body {
  flex: 1;
}

.history__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.history__text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------- COMPANY INFO (detail) ---------- */
.co-info__table {
  max-width: 768px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.co-info__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  transition: background 0.2s;
}

.co-info__row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.co-info__row:hover {
  background: rgba(var(--upro-orange-rgb), 0.03);
}

@media (min-width: 768px) {
  .co-info__row {
    grid-template-columns: 200px 1fr;
  }
}

.co-info__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--upro-dim);
  padding: 1rem 1.5rem 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .co-info__label {
    padding: 1.25rem 1.75rem;
  }
}

.co-info__label-dot {
  display: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--upro-orange);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .co-info__label-dot {
    display: block;
  }
}

.co-info__value {
  padding: 0.25rem 1.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .co-info__value {
    padding: 1.25rem 1.75rem;
  }
}

/* ---------- ACCESS ---------- */
.access__grid {
  max-width: 768px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .access__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.access__card {
  display: flex;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  padding: 1.5rem;
  transition: all 0.2s;
}

.access__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.access__card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(var(--upro-orange-rgb), 0.06);
  color: var(--upro-orange);
}

.access__card-icon svg {
  width: 18px;
  height: 18px;
}

.access__card-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.access__card-address {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

/* ---------- Company Table (shared with index) ---------- */
.company-table {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--background);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.company-table__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 1rem 1.5rem;
  transition: background 0.2s;
}

.company-table__row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.company-table__row:hover {
  background: var(--upro-dim);
}

@media (min-width: 768px) {
  .company-table__row {
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
  }
}

.company-table__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.company-table__label-dot {
  display: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--upro-orange);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .company-table__label-dot {
    display: block;
  }
}

.company-table__value {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.company__more {
  margin-top: 2rem;
  text-align: center;
}
