@media (min-width: 821px) {
  .j-profileGrid {
    max-width: 780px;
    margin: 0 auto 24px auto;
    display: grid;
    grid-template-columns: 330px minmax(280px, 360px);
    grid-template-areas:
      "photo profile"
      "intro intro";
    column-gap: 24px;
    row-gap: 24px;
    align-items: stretch;
    justify-content: center;
  }
  .j-profileCol--img {
    grid-area: photo;
    justify-self: stretch;
    align-self: stretch;
    display: flex;
  }
  .j-profileSpImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin: 0;
    display: block;
  }
  .j-profileCol--profile {
    grid-area: profile;
    padding-left: 0;
    max-width: 360px;
    align-self: stretch;
  }
  .j-badgeStub {
    width: 100%;
    max-width: none;
    padding-top: 0;
    text-align: left;
  }
  .j-profileIntroCard {
    grid-area: intro;
    width: min(100%, 760px);
    justify-self: center;
    font-size: clamp(14px, 1.1vw, 16px);
    padding: 0;
    margin-top: 8px;
  }
}
/* プロフィール3カラム（PC）・2カラム（SP）レイアウト */

/* プロフィール3カラム（PC）・2カラム（SP）レイアウト */
.j-profileGrid {
  width: 100%;
}

@media (max-width: 820px) {
  .j-profileGrid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .j-profileCol--img {
    width: auto;
  }
  .j-profileSpImg {
    width: 160px;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    display: block;
  }
  .j-profileCol--profile {
    width: 100%;
  }
  .j-profileIntroCard {
    width: 100%;
  }
}

/* jobs.css 固有の変数（common.css の変数と重複しないもののみ） */
:root {
  --j-border:     #d3d3d3;
  --j-ink:        #111;
  --j-muted:      #666;
  --j-wrap-narrow: 760px;
  --j-wrap-wide:   980px;
}


/* Hero */
.j-hero{
  background-image: url('../../img/job_top.jpg');
  height: clamp(260px, 67.5vw, 360px);
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.j-heroInner{
  padding: 0;
  height: 100%;
  text-align:center;
}
.j-heroTitle{
  margin:0;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: .04em;
}

/* Hero後のH1セクション */
.j-section--heroTitle{
  padding: 80px 0 0;
}
.j-section--heroTitle + .j-section{
  padding-top: 80px;
}
.j-section--heroTitle + .j-section .j-centerText{
  margin-top: 0;
}

.j-section--heroTitle .j-heroTitle{
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  color: #222;
  text-align: center;
  padding: 0;
}

/* Section */
.j-section{
  padding: 46px 0;
}

/* .j-section--white{ background: var(--j-white); } */
/* .j-section--gray{ background: var(--j-gray); } */

.j-sectionTitle{
  margin: 0 0 18px;
  text-align:center;
  font-size: 14px;
  letter-spacing: .03em;
  color: var(--j-ink);
}

/* PC/SPで改行位置を分けるための表示切替 */
.j-text-pc{ display: inline; }
.j-text-sp{ display: none; }

/* 連続する灰セクションの区切り線（過去やったやつのJobs版） */
/*
.j-section--gray + .j-section--gray{
  border-top: 1px solid #cfcfcf;
}
*/

/* 連続する灰セクションの区切り線（過去やったやつのJobs版） */
/*
.j-section--white + .j-section--white{
  border-top: 1px solid #c6c6c6;
}
*/

/* Center text under hero */
.j-centerText{
  text-align:center;
  margin-bottom: 20px;
}
.j-centerTitle{
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 44px;
}
.j-centerLead{
  font-size: 12px;
  color: var(--j-muted);
  line-height: 1.8;
}

/* Wrap */
.j-wrap{
  margin: 0 auto;
}
.j-wrap--narrow{ max-width: var(--j-wrap-narrow); }
.j-wrap--wide{ max-width: var(--j-wrap-wide); }

/* Cards (common) */
.j-card{
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* スライドイン初期状態 */
  opacity: 1;
  transform: none;
}
.j-card h3 {
  font-size: clamp(10px, 3vw, 16px);
  color: var(--j-ink);
  font-weight: 700;
  line-height: 1.2;
}
.j-card.slide-in {
  opacity: 1 !important;
  transform: translateX(0) !important;
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.j-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}
.j-card--white{
  background: #fff;
  border: 1px solid var(--j-border);
}
.j-card--outline{
  border: 1px solid var(--j-border);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.j-cardTitle{
  margin: 0;
  padding: 14px 16px 10px;
  font-size: 12px;
  color: var(--j-ink);
}
.j-cardTitle--center{
  text-align:center;
  padding-top: 16px;
}
.j-cardBody{
  padding: 12px 16px 16px;
}
.j-cardBody--grayFill{
  margin: 0 16px 16px;
  border-radius: 12px;
  background: #f5f5f5;
  padding: 12px 14px;
}
.j-cardBody p{
  margin: 0;
  font-size: 12px;
  color: var(--j-muted);
  line-height: 1.7;
}
.j-cardBody p + p{ margin-top: 6px; }

/* 1セクション目の丸角3カードを他ページとトーン統一 */
.j-wrap--narrow{
  display: grid;
  gap: 20px;
}

.j-wrap--narrow .j-card{
  position: relative;
  border-radius: 18px;
  border: 1px solid #e7ddd7;
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
  box-shadow: 0 10px 24px rgba(128, 108, 93, 0.08);
}

.j-wrap--narrow .j-card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #e6d4cb 0%, #ecd8dc 100%);
}

.j-wrap--narrow .j-cardTitle{
  padding: 20px 20px 12px;
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: #4f4743;
}

.j-wrap--narrow .j-cardBody--grayFill{
  margin: 0 20px 20px;
  border-radius: 14px;
  border: 1px solid #ebe3de;
  background: var(--page-bg);
  padding: 16px 16px;
}

.j-wrap--narrow .j-cardBody p{
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
  color: #5f5752;
}

.j-cardText{
  margin: 0;
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--j-muted);
  line-height: 1.7;
}
.j-cardText--center{
  text-align:center;
  padding: 0 16px 16px;
}

