/* =========================================
   WORKS PAGE — Main wrapper
   ========================================= */
.works-main { flex: 1; margin: 0 30px; }

/* =========================================
   Works Hero
   ========================================= */
.works-hero { padding: 100px 100px; }

.works-hero__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.works-hero__logo-wrap {
  align-items: center;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 16px;
  width: 50%;
  margin-bottom: 24px;
}

/* min-width: 0 は Flex 上での収縮を有効にする（default auto だと width:402px 未満に縮まない） */
.works-hero__logo { height: auto; width: 402px; max-width: 100%; min-width: 0; }

.works-hero__label {
  color: #333;
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.4;
  flex-shrink: 0;
  white-space: nowrap;  /* 単語内では潰さない。入らなければ flex-wrap で行折返し */
}

.works-hero__sub { margin-bottom: 12px; }

.works-hero__tagline {
  color: #333;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 24px;
}

.works-hero__tagline2 {
  color: #333;
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 76px;
  text-align: center;
  margin-bottom: 40px;
}

.works-hero__img-wrap {
  align-items: center;
  display: flex;
  height: 358px;
  justify-content: center;
  max-width: 100%;
  width: 869px;
}

.works-hero__img { height: auto; max-width: 100%; width: 729px; }

.works-hero__richtext {
  color: #333;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 62px;
  padding: 0 10px;
  text-align: center;
  max-width: 954px;
  width: 100%;
}

.works-hero__richtext-title {
  color: #f40084;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.works-hero__richtext-body { font-size: 32px; font-family: var(--font-heading); }

.works-hero__deco {
  border-radius: 50%;
  height: auto;
  left: -123px;
  opacity: 0.2;
  position: absolute;
  top: auto;
  width: 500px;
  z-index: -3;
  pointer-events: none;
}

.works-hero__photo { border-radius: 21px; height: auto; margin: 31px 0 0 0; width: 677px; max-width: 100%; }

/* =========================================
   Company Section (worksページ版)
   ========================================= */
.company-section { background: #fff; margin: 40px 0 80px 0; padding: 0; width: 100%; }

.company-section__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 0;
  width: 100%;
}

.company-section__heading {
  color: #333;
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 56px 0;
}

.company-table { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 900px; }

.company-row {
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding: 20px 0;
  width: 100%;
}

.company-row__label {
  color: #333;
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  min-width: 140px;
}

.company-row__value { color: #333; font-family: var(--font-body); font-size: 20px; font-weight: 400; line-height: 1.4; }

.company-row__values { display: flex; flex-direction: column; gap: 4px; }

/* =========================================
   RESPONSIVE - TABLET
   ========================================= */
@media screen and (max-width: 840px) {
  .works-hero { padding: 80px 45px; }
  .works-hero__logo-wrap { width: 100%; }
  .works-hero__tagline,
  .works-hero__tagline2 { font-size: 22px; }
  .works-hero__richtext-title,
  .works-hero__richtext-body { font-size: 22px; }
  .company-row__label,
  .company-row__value { font-size: 15px; }
}

/* =========================================
   RESPONSIVE - MOBILE
   ========================================= */
@media screen and (max-width: 540px) {
  .works-main { margin: 0 10px; }
  .works-hero { padding: 50px 20px; }
  .works-hero__logo-wrap { width: 100%; }
  .works-hero__label { font-size: 20px; }
  .works-hero__tagline,
  .works-hero__tagline2 { font-size: 20px; }
  .works-hero__richtext-title,
  .works-hero__richtext-body { font-size: 20px; }
  .works-hero__img-wrap { height: 207px; }
  .company-row { flex-direction: column; gap: 8px; }
  .company-row__label { font-size: 15px; min-width: unset; }
  .company-row__value { font-size: 13px; }
  .company-section__heading { font-size: 36px; }
}
