/* =========================================================
   Hashimoto Masayuki / Profile page
   Page-specific classes only: .hm-profile-*
   ========================================================= */

.hm-profile-main {
  overflow: hidden;
  color: var(--hm-text);
  background: #fff;
}

.hm-profile-shell {
  width: min(1190px, calc(100% - 48px));
  margin-inline: auto;
}

.hm-profile-kicker {
  margin: 0 0 14px;
  color: var(--hm-accent);
  font-family: var(--hm-en-serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .22em;
}

.hm-profile-heading-line {
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 24px;
  background: var(--hm-accent);
}

.hm-profile-section-heading h2 {
  margin: 0;
  color: var(--hm-heading);
  font-family: var(--hm-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .05em;
}

/* Hero --------------------------------------------------- */
.hm-profile-hero {
  position: relative;
  min-height: 355px;
  isolation: isolate;
}

.hm-profile-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/profile/profile-hero.png") center 30% / cover no-repeat;
      margin-top: -110px;
}

.hm-profile-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 23%, rgba(255,255,255,.22) 54%, rgba(255,255,255,0) 72%);
}

.hm-profile-hero__inner {
  width: min(1120px, calc(100% - 48px));
  min-height: 355px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 3px;
}

.hm-profile-hero__title {
  margin: 0;
  color: var(--hm-main);
  font-family: var(--hm-serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .08em;
}

.hm-profile-hero__lead {
  margin: 34px 0 0;
  color: #233a56;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .05em;
}

/* Intro -------------------------------------------------- */
.hm-profile-intro {
  padding: 92px 0 79px;
  background: #fff;
}

.hm-profile-intro__grid {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  align-items: center;
  gap: 57px;
}

.hm-profile-intro__portrait-wrap {
  width: 370px;
  height: 460px;
  overflow: hidden;
  background: #fafafa;
}

.hm-profile-intro__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hm-profile-intro__position {
  margin: 0 0 32px;
  color: #18314f;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
}

.hm-profile-intro__name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 20px 8px;
}

.hm-profile-intro__name {
  margin: 0;
  color: var(--hm-main);
  font-family: var(--hm-serif);
  font-size: 68px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .08em;
}

.hm-profile-intro__kana {
  margin: 0;
  color: #1b3350;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: .04em;
}

.hm-profile-intro__lead {
  margin: 64px 0 0;
  color: #283e58;
  font-size: 17px;
  font-weight: 600;
  line-height: 2.2;
  letter-spacing: .05em;
}

/* Local story ------------------------------------------- */
.hm-profile-local {
  position: relative;
  padding: 88px 0 89px;
  background: #f5f5f5;
}



.hm-profile-local__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: center;
  gap: 55px;
}

.hm-profile-local__title {
  margin: 0;
  color: var(--hm-main);
  font-family: var(--hm-serif);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: .07em;
}

.hm-profile-local__text {
  margin-top: 48px;
  color: #4f6072;
  font-size: 16px;
  font-weight:500;
  line-height: 2.15;
  letter-spacing: .04em;
}

.hm-profile-local__text p { margin: 0; }
.hm-profile-local__text p + p { margin-top: 23px; }

.hm-profile-local__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hm-profile-local__photo {
  width: 100%;
  height: 164px;
  object-fit: cover;
  border-radius: 4px;
}

.hm-profile-local__photo--wide {
  grid-column: 1 / -1;
  height: 236px;
}

/* Positions --------------------------------------------- */
.hm-profile-positions {
  padding: 104px 0 135px;
  background: #fff;
}

.hm-profile-positions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 82px;
}

.hm-profile-position-card {
  min-height: 250px;
  padding: 34px 24px 28px;
  border-top: 4px solid #173b66;
  background: #f8f9fc;
  box-shadow: 0 12px 32px rgba(17, 43, 77, .06);
}

.hm-profile-position-card h3 {
  margin: 0 0 34px;
  color: #18314f;
  font-family: var(--hm-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
}

.hm-profile-position-card p {
  margin: 0;
  color: #536476;
  font-size: 16px;
  font-weight: 900;
  line-height: 2;
}
/*背景画像*/
.hm-profile-position-card p + p { margin-top: 9px; }
.hm-profile-local__decoration {
  position: absolute;
  width: 720px;
  height: 720px;
  left: 20%;
  top: -4%;
opacity: .7;

  background: url('/wp-content/themes/swell_child/assets/images/top/nagano.png');

 
  overflow: hidden;

  pointer-events: none;
}

/* Career ------------------------------------------------ */
.hm-profile-career {
  padding: 0 0 112px;
  background: #fff;
}

.hm-profile-career__timeline {
  position: relative;
  margin-top: 84px;
  padding-left: 48px;
}

.hm-profile-career__timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 36px;
  width: 2px;
  background: #e5d9ba;
}

.hm-profile-career-card {
  position: relative;
  min-height: 175px;
  padding: 36px 42px 34px;
  border: 1px solid #ebeff2;
  border-radius: 8px;
  background: #fafafa;
  box-shadow: 0 10px 24px rgba(14,42,74,.035);
}