.j-card--detail {
  text-align: center;
}

/* Stack of 3 cards */
.j-wrap--narrow .j-card + .j-card{ margin-top: 0; }

/* 3/4 SP profile area */

/* 新プロフィールレイアウト */
.j-profileFlex {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 18px;
}
.j-profileName {
  margin: 0 0 12px;
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 700;
  color: #b96b4b;
  text-align: center;
}
.j-profileLabel {
  margin: 0 0 8px;
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 600;
  color: #444;
  text-align: center;
}
.j-profileList {
  margin: 0 0 12px;
  padding-left: 0;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  text-align: center;
  list-style-position: inside;
}
.j-profileList.j-profileList--leftEdge {
  display: inline-block;
  text-align: left;
  margin: 0 auto 12px;
}
.j-profileText {
  margin: 0 0 12px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.6;
  text-align: center;
}
.j-profileIntroCard {
  background: transparent;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.8;
  color: #5f5752;
  margin-top: 35px;
}
/* .j-profileIntroCard1{
  margin-top: 35px;
} */
.j-profileIntroCard2{
  margin-top: 35px;
}
.j-profileIntroCard strong {
  display: block;
  text-align: center;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1.45;
  margin: 0 0 6px;
  color: #444;
}

/* 写真 */
.j-profileSpImg{
  width: 90%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.j-photoStub{
  width: 140px;
  height: 170px;
  background: #dcdcdc;
  display:grid;
  place-items:center;
  color:#555;
  font-size: 12px;
}
/* 自己紹介ボックス */
.j-badgeStub{
  flex: 1;
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: var(--j-muted);
  line-height: 1.8;
  text-align: left;
}
.j-badgeStub > :last-child{
  margin-bottom: 0;
}
.j-profileSpText{
  margin-top: 18px;
  background: #f1f1f1;
  border-radius: 16px;
  padding: 16px;
  font-size: 12px;
  line-height: 1.8;
  color: var(--j-muted);
}

/* PC center panel */
.j-panelCenter{
  max-width: var(--j-wrap-wide);
  margin: 0 auto;
  border-radius: 18px;
  padding: 28px 18px;
}
.j-panelCenter--gray{
  background: #ededed;
}
.j-panelText{
  color: var(--j-muted);
  font-size: 12px;
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto;
}
.j-panelText--center{ text-align:center; }

/* 5/6 PC grid */
.j-grid2x2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.j-card--wideRow{
  margin-top: 16px;
  padding-bottom: 10px;
}
.j-list{
  margin: 0;
  padding: 0 0 16px 24px;
  color: var(--j-muted);
  font-size: 12px;
  line-height: 1.7;
}
.j-ol{
  margin: 0;
  padding: 0 0 16px 28px;
  color: var(--j-muted);
  font-size: 12px;
  line-height: 1.7;
}

/* スマホ版「詳細」だけ */
.jd-section{
  padding: 40px 16px;
  background: #fff;
}

.jd-title{
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(42px, 4.4vw, 58px);
  letter-spacing: .03em;
  color: #111;
}

/* 上2枚：PC/SPともに縦積み */
.jd-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
  max-width: var(--j-wrap-narrow);
  margin-left: auto;
  margin-right: auto;
}

.jd-detailPairs{
  max-width: var(--j-wrap-wide);
  margin: 40px auto;
}

