@charset "UTF-8";

/* 下層共通KV。文字を除去した背景にHTMLの見出しを重ねる。 */
.page-hero {
  position: relative;
  isolation: isolate;
  --page-hero-height: clamp(320px, 27.2446vw, 420px);
  height: var(--page-hero-height);
  background: #fff;
}

.page-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: none;
  pointer-events: none;
  content: "";
}

.page-hero__copy {
  position: absolute;
  z-index: 2;
  top: 23%;
  left: 10.2%;
  width: 45%;
  margin: 0;
  padding: 0;
}

.page-hero__title {
  position: relative;
  display: table;
  margin: 0;
  padding-bottom: 10px;
  font-family: inherit;
  font-size: clamp(34px, 4.485vw, 58px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 1px;
}

.page-hero__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--color-accent) 80%, #ffac70 97%, transparent);
  content: "";
}

.page-hero__description {
  margin: 12px 0 0;
  font-size: var(--font-size-kv-description);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .5px;
}

.page-hero__picture,
.page-hero__image {
  display: block;
  width: 100%;
}

.page-hero__picture {
  height: 100%;
}

.page-hero__image {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.breadcrumbs {
  position: relative;
  z-index: 1;
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max-width));
  min-height: 28px;
  margin: -28px auto 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #555;
  font-size: 14px;
  line-height: 20px;
}

.breadcrumbs__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__list a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: inherit;
  text-decoration: none;
  transition: color var(--interaction-duration) ease;
}

.breadcrumbs__list a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .breadcrumbs__list a:hover {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 959px) {
  .page-hero {
    --page-hero-height: 350px;
    background: #fff;
  }

  .page-hero::before {
    background: linear-gradient(
      90deg,
      #fff 0%,
      rgb(255 255 255 / 96%) 20%,
      rgb(255 255 255 / 80%) 34%,
      rgb(255 255 255 / 28%) 48%,
      rgb(255 255 255 / 0%) 60%
    );
  }

  .page-hero__copy {
    top: 28px;
    left: var(--page-gutter);
    width: calc(100% - var(--page-gutter) * 2);
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
  }

  .page-hero__title {
    padding-bottom: 11px;
    color: var(--color-text);
    font-size: 34px;
    letter-spacing: 1px;
  }

  .page-hero__picture {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
  }

  .page-hero__image {
    position: absolute;
    left: 10%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 25% center;
  }

  .page-hero__description {
    margin-top: 14px;
    font-size: var(--font-size-body);
    line-height: 1.6;
  }

  .breadcrumbs {
    margin-top: 0;
    background: #fff;
  }

  .breadcrumbs__list {
    min-height: 44px;
  }

  .breadcrumbs__list a {
    min-height: 44px;
  }
}

/* プロフィール本文。TOPで確定した本文・見出しの規則を踏襲。 */
.profile-page {
  --profile-heading-font: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", serif;
  --profile-handwriting-font: "Klee", "Klee One", "Kiwi Maru", serif;
}

.profile-container {
  width: min(calc(100% - var(--page-gutter) * 2), var(--content-max-width));
  margin-inline: auto;
}

.profile-section {
  position: relative;
  isolation: isolate;
  scroll-margin-top: 24px;
}

.profile-section__heading {
  margin-bottom: 14px;
}

.profile-section__eyebrow {
  margin: 0 0 0 -16px;
  color: var(--color-accent);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: 17px;
  font-style: italic;
  line-height: 24px;
}

.profile-section__title {
  display: table;
  position: relative;
  margin: 0;
  padding-bottom: 8px;
  font-family: var(--profile-heading-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: 2px;
}

.profile-section__title::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 65%, #ffe2c7 95%, transparent);
  transform: rotate(-1deg);
  content: "";
}

.profile-section__heading--inline {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.profile-section__heading--inline .profile-section__title {
  padding-bottom: 0;
}

.profile-section__heading--inline .profile-section__title::after {
  content: none;
}

.profile-prose {
  font-size: var(--font-size-body);
  line-height: 24px;
  letter-spacing: .1px;
}

.profile-prose p {
  margin: 0;
}

.profile-prose p + p {
  margin-top: 6px;
}

.profile-nowrap {
  white-space: nowrap;
}

.profile-message {
  background: #fff;
}

.profile-message__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: end;
  padding-block: 22px 25px;
}

.profile-message__copy {
  min-width: 0;
}

