@charset "utf-8";

/* =================================================
  Top Only
================================================= */

/* =========================
  Hero
========================= */

/* フォールバック（画像が読めない等の保険） */
.hero{
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: linear-gradient(90deg, var(--hero-bg), var(--hero-bg2));
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 18% 40%, rgba(255,255,255,.14), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.08), transparent 55%);
  pointer-events:none;
  opacity:.65;
}

.hero__inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hero__copy{
  color:#fff;
  padding-left:6px;
  align-self:center;
}

.hero__title{
  margin: 0 0 30px;
  font-family: "Noto Sans JP", sans-serif;
  color: #ffffff;
  font-size: clamp(30px, 4.5vw, 70px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.hero__lead{
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color:#fff; /* 修正：#fff) → #fff */
  font-size: clamp(13px, 1.4vw, 50px);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.1em;
  text-shadow: 0 6px 18px rgba(0,0,0,.2);
}

/* 円画像の影（トップ専用の最終上書き） */
.hero__circle-img{
  box-shadow: -15px 14px 40px rgba(0, 89, 178, 0.35);
}


/* =========================
  Cases（Top）
========================= */
.section--cases{
  position: relative;
  background: url("../images/top/cases-bg.webp") center / cover no-repeat;
}

.cases{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap:18px;
  align-items:center;
}
.cases__left .section__desc{ margin-bottom:60px; }

.case-card{
  background:#E9F7FA;
  border:1px solid rgba(229,231,235,.85);
  overflow:hidden;
  min-width:0;
  padding:30px;
}

.case-card__media{
  aspect-ratio: 16 / 9;
  background:#f1f5f9;
}
.case-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.case-card__body{ padding:14px 0 16px; }

.case-card__tag{
  display:inline-block;
  font-family: "Google Sans", sans-serif;
  font-size:16px;
  font-weight:500;
  background: #2CAED0;
  color:#fff;
  padding:0 10px;
  margin-bottom:8px;
}

.case-card__title{
  margin:0 0 10px;
  font-family: "Noto Sans JP", sans-serif;
  color:#333;
  font-size:21px;
  font-weight:600;
  line-height:1.7;
  letter-spacing:0.05em;
}

.case-card__meta{
  margin:0;
  font-family: "Noto Sans JP", sans-serif;
  color:var(--muted);
  font-size:16px;
  font-weight:400;
  line-height:1.7;
  letter-spacing:0.1em;
}
.case-card__meta-row{
  display:grid;
  grid-template-columns: 100px 1fr;
  gap:20px;
}

.case-card__meta dd{ margin:0; }


/* =========================
  News（Top）
========================= */
.section--news{ padding-top:42px; }

.news{
  margin:12px 0 0;
  padding:0;
  list-style:none;
}

.news__item{
  display:flex;            /* grid → flex */
  flex-direction:column;   /* 縦並び */
  gap:6px;                 /* 日付と文章の間隔 */
  padding:40px 0;
  border-bottom:1px solid var(--line);
}

.news__date{
  font-family: "Noto Sans JP", sans-serif;
  font-size:14px;
  font-weight:500;
  color:#777;
}

.news__text{
  margin:0;
  font-family: "Noto Sans JP", sans-serif;
  font-size:17px;
  font-weight:400;
  line-height:1.7;
  color:var(--text);
}


/* =========================
  Company banner（Top）
========================= */
.company-banner{
  position:relative;
  padding:56px 0;
  color:#fff;
  background: url("../images/top/company-bg.webp") center/cover no-repeat;
  overflow:hidden;
}

.company-banner__inner{
  position:relative;
  text-align:center;
}
.company-banner__en{
  margin:0;
  font-family: "Google Sans", sans-serif;
  font-weight:900;
  letter-spacing:.04em;
  font-size:56px;
}
.company-banner__jp{
  margin:0 0 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size:36px;
  font-weight:600;
  line-height:1.7;
  color:#fff;
}


/* =========================
  Split panels（Top）
========================= */
.section--split{ padding-top:52px; }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;  /* ← 採用情報とお問い合わせの間隔 */
  row-gap: 18px;     /* ← 縦方向（SP縦並び時） */
  align-items:start;
}

.section--split .split{
  max-width:1300px;
  margin-inline:auto;
}

.panel{
  padding:0;
}
.panel .section__kicker{ margin-bottom:6px; }
.panel .section__title{ margin-bottom:40px; }

.panel__media{
  overflow:hidden;
  background:#f1f5f9;
  aspect-ratio: 16 / 9;
  margin: 0 0 12px;
}
.panel__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.section--split .panel .section__title + *{
  line-height: 1.7;
  min-height: calc(1.7em * 3); /* ← 最大行数に合わせて調整（例：3行） */
  margin: 0 0 12px;
}


/* =========================
  PC（>=769px）
========================= */
@media (min-width: 769px){
  .hero{
    --circle-size: clamp(560px, 60vw, 920px);
    overflow: visible;
    min-height: clamp(500px, 54vw, 840px);
    display: flex;
    align-items: center;
    padding: 0;
    background:
      linear-gradient(rgba(44,174,208,0.75), rgba(44,174,208,0.75)),
      url("../images/top/hero-bg.webp") center / cover no-repeat;
  }

  .hero__inner{
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    padding-left: 16px;
    position: static;
  }

  .hero__circle{
    position: absolute;
    top: 0;
    right: 0;
    width: var(--circle-size);
    height: var(--circle-size);
    transform: translateX(10%);
    pointer-events: none;
    z-index: 2;
  }

  .hero__circle-img{
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    border-radius: 50%;
    object-fit: cover;
  }

  .company-banner{
    min-height: 500px;   /* 背景の高さ */
    padding: 0;          /* 高さ管理を padding から切り離す */
    display: flex;
    align-items: center; /* 中身を縦中央に */
  }
}


/* =========================
  SP（<=768px）
========================= */
@media (max-width: 768px){
  .hero{
    background:
      linear-gradient(rgba(44,174,208,0.75), rgba(44,174,208,0.75)),
      url("../images/top/hero-bg.webp") center / cover no-repeat;
  }

  .hero__inner{
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .hero__circle{
    position: static;
    transform: none;
    overflow: visible;
    pointer-events: none;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero__circle-img{
    width: min(92vw, 420px);
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    max-width: none;
  }

  /* Cases：SPは縦積み */
  .cases{
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cases__left .section__desc{ margin-bottom:30px; }

  .case-card{
    padding:20px;
  }

  .case-card__tag{
    display:inline-block;
    font-family: "Google Sans", sans-serif;
    font-size:10px;
    font-weight:500;
    background: #2CAED0;
    color:#fff;
    padding:0 10px;
    margin-bottom:8px;
  }

  .case-card__title{
    margin:0 0 10px;
    font-family: "Noto Sans JP", sans-serif;
    color:#333;
    font-size:18px;
    font-weight:600;
    line-height:1.7;
    letter-spacing:0.05em;
  }

  .case-card__meta{
    margin:0;
    font-family: "Noto Sans JP", sans-serif;
    color:var(--muted);
    font-size:13px;
    font-weight:400;
    line-height:1.7;
    letter-spacing:0.1em;
  }

  .case-card__meta-row{
    display:grid;
    grid-template-columns: 45px 1fr;
    gap:8px;
  }

  /* News：SP */
  .news__item{
    padding:25px 0;
  }

  .news__date{
    font-family: "Noto Sans JP", sans-serif;
    font-size:11px;
    font-weight:500;
    color:#777;
  }

  .news__text{
    margin:0;
    font-family: "Noto Sans JP", sans-serif;
    font-size:13px;
    font-weight:400;
    line-height:1.7;
    color:var(--text);
  }

  .company-banner__en{
    font-size:20px;
  }
  .company-banner__jp{
    margin:0 0 18px;
    font-size:12px;
  }

  .panel .section__title{
    margin-bottom:24px;
  }

  .split{
    grid-template-columns: 1fr; /* ← 1列にする */
    row-gap: 32px;              /* ← 縦並び時の間隔（好みで調整） */
  }

  .section--split .split{
    max-width: 80%;     /* ← SPだけ少し細く */
    margin-inline: auto;
  }
}