.jd-detailPairs--pc{
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.jd-detailRow{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.jd-detailRow--reverse{
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.jd-detailRow--reverse .jd-detailImage{
  order: 2;
}

.jd-detailRow--reverse .jd-detailText{
  order: 1;
}

.jd-detailImage{
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.jd-detailImage img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.jd-detailText{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.jd-detailHead{
  margin: 0 0 25px;
  text-align: center;
  font-size: clamp(18px, 1.6vw, 24px);
  color: #111;
}

.jd-detailBody{
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.75;
  color: #666;
  margin-left: 35px;
}

.min-left{
  margin-left: 15px;
}

.jd-detailBody p{
  margin-bottom: 6px;
}

.jd-detailBody br{
  content: "";
  display: block;
  margin: 8px 0 12px;
}

.jd-detailPairs--sp{
  display: none;
}

.jd-detailStack{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* カード共通 */
.jd-card{
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.jd-cardHead{
  margin: 0 0 12px;
  text-align: center;
  font-size: 17px;
  color: #111;
}

.jd-cardBody{
  font-size: 15px;
  line-height: 1.75;
  color: #666;
}

.jd-cardBody p{
  margin: 0 0 6px;
}

.jd-pointLine{
  margin: 0 0 10px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-wrap: wrap;
}

.jd-pointMark{
  font-size: 1.28em;
  font-weight: 700;
  line-height: 1;
  color: #4f4743;
}

.jd-pointTitle{
  font-size: 1em;
  color: #5f5752;
}

.jd-pointNote{
  font-size: 0.88em;
  color: #7a726c;
}

.jd-underline{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 下の横長カード */
.jd-card--wide{
  padding: 16px;
  max-width: var(--j-wrap-wide);
  margin-left: auto;
  margin-right: auto;
  margin-top: 16px;
}

.jd-card--wide .jd-cardHead{
  font-size: clamp(18px, 1.6vw, 24px);
  margin-bottom: 10px;
}

.jd-card--wide .jd-cardBody{
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.75;
}

.jd-card--wide .jd-cardBody br{
  content: "";
  display: block;
  margin: 8px 0 12px;
}

.jd-cardHead--center{
  text-align: center;
}

.jd-cardBody--center{
  text-align: center;
}

.jd-gap{
  height: 14px;
}

/* 7/8 gray pills */
.j-grayPill{
  max-width: var(--j-wrap-narrow);
  margin: 0 auto;
  background: #f1e4cf;
  border-radius: 16px;
  padding: 16px;
  text-align:center;
  color: var(--j-muted);
  font-size: 22px;
  line-height: 1.8;
}

.j-cheerWrap{
  width: min(100%, 860px);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.j-cheerPhoto{
  margin: 0;
  width: clamp(160px, 15.5vw, 220px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  flex: 0 0 auto;
}

.j-cheerPhoto img{
  width: 130%;
  height: 130%;
  object-fit: cover;
  display: block;
}

.j-cheerBubble{
  position: relative;
  margin: 0;
  width: fit-content;
  max-width: 520px;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.6;
  text-align: center;
  border-radius: 24px;
  border: 1px solid #d8d3ce;
  box-shadow: 0 8px 20px rgba(122, 112, 104, 0.12);
  padding: 16px 20px;
}

.j-cheerAccent{
  color: #f39a17;
  font-size: clamp(20px, 1.75vw, 25px);
  font-weight: 700;
}

.j-cheerBubble::before{
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 24px;
  height: 24px;
  background: #f1e4cf;
  border-left: 1px solid #d8d3ce;
  border-top: 1px solid #d8d3ce;
  box-sizing: border-box;
}

/* Contact (same content, CSS differs SP/PC) */
.j-contactBox{
  border: 2px solid #333;
  border-radius: 26px;
  background: #fff;
  text-align:center;
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px;
}
.j-contactTitle{
  margin: 0 0 10px;
  font-size: 18px;
}
.j-contactSub{
  margin: 0;
  color: var(--j-muted);
  font-size: 12px;
  line-height: 1.7;
}
.j-contactBtns{
  display:flex;
  justify-content:center;
  gap: 14px;
  margin-top: 18px;
}
.j-back{
  text-align:center;
  margin-top: 16px;
}
.j-backLink{
  color: #777;
  text-decoration:none;
  border-bottom: 1px solid rgba(0,0,0,.18);
  padding-bottom: 2px;
  font-size: 12px;
}

/* Footer badge（画像の雰囲気：中央に丸っぽいバッジ） */
.j-footerBadge{
  width: 140px;
  margin: 0 auto 8px;
  background: rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 10px 10px;
}
.j-footerBadgeTitle{
  font-size: 12px;
}
.j-footerBadgeSub{
  font-size: 11px;
  color: rgba(0,0,0,.55);
}

/* スマホ版調整（820px以下） */
@media (max-width: 820px){
  .j-text-pc{ display: none; }
  .j-text-sp{ display: inline; }

  #jobs main .container{ padding-inline: clamp(18px, 6vw, 28px); }
  #jobs main h1{
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.35;
  }
  #jobs main h2{
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.35;
  }
  .j-section{
    padding: 40px 16px;
  }

  .j-heroInner{ padding: 0; }
  .j-heroTitle{ font-size: clamp(18px, 5vw, 24px); }
  .j-section--heroTitle{ padding: 44px 0 0; }
  .j-section--heroTitle + .j-section{ padding-top: 44px; }
  .j-section--heroTitle + .j-section .j-centerText{ margin-top: 0; }
  .j-section--heroTitle .j-heroTitle{ font-size: clamp(20px, 5.5vw, 26px); }
  .j-centerTitle{
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.6;
  }
  .j-cardTitle{
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.5;
    letter-spacing: 0;
  }
  .j-profileName{ font-size: clamp(20px, 5.8vw, 28px); }
  .j-profileLabel{ font-size: clamp(16px, 4.6vw, 20px); }
  .j-profileList,
  .j-profileText{
    font-size: clamp(15px, 4.1vw, 18px);
    line-height: 1.75;
  }
  .j-badgeStub,
  .j-profileName,
  .j-profileLabel,
  .j-profileList,
  .j-profileText,
  .j-profileIntroCard strong{
    text-align: center;
  }
  .j-profileList.j-profileList--leftEdge{ text-align: left; }
  .j-profileList{ list-style-position: inside; }
  .j-profileIntroCard strong{
    font-size: clamp(17px, 5vw, 21px);
    margin-bottom: 6px;
  }
  .jd-title{ font-size: clamp(24px, 7.8vw, 34px); }

  .j-wrap--narrow{ max-width: 520px; }
  .j-wrap--wide{ max-width: 520px; }

  .j-card{
    padding: 18px 16px;
  }

  .j-wrap--narrow .j-card{
    padding: 0;
    border-radius: 16px;
  }

  .j-wrap--narrow .j-cardTitle{
    padding: 16px 14px 10px;
    font-size: clamp(15px, 4vw, 20px);
    line-height: 1.45;
  }

  .j-wrap--narrow .j-cardBody--grayFill{
    margin: 0 14px 14px;
    padding: 12px 12px;
  }

  .j-wrap--narrow .j-cardBody p{
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.7;
  }

  .j-profileFlex {
    flex-direction: column;
    gap: 12px;
  }
  .j-badgeStub{
    width: 100%;
    /* align-items: flex-start; */
    text-align: left;
  }
  .j-profileSpImg{
    width: min(62vw, 220px);
    margin: 0 auto;
  }
  .j-profileIntroCard {
    margin-top: 35px;
    font-size: clamp(14px, 3.9vw, 17px);
    padding: 0;
  }

  .jd-grid{
    gap: 12px;
    margin-bottom: 12px;
  }

  .jd-detailPairs--pc{
    display: none;
  }

  .jd-detailPairs--sp{
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .jd-detailHead{
    text-align: center;
    font-size: clamp(18px, 5vw, 24px);
    margin-bottom: 25px;
  }

  .jd-detailBody{
    font-size: clamp(14px, 4vw, 18px);
    line-height: 1.7;
    text-align: left;
    padding: 0 24px;
  }

  .jd-detailImage{
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .jd-card--wide{
    max-width: var(--j-wrap-narrow);
  }

  .jd-card--wide .jd-cardHead{
    font-size: clamp(17px, 4.8vw, 22px);
  }

  .jd-card--wide .jd-cardBody{
    font-size: clamp(10px, 3vw, 15px);
  }

  .j-grayPill{
    padding: 14px 12px;
    font-size: 19px;
  }

  .j-cheerWrap{
    width: min(100%, 500px);
    gap: 25px;
    align-items: center;
    justify-content: center;
  }

  .j-cheerPhoto{
    width: min(20vw, 160px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
  }

  .j-cheerBubble{
    width: fit-content;
    max-width: 300px;
    font-size: clamp(16px, 4.1vw, 20px);
    text-align: center;
    line-height: 1.6;
    border-radius: 20px;
    padding: 12px 14px;
  }

  .j-cheerAccent{
    font-size: clamp(17px, 4.7vw, 21px);
  }

  .j-cheerBubble::before{
    left: -9px;
    width: 16px;
    height: 16px;
  }

  .j-contactBox{
    max-width: 520px;
    border-radius: 22px;
    padding: 20px 14px;
  }
  .j-contactTitle{ font-size: 16px; }
  .j-contactBtns{ gap: 12px; }
}

