/* ============================
   Hero
============================ */

.hero {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  padding: 50px 0;

  background:
    linear-gradient(135deg,
      #fafaff 0%,
      #ffffff 55%,
      #f4f2ff 100%);
}

/* 紫の光 */

.hero::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 85% 35%,
      rgba(106, 92, 255, .06),
      transparent 50%);

  pointer-events: none;
  z-index: 0;
}

/* 背景レイヤー */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 都市背景 */
.hero-city {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to left,
      rgba(244, 242, 255, 0) 0%,
      rgba(244, 242, 255, .1) 30%,
      rgba(244, 242, 255, .4) 60%),
    url("/images/city.png");

  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;

  opacity: 1;

  z-index: 0;

  mask-image:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, .5) 85%,
      transparent 100%);

  -webkit-mask-image:
    linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 1) 70%,
      rgba(0, 0, 0, .5) 85%,
      transparent 100%);
}

.hero::before {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 280px;

  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, .4),
      rgba(255, 255, 255, .85),
      #fff);

  pointer-events: none;
  z-index: 1;
}

/* 三角形 */

.hero-svg {
  position: absolute;
  right: -50px;
  top: 50%;

  width: 800px;
  height: 800px;

  transform: translateY(-50%);

  background-image: url("/images/3kcolor.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: .85;

  animation: tiltPulse 9s ease-in-out infinite;
}

/* コンテンツ */

.hero .inner {
  position: relative;
  z-index: 2;

  min-height: 720px;

  display: flex;
  align-items: center;
}

.hero-text {
  width: min(90%, 850px);
  transform: translateY(-60px);
}

.hero-text h1 {
  font-size: clamp(60px, 5vw, 88px);
  line-height: 1.1;
  font-weight: 700;
  color: #222;
}

.hero-accent {
  color: #6a5cff;
}

.hero-text h1 .right-align {
  display: block;
}

.hero-text h2 {
  margin-top: 32px;
  font-size: clamp(18px, 2vw, 24px);
  text-align: left;
}

.sp-only {
  display: none;
}

.hero-text .sub {
  font-size: 16px;
  line-height: 1.7;

  text-align: left;

  max-width: 600px;
  margin: 36px 0 0;
}

.hero-text .sub span {
  display: block;
}

/* アニメーション */

@keyframes tiltPulse {

  0% {
    transform: translateY(-50%) rotate(0deg) scale(1);
  }

  50% {
    transform: translateY(-50%) rotate(20deg) scale(1.12);
  }

  100% {
    transform: translateY(-50%) rotate(0deg) scale(1);
  }

}

/* ============================
   SP Hero
============================ */

@media (max-width:768px) {

  .hero {
    min-height: auto;
    padding: 30px 0;
  }

  .hero .inner {
    min-height: auto;
  }

  .hero-text {
    width: 95%;
    transform: none;
  }

  .hero-text h1 {
    font-size: 34px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .hero-text h2 {
    font-size: 20px;
    text-align: left;
  }

  .sp-only {
    display: block;
  }

  .hero-text .sub {
    font-size: 16px;
    line-height: 1.8;

    max-width: 100%;

    margin-top: 30px;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-text .sub span {
    display: block;
    margin-bottom: 12px;
  }

  .hero-text .sub span:last-child {
    margin-bottom: 0;
  }

  .hero-svg {
    width: 400px;
    height: 400px;

    right: -100px;
    top: 48%;

    opacity: .75;
  }

  .hero-city {
    position: absolute;
    inset: 0;

    background:
      linear-gradient(to left,
        rgba(244, 242, 255, 0) 0%,
        rgba(244, 242, 255, .15) 35%,
        rgba(244, 242, 255, .45) 65%),
      url("/images/city.png");

    background-repeat: no-repeat;
    background-position: center -150px;
    background-size: cover;

    opacity: 1;

    z-index: 0;

    mask-image:
      linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 45%,
        rgba(0, 0, 0, .7) 60%,
        rgba(0, 0, 0, .2) 75%,
        transparent 90%);

    -webkit-mask-image:
      linear-gradient(to bottom,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 1) 45%,
        rgba(0, 0, 0, .7) 60%,
        rgba(0, 0, 0, .2) 75%,
        transparent 90%);
  }


}

/* ============================
   News
============================ */

#news {
  padding: 50px 0;
}

.news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 32px;
}

.news-head h2 {
  font-size: 32px;
}

.news-head a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 24px;

  padding: 24px 12px;

  border-bottom: 1px solid #e5e5e5;

  color: inherit;
  text-decoration: none;

  border-radius: 16px;

  transition: all 0.25s ease;
}

.news-item .date {
  min-width: 110px;
  color: #666;
}

.news-item .category {
  transition: all 0.25s ease;
}