.hm-profile-career-card::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  left: -43px;
  top: 30px;
  border-radius: 50%;
  background: #b99b55;
  box-shadow: 0 0 0 5px #fff;
}

.hm-profile-career-card + .hm-profile-career-card { margin-top: 28px; }

.hm-profile-career-card h3 {
  margin: 0 0 22px;
  color: #17324f;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
}

.hm-profile-career-card p {
  margin: 0;
  color: #526274;
  font-size: 16px;
  font-weight:500;
  line-height: 1.95;
  letter-spacing: .02em;
}

.hm-profile-career-card p + p { margin-top: 4px; }

/* Gallery ----------------------------------------------- */
.hm-profile-gallery {
  padding: 92px 0 62px;
  background: #f5f5f5;
}

.hm-profile-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.hm-profile-gallery__grid img {
  width: 100%;
  height: 230px !important;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 13px 24px rgba(18, 43, 72, .10);
}

/* Support CTA ------------------------------------------- */
.hm-profile-support-cta {
  padding: 63px 24px 66px;
  text-align: center;
  color: #fff;
  background: #00203a;
}

.hm-profile-support-cta__inner {
  width: min(900px, 100%);
  margin-inline: auto;
}

.hm-profile-support-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--hm-serif);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .12em;
}

.hm-profile-support-cta p {
  margin: 21px 0 0;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .05em;
}

.hm-profile-support-cta__button {
  width: 225px;
  min-height: 52px;
  margin: 35px auto 0;
  padding: 0 21px 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #123454 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Responsive -------------------------------------------- */
@media (max-width: 1000px) {
  .hm-profile-intro__grid { grid-template-columns: 300px 1fr; gap: 48px; }
  .hm-profile-intro__portrait-wrap { width: 300px; height: 373px; }
  .hm-profile-intro__name { font-size: 42px; }
  .hm-profile-local__grid { grid-template-columns: 1fr 440px; gap: 44px; }
  .hm-profile-local__photo--wide { height: 210px; }
  .hm-profile-local__photo { height: 150px; }
  .hm-profile-position-card { padding-inline: 25px; }
}

@media (max-width: 767px) {
  .hm-profile-shell { width: calc(100% - 40px); }

  .hm-profile-hero,
  .hm-profile-hero__inner { min-height: 300px; }
  .hm-profile-hero__bg { background-position: 63% center; }
  .hm-profile-hero::after { background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.78) 58%, rgba(255,255,255,.12)); }
  .hm-profile-hero__title { font-size: 38px; }
  .hm-profile-hero__lead { width: 70%; margin-top: 28px; font-size: 14px; }

  .hm-profile-intro { padding: 70px 0 72px; }
  .hm-profile-intro__grid { grid-template-columns: 1fr; gap: 42px; }
  .hm-profile-intro__portrait-wrap { width: min(320px, 84vw); height: auto; aspect-ratio: 370 / 460; margin-inline: auto; }
  .hm-profile-intro__position { font-size: 16px; margin-bottom: 22px; }
  .hm-profile-intro__name-row { gap: 9px 16px; }
  .hm-profile-intro__name { font-size: 38px; }
  .hm-profile-intro__kana { font-size: 14px; }
  .hm-profile-intro__lead { margin-top: 34px; font-size: 16px; line-height: 2; }

  .hm-profile-local { padding: 72px 0; }
  .hm-profile-local__decoration { width: 360px; height: 360px; left: 48%; top: 32%; border-width: 55px; }
  .hm-profile-local__grid { grid-template-columns: 1fr; gap: 44px; }
  .hm-profile-local__title { font-size: 32px; }
  .hm-profile-local__text { font-size: 14px; line-height: 2; }
  .hm-profile-local__text br { display: none; }
  .hm-profile-local__photos { gap: 10px; }
  .hm-profile-local__photo--wide { height: 190px; }
  .hm-profile-local__photo { height: 120px; }

  .hm-profile-positions { padding: 72px 0 82px; }
  .hm-profile-section-heading h2 { font-size: 30px; }
  .hm-profile-positions__grid { grid-template-columns: 1fr; gap: 20px; margin-top: 52px; }
  .hm-profile-position-card { min-height: 0; padding: 32px 26px 30px; }
  .hm-profile-position-card h3 { margin-bottom: 20px; font-size: 22px; }
  .hm-profile-position-card p { font-size: 14px; }

  .hm-profile-career { padding-bottom: 78px; }
  .hm-profile-career__timeline { margin-top: 54px; padding-left: 30px; }
  .hm-profile-career__timeline::before { left: 7px; }
  .hm-profile-career-card { padding: 28px 22px 27px; }
  .hm-profile-career-card::before { left: -29px; width: 11px; height: 11px; }
  .hm-profile-career-card h3 { font-size: 18px; }
  .hm-profile-career-card p { font-size: 14px; }

  .hm-profile-gallery { padding: 68px 0 76px; }
  .hm-profile-gallery__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 48px; }
  .hm-profile-gallery__grid img { height: 230px; }

  .hm-profile-support-cta { padding: 52px 20px 55px; }
  .hm-profile-support-cta h2 { font-size: 25px; letter-spacing: .08em; }
  .hm-profile-support-cta p { font-size: 13px; }
}
.hm-profile-local__photo--wide {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hm-profile-local__photos .hm-profile-local__photo:not(.hm-profile-local__photo--wide) {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}


/* ========================================
   PROFILE / FIELDWORK
======================================== */

.hm-profile-fieldwork {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  background:
    linear-gradient(
      135deg,
      #eef7fb 0%,
      #f7fbfd 48%,
      #edf6fa 100%
    );
}


/* 下部の風景背景 */
.hm-profile-fieldwork::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 390px;
background-image:
  linear-gradient(
    to bottom,
    rgba(238, 247, 251, 1) 0%,
    rgba(238, 247, 251, 0.95) 20%,
    rgba(238, 247, 251, 0.82) 40%,
    rgba(238, 247, 251, 0.58) 65%,
    rgba(238, 247, 251, 0.3) 85%,
    rgba(238, 247, 251, 0.12) 100%
  ),
    var(--fieldwork-bg);
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
    transform: scaleX(-1);
}


