@charset "utf-8";

.mainVisual-box {
  padding: 24px 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  order: -1;
}

.topVisual {
  position: relative;
  min-height: 360px;
  background: url("../image/serviceVisual.jpg") center/cover no-repeat; /* 画像パス */
  width: 100%;
  height: 300px;
  order: 0;
}

.top-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Source Serif 4", serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 6.8rem);
  color: #fff;
  text-align: center;
  line-height: 1.15;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  padding: 0 4vw;
}
.top-subtitle {
  position: absolute;
  width: 100%;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  color: #fff;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  letter-spacing: 0.06em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  text-align: center;
}
/* =========================================
   Profile セクション
   - SP: 縦並び
   - PC: 横並び（画像＋テキスト）
========================================= */
.p-index_profile {
  max-width: 1100px;
  margin: 10px auto 48px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr; /* SP縦並び */
  gap: 28px;
}

/* 名前＋画像（左側） */
.p-index_profile .NameImg {
  display: grid;
  gap: 16px;
}
.p-index_profile .NameImg h2 {
  font-weight: 800;
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.4rem, 2.8vw, 3.2rem);
  line-height: 1.2;
  color: var(--primary-navy); /* 濃紺 */
}
.p-index_profile .NameImg h2 span {
  margin-left: 10px;
  font-weight: 600;
  font-size: 0.9em;
  color: var(--primary-navy); /* 英字は少し明るめ */
}
.p-index_profile .NameImg img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* テキストカード（右側） */
.p-index_profile .NameTxt {
  display: grid;
  gap: 16px;
}

/* 共通カード */
.p-index_profile .academic,
.p-index_profile .certification {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
  padding: 18px 18px 16px;
}

/* カード内 見出し（青ラベル風） */
.p-index_profile .academic_title,
.p-index_profile .certification_title {
  display: inline-block;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* 本文 */
.p-index_profile .academic_txt {
  font-size: 1.5rem;
  line-height: 1.7;
  font-weight: 600;
}
.p-index_profile .certification {
  font-size: 1.5rem;
  line-height: 1.7;
  font-weight: 600;
}
.certification-txt span {
  font-size: 1.4rem;
  font-weight: 400;
}
.p-index_profile .certification span {
  font-size: 0.92em;
  color: #4a4a4a;
}

/* PCで横並びに */
@media (min-width: 768px) {
  .p-index_profile {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "heading heading"
      "image   right";
    row-gap: 16px;
    align-items: start;
  }

  .p-index_profile .NameImg {
    display: contents;
  }

  .p-index_profile .NameImg h2 {
    grid-area: heading;
    margin-bottom: 0;
  }

  .p-index_profile .NameImg img {
    grid-area: image;
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  }

  .p-index_profile .NameTxt {
    grid-area: right;
    align-self: start;
  }
}

/* =========================================
   Resume セクション
========================================= */
.p-index_resume {
  max-width: 1100px;
  margin: 40px auto 96px;
  padding: 0 20px;
}
.p-index_resume > h2 {
  text-align: center;
  font-family: "Source Serif 4", serif;
  font-weight: 800;
  font-size: 4rem;
  color: #153a6b;
  margin-bottom: 18px;
}
.p-index_resume .ResumeBox {
  display: grid;
  gap: 14px;
}

/* 各ボックス（白＋角丸＋赤ライン） */
.p-index_resume .ResumeBox > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  padding: 16px 18px 18px;
  position: relative;
}

/* 年号は見出しの上段に配置 */
.resume_year {
  display: block;
  background: #a61f2e;
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  margin: -16px -18px 12px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  z-index: 1;
}

.resume_txt {
  margin-top: 16px;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1b1b1b;
}
.p-index_resume h5 {
  margin-top: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #153a6b;
}
.p-index_resume p {
  font-size: 1.5rem;
  line-height: 1.7;
}

/* 余白微調整（PC） */
@media (min-width: 768px) {
  .p-index_resume .ResumeBox {
    gap: 16px;
  }
  .brSP {
    display: none;
  }
  .top-subtitle {
    font-size: 2.8rem;
  }
}
