
:root {
  --ues-yellow: #f2c300;
  --black: #111111;
  --dark-gray: #242424;
  --mid-gray: #666666;
  --light-gray: #f4f4f4;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  color: var(--black);
  line-height: 1.8;
  background: var(--white);
}

.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  position: relative;
  background:
    linear-gradient(120deg, rgba(0,0,0,0.92), rgba(28,28,28,0.86)),
    radial-gradient(circle at 80% 20%, rgba(242,195,0,0.30), transparent 28%);
  color: var(--white);
  padding: 130px 6vw 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: 40px;
  width: 700px;
  height: 700px;
  background: url("../img/ues_diamond.png") no-repeat center center;
  background-size: contain;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.label {
  display: inline-block;
  padding: 7px 16px;
  background: var(--ues-yellow);
  color: var(--black);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 88px);
  line-height: 1.12;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.hero h1 span {
  color: var(--ues-yellow);
  display: block;
}

.hero-copy {
  margin-top: 28px;
  max-width: 720px;
  font-size: clamp(16px, 2vw, 22px);
  color: #eeeeee;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}


.page-25th .btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--ues-yellow);
  font-weight: 700;
  transition: 0.25s;
  border-radius: 999px;
  text-decoration: none;
}

.page-25th .btn.primary {
  background: var(--ues-yellow);
  color: var(--black);
}

.page-25th .btn.secondary {
  color: var(--white);
}


.section {
  padding: 90px 6vw;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 36px;
}

.section-title .en {
  display: block;
  color: var(--ues-yellow);
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 8px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.35;
}

.lead {
  font-size: 18px;
  color: var(--dark-gray);
  max-width: 100%;
}

.dark {
  background: var(--black);
  color: var(--white);
}

.dark .lead {
  color: #dddddd;
}

.gray {
  background: var(--light-gray);
}

.message-box {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
  align-items: center;
}

.message-quote {
  margin-top: 36px;
  padding-left: 22px;
  border-left: 3px solid var(--ues-yellow);
  font-size: 20px;
  line-height: 2;
  font-weight: 700;
  color: #fff;
}

.message-sign {
  margin-top: 26px;
  text-align: right;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
}

.message-photo {
  max-width: 320px;
  margin-left: auto;
}

.message-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 24px;
  background: var(--white);
  border-left: 5px solid var(--ues-yellow);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.timeline-year {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark-gray);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  padding: 28px;
  border-top: 5px solid var(--ues-yellow);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.business-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.business-list span {
  display: block;
  background: var(--dark-gray);
  color: var(--white);
  padding: 14px 12px;
  text-align: center;
  font-weight: 700;
  border-bottom: 4px solid var(--ues-yellow);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.people-card {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  border-radius: 4px;
}

.people-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.people-card p {
  margin: 0;
  padding: 18px;
  font-weight: 700;
  text-align: center;
}


/* 25th page fine tuning */
.hero {
  padding-top: 190px;
}

.history-nextstage__lead {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: 700;
  color: rgba(0,0,0,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  margin-top: 40px;
  text-align: center;
}

.history-nextstage__title {
  position: relative;
  z-index: 2;
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 22px;
  color: rgba(0,0,0,0.72);
  text-align: center;
}

.history-nextstage__text {
  max-width: 760px;
  margin: 40px auto 52px;
  font-size: 20px;
  line-height: 2;
  color: #444;
  letter-spacing: 0.04em;
  text-align: center;
}

#people .lead {
  margin-bottom: 42px;
}


/* lead下の余白調整 */
#history .lead,
#future .lead,
#people .lead {
  margin-bottom: 48px;
}

/* NEXT STAGE 下テキスト */
.history-nextstage__text {
  margin-bottom: 52px;
}


@media (max-width: 900px) {
  .message-box,
  .cards {
    grid-template-columns: 1fr;
  }

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

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

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero {
    min-height: 560px;
    padding: 96px 6vw 72px;
    padding-top: 130px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .section {
    padding: 64px 6vw;
  }

  .lead {
    font-size: 16px;
  }

  .business-list,
  .people-grid {
    grid-template-columns: 1fr;
  }

  .message-quote {
    font-size: 16px;
    line-height: 1.9;
    padding-left: 16px;
  }

  .history-nextstage__lead {
    font-size: 17px;
  }

  .history-nextstage__title {
    font-size: 22px;
  }

  .history-nextstage__text {
    font-size: 16px;
  }

  #people .lead {
    margin-bottom: 30px;
  }
}



.page-25th h1,
.page-25th h2,
.page-25th h3,
.page-25th p {
  border: none;
  background: none;
}

.page-25th .section-title h2 {
  padding: 0;
  border: none;
  background: none;
}

.page-25th .card h3 {
  padding: 0;
  border: none;
  background: none;
  color: var(--black);
}

.page-25th .lead {
  margin: 0 0 48px;
  max-width: 100%;
}

.page-25th .hero h1 {
  color: var(--white);
}

.page-25th .hero-copy {
  margin-bottom: 0;
}

.page-25th .cards {
  margin-top: 48px;
}

.page-25th .history-nextstage__lead,
.page-25th .history-nextstage__title,
.page-25th .history-nextstage__text {
  text-align: center;
}


/* =========================
   25th 強制上書き
========================= */

.page-25th h2,
.page-25th h3 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.page-25th .section-title h2 {
  font-size: clamp(26px, 4vw, 44px) !important;
  line-height: 1.35 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.page-25th .card h3 {
  font-size: 22px !important;
  margin-bottom: 14px !important;
  color: var(--black) !important;
}

.page-25th p {
  margin-top: 0 !important;
}

.page-25th .lead {
  margin-bottom: 48px !important;
  max-width: 980px !important;
}

.page-25th .cards {
  margin-top: 48px !important;
}

.page-25th .history-nextstage__text {
  text-align: center !important;
  margin-bottom: 52px !important;
}

.page-25th .people-grid {
  margin-top: 42px !important;
}

/* 現行HPの見出し・ボタン装飾を25th内だけ解除 */
.page-25th .section-title h2,
.page-25th .card h3,
.page-25th .history-nextstage__title,
.page-25th .people-card p {
  background: none !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  padding-left: 0 !important;
}

.page-25th .section-title h2::before,
.page-25th .section-title h2::after,
.page-25th .card h3::before,
.page-25th .card h3::after,
.page-25th .history-nextstage__title::before,
.page-25th .history-nextstage__title::after {
  content: none !important;
  display: none !important;
}

/* FVボタンだけ25thデザインを強制 */
.page-25th .hero-buttons .btn {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 14px 28px !important;
  border: 1px solid var(--ues-yellow) !important;
  border-radius: 999px !important;
  background-image: none !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

.page-25th .hero-buttons .btn.primary {
  background: var(--ues-yellow) !important;
  color: var(--black) !important;
}

.page-25th .hero-buttons .btn.secondary {
  background: transparent !important;
  color: var(--white) !important;
}

/* 最終微調整 */

/* FV上の空き調整 */
.page-25th .hero {
  padding-top: 150px !important;
}

/* 25thページ内のフォントを読みやすく戻す */
.page-25th {
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif !important;
}

/* 図解まわりの余白 */
.page-25th .history-nextstage {
  margin-top: 92px !important;
}

/* 25年の実績と信頼〜 の上 */
.page-25th .history-nextstage__lead {
  margin-top: 18px !important;
}

/* 図解画像と下テキストの間 */
.page-25th .history-nextstage__text {
  margin-top: 58px !important;
}

.page-25th .message-quote {
  border-left: 3px solid #d9a300 !important;
  padding-left: 22px !important;
}