.hm-profile-fieldwork__inner {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(60px, 6vw, 110px);

}


/* ==============================
   LEFT
============================== */

.hm-profile-fieldwork__content {
  padding-left: 4px;
}


.hm-profile-fieldwork__kicker {
  margin: 0 0 18px;

  color: #b79b5b;

  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.25em;
}


.hm-profile-fieldwork__title {
  margin: 0;

  color: #001a57;

  font-family: "Noto Serif JP", serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.04em;
}


.hm-profile-fieldwork__line {
  display: block;

  width: 36px;
  height: 1px;

  margin: 28px 0 30px;

  background: #b79b5b;
}


.hm-profile-fieldwork__text {
  max-width: 440px;

  color: #16345f;

  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.03em;
}


.hm-profile-fieldwork__text p {
  margin: 0;
}


.hm-profile-fieldwork__text p + p {
  margin-top: 12px;
}


/* ==============================
   RIGHT / GALLERY
============================== */

.hm-profile-fieldwork__gallery {
  width: 100%;
}


.hm-profile-fieldwork__photo {
  position: relative;

  overflow: hidden;

  margin: 0;

  background: #dce7ec;
}


.hm-profile-fieldwork__photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;


}








/* 下2枚 */
.hm-profile-fieldwork__subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;

  margin-top: 6px;
}





/* 写真下部の暗めグラデーション */
.hm-profile-fieldwork__photo::after {
  content: "";

  position: absolute;
  inset: auto 0 0;

  height: 42%;

  background:
    linear-gradient(
      to top,
      rgba(0, 20, 55, 0.48) 0%,
      rgba(0, 20, 55, 0.16) 62%,
      rgba(0, 20, 55, 0) 100%
    );

  pointer-events: none;
}


/* 写真上テキスト */
.hm-profile-fieldwork__photo figcaption {
  position: absolute;
  z-index: 2;

  right: 24px;
  bottom: 18px;

  margin: 0;

  color: #fff;

  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.7;
  letter-spacing: 0.03em;

  text-align: right;

  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(0, 0, 0, 0.15);
}


.hm-profile-fieldwork__photo--main figcaption {
  right: 28px;
  bottom: 20px;

  font-size: 15px;
}


/* ========================================
   TABLET
======================================== */

@media screen and (max-width: 1024px) {

  .hm-profile-fieldwork {
    padding: 90px 0 80px;
  }

  .hm-profile-fieldwork__inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 45px;
  }
.hm-profile-fieldwork__photo figcaption {
  
    right: 13px;
}

.hm-profile-fieldwork__title {
        font-size: 28px;
    }

  .hm-profile-fieldwork__text {
    font-size: 14px;
    line-height: 1.9;
  }

}


/* ========================================
   MOBILE
======================================== */

@media screen and (max-width: 767px) {

  .hm-profile-fieldwork {
    padding: 72px 0 65px;
  }


  .hm-profile-fieldwork::after {
    height: 130px;
  }


  .hm-profile-fieldwork__inner {
    display: block;
  }


  .hm-profile-fieldwork__content {
    margin-bottom: 44px;
  }


  .hm-profile-fieldwork__kicker {
    margin-bottom: 12px;

    font-size: 11px;
  }


  .hm-profile-fieldwork__title {
    font-size: 28px;
    line-height: 1.55;
  }


  .hm-profile-fieldwork__line {
    margin: 22px 0 24px;
  }


  .hm-profile-fieldwork__text {
    max-width: none;

    font-size: 14px;
    line-height: 1.9;
  }





  .hm-profile-fieldwork__subgrid {
    grid-template-columns: 1fr;
  }




  .hm-profile-fieldwork__photo figcaption,
  .hm-profile-fieldwork__photo--main figcaption {
    right: 16px;
    bottom: 14px;

    font-size: 12px;
    line-height: 1.65;
  }

}