/* ============================================================
   PAGE-COMMON - 共通サービスページ CSS
   ============================================================ */

/* ========== PAGE HERO ========== */
.page-hero {
  background: var(--navy);
  padding: 140px 24px 96px;
  text-align: center;
}

.page-hero--sm {
  padding: 120px 24px 64px;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  margin: 16px 0 24px;
}

.page-hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, .7);
  line-height: 2;
}

/* ========== CURRENT NAV ========== */
.nav-pc .current {
  color: var(--blue);
  font-weight: 700;
}

/* ========== MESSAGE / LEAD ========== */
.about-message {
  max-width: 760px;
}

.message-text p {
  font-size: .97rem;
  color: var(--text-light);
  line-height: 2.1;
  margin-bottom: 1.2em;
}

.message-text strong {
  color: var(--blue);
  font-weight: 700;
}

/* ========== VALUES GRID (3col) ========== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.value-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--blue);
}

.value-num {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--blue);
  margin-bottom: 12px;
}

.value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 12px;
}

.value-desc {
  font-size: .87rem;
  color: var(--text-light);
  line-height: 1.9;
}

/* ========== FLOW LIST ========== */
.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  overflow: hidden;
}

.flow-item {
  background: transparent;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: auto;
  transition: background .2s;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  border-right: 1px solid rgba(255, 255, 255, .1);
}

.flow-item:last-child {
  border-right: none;
}

.flow-item:hover {
  background: rgba(100, 149, 237, .08);
}

.flow-step {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  background: rgba(100, 149, 237, .12);
  border: 1px solid rgba(100, 149, 237, .3);
  border-radius: 50px;
  padding: 5px 14px;
  width: fit-content;
}

.flow-body {
  flex: 1;
}

.flow-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.5;
}

.flow-desc {
  font-size: .87rem;
  color: rgba(255, 255, 255, .6);
  line-height: 1.9;
}

/* ========== COMPANY TABLE ========== */
.company-table {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-collapse: collapse;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 20px 28px;
  text-align: left;
  border-bottom: 1.5px solid var(--border);
  font-size: .92rem;
  line-height: 1.8;
}

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

.company-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--navy);
  width: 180px;
  white-space: nowrap;
}

.company-table td a {
  color: var(--blue);
  text-decoration: underline;
}

/* ========== WORKS GRID (full page) ========== */
.works-grid-full {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
}

/* ========== POLICY PAGE ========== */
.policy-body {
  max-width: 760px;
  margin: 0 auto;
}

.policy-body p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 1.6em;
}

.policy-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.4em 0 .8em;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
}

.policy-body ul {
  list-style: disc;
  padding-left: 1.8em;
  margin-bottom: 1.6em;
}

.policy-body ul li {
  font-size: .93rem;
  color: var(--text-light);
  line-height: 2;
}

.policy-body a {
  color: var(--blue);
  text-decoration: underline;
}

.policy-date {
  font-size: .82rem;
  color: var(--text-light);
  margin-top: 3em;
}

/* ========== SITEMAP PAGE ========== */
.sitemap-body {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sitemap-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  margin-bottom: 20px;
}

.sitemap-list li {
  border-bottom: 1px solid var(--border);
}

.sitemap-list li a {
  display: block;
  padding: 14px 8px;
  font-size: .95rem;
  color: var(--text);
  transition: color .2s, padding-left .2s;
}

.sitemap-list li a:hover {
  color: var(--blue);
  padding-left: 16px;
  opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .works-grid-full { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
  .page-hero { padding: 120px 20px 64px; }
  .values-grid,
  .values-grid.col2 { grid-template-columns: 1fr; }
  .works-grid-full { grid-template-columns: 1fr !important; }
  .flow-list { grid-template-columns: 1fr; }
  .flow-item { padding: 24px 20px; }
  .company-table th { width: 100px; }
  .company-table th,
  .company-table td { padding: 16px; }
}