.news-item:hover .category {
  transform: scale(1.05);
}

.news-item .title {
  flex: 1;
}

.news-item:hover {
  background: #f8f7ff;

  transform: translateY(-3px);

  box-shadow: 0 8px 24px rgba(106, 92, 255, 0.08);

  color: #6a5cff;
}

.news-heading {
  display: flex;
  flex-direction: column;
}

.news-heading h1 {
  font-size: 42px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.news-heading p {
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {

  #news {
    padding: 30px 0;
  }

  .news-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .news-heading h1 {
    font-size: 36px;
  }

  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

}


/* ============================
   MVV
============================ */
#mvv {
  padding: 50px 0;
}

.mvv-header {
  text-align: center;
  margin-bottom: 48px;
}

#mvv h2 {
  font-size: 32px;
  text-align: center;
}

.mvv-block {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mvv-block:last-child {
  margin-bottom: 0;
}

.mvv-card {
  flex: 0 0 320px;
  padding: 28px;
  border-radius: 26px;
}



.mvv-card.mission {
  background: #E684C3;
  border: none;
}

.mvv-card.vision {
  background: #7CE6D7;
  border: none;
}

.mvv-card.value {
  background: #F7DC69;
  border: none;
}

.mvv-title {
  font-weight: bold;
  font-size: 17px;
  line-height: 1.6;
}

.mvv-content {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  max-width: 900px;
  /* MVV も安全に横並び維持 */
}

.mvv-content ul {
  padding-left: 24px;
}

/* ============================
   SP MVV
============================ */
@media (max-width: 768px) {

  #mvv {
    padding: 30px 0;
  }

  .mvv-header {
    margin-bottom: 32px;
  }

  .mvv-block {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
  }

  .mvv-card {
    flex: none;
    width: 100%;
  }

  .mvv-title {
    font-size: 15px;
    line-height: 1.6;
  }

  .mvv-card {
    padding: 24px 20px;
  }

}

/* ============================
   Evaluation
============================ */
#evaluation {
  padding: 50px 0;
}

.evaluation-header {
  text-align: center;
  margin-bottom: 48px;
}

#evaluation h2 {
  font-size: 32px;
  text-align: center;
}

.eval-block {
  margin-bottom: 60px;
}

.eval-block:last-child {
  margin-bottom: 0;
}

.card-two-split {
  position: relative;
  background: #fff;
  max-width: 1000px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;

  padding: 40px;
}

.card-two-split::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 24px;
  border: 2px solid rgba(0, 0, 0, 0.05);

  pointer-events: none;
}

.card-left h3 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.card-left p {
  font-size: 16px;
  line-height: 1.8;
}

.card-right img {
  width: 100%;
  height: 100%;

  border-radius: 16px;
  object-fit: cover;
}

.evaluation-card .common-buttons {
  justify-content: flex-start;
}

.evaluation-card .common-buttons .btn {
  width: fit-content;
  min-width: 340px;
}

/* ============================
   SP Evaluation
============================ */
@media (max-width: 768px) {

  #evaluation {
    padding: 30px 0;
  }

  .evaluation-header {
    margin-bottom: 32px;
  }


  .eval-block {
    margin-bottom: 30px;
  }

  .card-two-split {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .card-left h3 {
    font-size: 22px;
  }

  .card-right {
    order: -1;
  }

  .card-right img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .evaluation-card .common-buttons .btn {
    width: 100%;
    max-width: 300px;
    min-width: 0;
  }

  #evaluation .common-buttons {
    margin-top: 20px;
    ;
  }

}

/* ============================
   Benefits
============================ */

#benefits {
  padding: 50px 0;
}

.benefits-header {
  text-align: center;
  margin-bottom: 48px;
}

#benefits h2 {
  font-size: 32px;
  text-align: center;
}

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

/* 福利厚生カード */

.grid .card-base {
  text-align: center;
  padding: 24px;
}

/* 画像 */

.benefit-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 18px;
  margin-bottom: 16px;
}

/* タイトル */

.grid .card-base p {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

/* ============================
   SP Benefits
============================ */

/* タブレット */

@media (max-width: 1024px) {

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

}

/* スマホ */

@media (max-width: 768px) {

  #benefits {
    padding: 30px 0;
  }

  .benefits-header {
    text-align: center;
    margin-bottom: 32px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .benefit-img {
    height: 200px;
  }

  .grid .card-base {
    padding: 20px;
  }

  .grid .card-base p {
    font-size: 16px;
  }

  #benefits h2 {
    line-height: 1.4;
  }

}

/* ============================
   SES DATA
============================ */

#ses-data {
  padding: 50px 0;
}

.ses-header {
  text-align: center;
  margin-bottom: 48px;
}