.profile-message__signature {
  margin: 18px 0 0 34px;
  font-family: var(--profile-handwriting-font);
  font-size: 30px;
  line-height: 44px;
  letter-spacing: 3px;
}

.profile-message__portrait {
  position: relative;
  margin: 0;
}

.profile-message__portrait img {
  display: block;
  width: 235px;
  height: auto;
}

.profile-message__callout {
  position: absolute;
  top: 25%;
  right: -15px;
  color: #f28b40;
  font-family: var(--profile-handwriting-font);
  font-size: 15px;
  line-height: 25px;
  text-align: center;
  white-space: nowrap;
  transform: rotate(-10deg);
}

.profile-message__callout::after {
  display: block;
  width: 76px;
  height: 2px;
  margin: 7px auto 0;
  background: currentColor;
  transform: rotate(5deg);
  content: "";
}

.profile-origin {
  background: #fff7f1;
}

.profile-origin::before,
.profile-origin::after {
  position: absolute;
  z-index: -1;
  right: 0;
  left: 0;
  height: 32px;
  background: #fff;
  -webkit-mask: var(--wave-mask) repeat-x 0 0 / 720px 100%;
  mask: var(--wave-mask) repeat-x 0 0 / 720px 100%;
  pointer-events: none;
  content: "";
}

.profile-origin::before {
  top: 0;
}

.profile-origin::after {
  bottom: 0;
  transform: rotate(180deg);
}

.profile-origin__inner {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  align-items: center;
  gap: 24px;
  min-height: 300px;
  padding-block: 56px;
}

.profile-origin__copy {
  min-width: 0;
  padding-left: 22px;
}

.profile-origin__visual {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 538 / 365;
  margin: 0;
}

.profile-origin__main-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 83%;
  height: auto;
  filter: drop-shadow(0 3px 5px rgb(117 82 42 / 10%));
}

.profile-origin__handshake {
  position: absolute;
  top: 18%;
  right: -1%;
  width: 43%;
  height: auto;
  filter: drop-shadow(0 3px 5px rgb(117 82 42 / 10%));
}

.profile-origin__accent {
  position: absolute;
  top: 9%;
  right: 5%;
  color: #ff803e;
}

.profile-origin__caption {
  position: absolute;
  top: 50%;
  left: 53%;
  z-index: 1;
  margin: 0;
  color: var(--color-accent);
  font-family: var(--profile-handwriting-font);
  font-size: clamp(14px, 3.8cqw, 21px);
  line-height: 1.65;
  letter-spacing: .02em;
  white-space: nowrap;
  transform: rotate(-7deg);
}

.profile-origin__caption::before {
  position: absolute;
  z-index: -1;
  inset: -28px -18px -24px -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff 48%, rgb(255 255 255 / 96%) 60%, rgb(255 255 255 / 0%) 76%);
  content: "";
}

.profile-bio {
  padding-block: 26px 56px;
  background: #fff;
}

.profile-bio__grid {
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  align-items: end;
  gap: 28px;
}

.profile-bio__portrait {
  position: relative;
  isolation: isolate;
  margin: 0;
}

.profile-bio__portrait::before {
  position: absolute;
  z-index: -1;
  top: 10%;
  right: -3%;
  left: -3%;
  height: 65%;
  border-radius: 47% 35% 48% 37%;
  background: #fff5ec;
  transform: rotate(22deg);
  content: "";
}

.profile-bio__portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.profile-bio__accent {
  position: absolute;
  top: 46%;
  left: 0;
  color: #ff803e;
  transform: rotate(-90deg);
}

.profile-bio__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #333;
  font-size: var(--font-size-body);
  line-height: 22px;
}

.profile-bio__table th,
.profile-bio__table td {
  padding: 3px 12px;
  border: 1px solid #f5f2ef;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.profile-bio__table th {
  width: 116px;
  background: #fff5ed;
  color: #e98b45;
  font-weight: 700;
}

.profile-bio__table td {
  background: #fff;
}

@media (max-width: 959px) {
  .profile-message__inner,
  .profile-origin__inner,
  .profile-bio__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .profile-message__inner {
    max-width: 600px;
    padding-block: 28px;
  }

  .profile-section__eyebrow {
    margin-left: 0;
  }

  .profile-section__title {
    font-size: 23px;
  }

  .profile-prose {
    font-size: var(--font-size-body);
    line-height: 26px;
  }

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

  .profile-desktop-break {
    display: none;
  }

  .profile-message__signature {
    margin-left: 0;
    font-size: 28px;
  }

  .profile-message__portrait {
    justify-self: center;
    width: 260px;
  }

  .profile-message__callout {
    right: -2px;
  }

  .profile-origin__inner {
    max-width: 600px;
    padding-block: 56px;
  }

  .profile-origin__copy {
    padding-left: 0;
  }

  .profile-origin__visual {
    width: 100%;
    max-width: 500px;
    justify-self: center;
  }

  .profile-bio {
    padding-block: 28px 56px;
  }

  .profile-bio .profile-container {
    max-width: 600px;
  }

  .profile-bio__portrait {
    justify-self: center;
    width: min(65%, 260px);
  }

  .profile-bio__table {
    font-size: var(--font-size-body);
    line-height: 23px;
  }

  .profile-bio__table th,
  .profile-bio__table td {
    padding: 7px 10px;
  }

  .profile-bio__table th {
    width: 92px;
  }
}

@media (max-width: 599px) {
  .page-hero__description {
    font-size: var(--font-size-body);
  }
}

/* プロフィール内の紹介ブロックも共通の波と余白で揃える。 */
.profile-page .about::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  border-radius: 0;
  -webkit-mask: var(--wave-mask) repeat-x 0 0 / 720px 100%;
  mask: var(--wave-mask) repeat-x 0 0 / 720px 100%;
  pointer-events: none;
}

.profile-page .about__inner {
  padding-block: 56px 40px;
}

/* 提供写真を使用する政策・活動報告のKV。共通の高さ・文字は維持。 */
.page-hero--photo {
  overflow: hidden;
  background: #fff;
}

.page-hero.page-hero--photo::before {
  display: block;
  background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 98%) 22%, rgb(255 255 255 / 82%) 36%, rgb(255 255 255 / 22%) 54%, transparent 68%);
}

.page-hero.page-hero--photo .page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.page-hero--photo.page-hero--activities-photo .page-hero__image {
  left: 28%;
  width: 72%;
  object-position: center 35%;
}

@media (max-width: 959px) {
  .page-hero.page-hero--photo::before {
    background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 97%) 20%, rgb(255 255 255 / 78%) 36%, rgb(255 255 255 / 20%) 54%, transparent 65%);
  }

  .page-hero--photo.page-hero--policy-photo .page-hero__image {
    left: 18%;
    width: 100%;
    object-position: center 46%;
  }

  .page-hero--photo.page-hero--activities-photo .page-hero__image {
    left: 30%;
    width: 100%;
    object-position: 35% 38%;
  }
}

@media (min-width: 960px) {
  .page-hero.page-hero--activities-photo::before {
    background: linear-gradient(90deg, #fff 0%, #fff 26%, rgb(255 255 255 / 94%) 30%, rgb(255 255 255 / 40%) 40%, transparent 49%);
  }
}

/* 写真KVの下端を、既存の風景KVと同じ大きな曲線でつなぐ。 */
.page-hero.page-hero--photo::after,
.page-hero.page-hero--policy-text::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(54px, 7.5vw, 108px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1087 120' preserveAspectRatio='none'%3E%3Cpath fill='%23fdf9f3' d='M0 55C180 18 400 98 650 82C850 72 980 18 1087 4V120H0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
  content: "";
}

/* 下層KV共通：文字に沿った柔らかい白背景。 */
.page-hero .page-hero__title,
.page-hero .page-hero__description {
  position: relative;
  isolation: isolate;
}
.page-hero .page-hero__description {
  display: table;
  max-width: 100%;
}
.page-hero .page-hero__title::before,
.page-hero .page-hero__description::before {
  position: absolute;
  z-index: -1;
  inset: -10px -14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 94%);
  filter: blur(12px);
  pointer-events: none;
  content: "";
}


/* 下層KV共通：写真は横幅いっぱいに配置。 */
.page-hero[aria-labelledby] .page-hero__image {
  left: 0;
  right: 0;
  width: 100%;
}

/* 下層KV共通：写真を認識しやすい白フェード。 */
.page-hero[aria-labelledby]::before {
  background: linear-gradient(90deg,
    rgb(255 255 255 / 80%) 0%,
    rgb(255 255 255 / 60%) 20%,
    rgb(255 255 255 / 32%) 36%,
    rgb(255 255 255 / 10%) 52%,
    transparent 64%);
}