#ses-data h2 {
  font-size: 32px;
  text-align: center;
}

.ses-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 30px;

  margin-bottom: 30px;
}

.stat-card {
  background: #fff;

  padding: 32px;

  border-radius: 24px;

  text-align: center;

  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.stat-card h3 {
  font-size: 16px;

  margin-bottom: 20px;

  color: #666;
}

.counter {
  font-size: 56px;

  font-weight: 700;

  color: #6a5cff;
}

.stat-card span {
  font-size: 18px;
}

.ses-chart-wrap {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;
}

.ses-chart,
.ses-pie {
  background: #fff;

  padding: 40px;

  border-radius: 24px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.ses-chart h3,
.ses-pie h3 {
  margin-bottom: 32px;
}

.bar-item {
  display: grid;

  grid-template-columns: 140px 1fr 60px;

  align-items: center;

  gap: 20px;

  margin-bottom: 20px;
}

.bar {
  height: 14px;

  background: #eee;

  border-radius: 999px;

  overflow: hidden;
}

.fill {
  width: 0;

  height: 100%;

  background: #6a5cff;

  border-radius: 999px;

  animation: fillBar 1.5s ease forwards;
}

@keyframes fillBar {
  to {
    width: var(--width);
  }
}

.donut {
  width: 220px;
  height: 220px;

  position: relative;

  border-radius: 50%;

  background:
    conic-gradient(#6a5cff 0 0,
      #9388ff 0 0,
      #c7c0ff 0 0,
      #ece9ff 0 100%);
}

.donut::after {
  content: "";

  position: absolute;

  inset: 45px;

  background: #fff;

  border-radius: 50%;
}

.ses-pie ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ses-pie li {
  margin-bottom: 12px;
}

.ses-pie-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.pie-legend {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pie-legend li {
  margin-bottom: 18px;
  font-size: 16px;
}

.donut-center {
  position: absolute;
  inset: 0;

  z-index: 2;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
}

.donut-center strong {
  font-size: 30px;
  font-weight: 700;
  color: #6a5cff;
  line-height: 1;
}

.donut-center span {
  margin-top: 8px;
  font-size: 16px;
  color: #666;
}

/* SP */

@media (max-width:768px) {

  #ses-data {
    padding: 30px 0;
  }

  .ses-header {
    text-align: center;
    margin-bottom: 32px;
  }

  .ses-stats {
    grid-template-columns: 1fr;
  }

  .ses-chart-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .counter {
    font-size: 42px;
  }

  .bar-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ses-pie-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .donut {
    width: 180px;
    height: 180px;
  }

  .pie-legend {
    width: 100%;
    text-align: center;
  }

  .donut::after {
    inset: 30px;
  }
}

/* ============================
   Services
============================ */

#services {
  padding: 50px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-header h2 {
  font-size: 32px;
}

.services-header p {
  max-width: 720px;
  margin: 0 auto;

  line-height: 2;
  color: #666;
}

.service-card {

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;

  margin-bottom: 120px;

  color: inherit;
  text-decoration: none;
}

.service-card.reverse .service-image {
  order: 2;
}

.service-card.reverse .service-content {
  order: 1;
}

.service-image {
  overflow: hidden;
  border-radius: 24px;
}

.service-image img {
  width: 100%;
  display: block;

  aspect-ratio: 16 / 10;
  object-fit: cover;

  transition: transform .5s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-content {
  position: relative;
}

.service-en {
  display: block;

  color: #6a5cff;

  font-size: 13px;
  letter-spacing: .18em;

  margin-bottom: 12px;
}

.service-content h3 {
  font-size: 34px;
  margin-bottom: 20px;
}

.service-content p {
  line-height: 2;
  color: #555;

  margin-bottom: 20px;
}

.service-content ul {
  color:#555;
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 10px 20px;

  margin-bottom: 30px;

  list-style: none;
}

.service-content ul li::before {
  content: "■";
  color: #6a5cff;
  margin-right: 8px;
}

.service-link {
  display: inline-block;

  font-weight: 700;

  transition: .2s;
}

.service-card:hover .service-link {
  color: #6a5cff;
  transform: translateX(6px);
}

@media (max-width: 768px) {

  #services {
    padding: 30px 0;
  }

  .services-header {
    text-align: center;
    margin-bottom: 32px;
  }

  .services-header h2 {
    font-size: 32px;
  }

  .service-card {
    grid-template-columns: 1fr;
    gap: 20px;

    margin-bottom: 80px;
  }

  .service-card.reverse .service-image,
  .service-card.reverse .service-content {
    order: unset;
  }

  .service-content h3 {
    font-size: 26px;
  }

  .service-content ul {
    grid-template-columns: 1fr;
    gap: 5px 20px;
  }

}