@charset "UTF-8";
/****************************************
* project.css
* トップページ 各セクション固有スタイル（p- prefix）
* デザインフレーム 1300px / メインカラム 1100px
***************************************/

/* ══════════════════════════════════════
   KV
   ══════════════════════════════════════ */
.p-kv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  max-height: 800px;
  overflow: hidden;
}

.p-kv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-kv__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.p-kv__bg-img.is-active {
  opacity: 1;
}

.p-kv__inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  /* グリッドの行の高さ＝背の高いカードに揃うので、左右のカードが自動で同じ高さになる */
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-content: end;
  gap: 20px;
  max-width: var(--inner-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 38px 40px;
}

/* 左：テキストカード */
.p-kv__body {
  box-sizing: border-box;
  max-width: 640px;
  padding: 33px;
  background: rgba(255, 255, 255, .85);
  border-radius: 8px;
  position: relative;
}

.p-kv__eyebrow {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--primary-color);
}

.p-kv__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  position: relative;
  justify-content: flex-start;
}

.p-kv__illust {
  position: absolute;
  top: -6px;
  left: 0;
  width: 100px;
  height: 60px;
}

.p-kv__illust img {
  display: block;
  width: 100%;
}

.p-kv__headline {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #584138;
  padding-left: 124px;
}

.p-kv__lead {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  color: #584138;
}

.c-btn--primary {
  background: var(--primary-color);
  color: var(--color-text-white, #fff);
}

/* 右：相談窓口カード */
.p-kv__info {
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, .95);
  border-radius: 8px;
}

.p-kv__info-title {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: #584138;
}

.p-kv__info-meta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #584138;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.08em;
  color: #584138;
}

.p-kv__info-meta li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

/* 電話番号の行（住所を詰めるための字間はここでは戻す） */
.p-kv__info-meta li:last-child {
  font-size: 16px;
  letter-spacing: normal;
}

.p-kv__info-meta li:first-child {
  margin-top: 0;
}

.p-kv__info-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 206px;
  margin-top: 20px;
  padding: 14px;
  background: var(--secondary-color);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-white);
  transition: opacity .3s ease;
}

.p-kv__info-btn:hover {
  opacity: .85;
}

@media (max-width: 768px) {
  .p-kv {
    height: 100vh;
    min-height: 500px;
  }

  .p-kv__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 24px 22px 32px;
  }

  .p-kv__headline {
    font-size: 26px;
  }

  .p-kv__info {
    width: 100%;
  }
}

/* ══════════════════════════════════════
   お知らせ
   ══════════════════════════════════════ */
.p-news {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}

.p-news__pattern {
  position: absolute;
  top: -195px;
  transform: translateX(calc(-50% + 84px));
  z-index: 0;
  pointer-events: none;
}

.p-news__card {
  position: relative;
  z-index: 1;
  margin-top: 67px;
  padding: 45px 0;
  border-radius: 10px;
  background: var(--color-bg-white);
}

.p-news__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 88px;
}

.p-news__item + .p-news__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 68.5px;
  left: 68.5px;
  height: 1px;
  background: rgba(55, 29, 3, .5);
}

.p-news__date {
  box-sizing: border-box;
  flex: 0 0 210px;
  padding-left: 46px;
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 48px;
  text-align: center;
}

.p-news__cat {
  flex: 0 0 86px;
  justify-content: center;
}

.p-news__title {
  flex: 1;
  min-width: 0;
  margin-left: 47px;
  margin-right: 80px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transition: opacity .3s ease;
}

.p-news__title:hover {
  opacity: .7;
}

.p-news__more {
  display: flex;
  justify-content: center;
  margin-top: 92px;
}

/* ══════════════════════════════════════
   三方よし
   ══════════════════════════════════════ */
.p-concept {
  position: relative;
  padding: 120px 0 140px;
  background: var(--color-bg-beige);
  overflow: hidden;
}

.p-concept__illust {
  position: absolute;
  top: 46px;
  right: 77px;
}

.p-concept__illust img {
  width: 182px;
}

.p-concept__lead {
  max-width: 760px;
  margin: 39px auto 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

.p-concept__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 80px;
}

.p-concept__card {
  box-sizing: border-box;
  height: 499px;
  padding: 38px 32px 45px;
  border-radius: 10px;
  background: var(--color-bg-white);
}

.p-concept__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 166px;
  height: 36px;
  margin: 0 auto;
  border-radius: 3px;
  background: var(--tertiary-color);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .8px;
  color: var(--color-text-white);
}

.p-concept__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 178px;
}

.p-concept__crop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  margin-top: 32px;
}

.p-concept__crop img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.p-concept__title {
  margin-top: 36px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: .96px;
  text-align: center;
  color: var(--primary-color);
}

.p-concept__text {
  margin-top: 27px;
  font-size: 16px;
  line-height: 27px;
}

/* ══════════════════════════════════════
   その空き家、放っておかないで
   ══════════════════════════════════════ */
.p-risk {
  position: relative;
  padding: 120px 0 140px;
  overflow: hidden;
}

.p-risk__illust {
  position: absolute;
  bottom: 0;
  width: 373px;
  margin: 11px -50px
}

.p-risk__illust img {
  width: 100%;
}

.p-risk__body {
  display: grid;
  grid-template-columns: 319px minmax(0, 1fr);
  /* 画像と本文の間隔。詰めるとテキストだけ左に寄る（右端は変わらない）*/
  gap: 56px;
  margin-top: 61px;
  padding-left: 76px;
}

.p-risk__figure {
  width: 319px;
  height: 199px;
  border-radius: 10px;
  overflow: hidden;
}

.p-risk__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-risk__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.p-risk__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 120px;
  padding: 0 80px 0 76px;
}

.p-risk__card {
  position: relative;
  box-sizing: border-box;
  height: 302px;
  padding: 34px 34px 0;
  border-radius: 10px;
  background: var(--color-bg-white);
}

.p-risk__icon {
  width: 32px;
  height: 32px;
}

.p-risk__sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #584138;
}

.p-risk__title {
  margin-top: 19px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 1.4px;
  text-align: center;
}

.p-risk__desc {
  width: 358px;
  margin-top: 16px;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
  letter-spacing: .8px;
}

.p-risk__btn {
  width: 249px;
  margin: 24px auto 0;
}

/* 左カード：ラベルが長いので文字幅に合わせて伸縮させる。
   右21px にリンクアイコン（.c-btn--window）が入るため右側の余白を広めに取る */
.p-risk__card:first-child .p-risk__btn {
  width: fit-content;
  max-width: 100%;
  padding: 0 44px 0 24px;
}

/* ══════════════════════════════════════
   最新の記事
   ══════════════════════════════════════ */
.p-blog {
  position: relative;
  padding: 120px 0 140px;
  background: var(--color-bg-beige);
  overflow: hidden;
}

.p-blog__pattern {
  position: absolute;
  top: -188px;
  transform: translateX(calc(-50% + 82px));
  z-index: 0;
  pointer-events: none;
}

.p-blog__list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 523px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 258px 258px;
  column-gap: 25px;
  row-gap: 22px;
  margin-top: 67px;
}

.p-blog__item--main {
  grid-row: 1 / span 2;
}

.p-blog__link {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: 10px;
  background: var(--color-bg-white);
  overflow: hidden;
  transition: opacity .3s ease;
}

.p-blog__link:hover {
  opacity: .85;
}

.p-blog__thumb {
  height: 139.5px;
  overflow: hidden;
}

.p-blog__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-blog__body {
  padding: 17px 14px 0;
}

.p-blog__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-blog__date {
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 1;
}

.p-blog__title {
  margin-top: 15px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.p-blog__item--main .p-blog__thumb { height: 277px; }
.p-blog__item--main .p-blog__body  { padding: 27px 22px 0; }
.p-blog__item--main .p-blog__meta  { gap: 21px; }

.p-blog__item--main .p-blog__title {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.p-blog__text {
  margin-top: 17px;
  font-size: 16px;
  line-height: 25px;
}

.p-blog__item--main .p-blog__text {
  margin-top: 19px;
  padding-top: 19px;
  border-top: 0.8px solid #584138;
}

.p-blog__item:not(.p-blog__item--main) .p-blog__text {
  display: none;
}

.p-blog__more {
  display: flex;
  justify-content: center;
  margin-top: 94px;
}

/* ══════════════════════════════════════
   協力隊について
   ══════════════════════════════════════ */
.p-about {
  position: relative;
  padding: 120px 0 103px;
}

.p-about__illust {
  position: absolute;
  top: -48px;
  right: -35px;
  width: 371px;
  height: 149px;
  pointer-events: none;
}

.p-about__illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-about__card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 277px minmax(0, 1fr);
  gap: 77px;
  width: 1015px;
  /* 高さは中身（写真354px＋上下の余白75px）で決まる */
  height: auto;
  margin: 67px auto 0;
  padding: 75px 64.5px 75px 84.5px;
  border-radius: 10px;
  background: var(--color-bg-white);
}

.p-about__figure {
  width: 277px;
  height: 354px;
  overflow: hidden;
}

.p-about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-about__name {
  /* 行間ぶん文字が下がるため、写真の上端と視覚的に揃える */
  margin-top: -5px;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
  /* 字間を詰めて1行に収める。環境によるフォント幅の差で折り返さないよう nowrap を併用 */
  letter-spacing: 0;
  white-space: nowrap;
}

.p-about__name-role {
  /* 「地域おこし協力隊（空き家担当）　渋江 正利」が本文カラム512pxに
     1行で収まる最大サイズ（23px以上は収まらない） */
  font-size: 22px;
  letter-spacing: -0.5px;
}

.p-about__text {
  margin-top: 33px;
  font-size: 16px;
  line-height: 32px;
}

.p-about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 31px;
}

/* ══════════════════════════════════════
   フォトストリップ
   ══════════════════════════════════════ */
.p-gallery {
  margin-bottom: 140px;
  overflow: hidden;
}

.p-gallery__list {
  display: flex;
  width: 3250px;
  animation: p-gallery-scroll 50s linear infinite;
}

.p-gallery__item {
  flex: 0 0 325px;
  width: 325px;
  height: 208px;
}

.p-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes p-gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-1625px); /
  }
}

/* ══════════════════════════════════════
   ページヘッダー（下層共通）
   ══════════════════════════════════════ */
.p-page-header {
  position: relative;
  padding: calc(var(--header-height) + 90px) 0 90px;
  background: #36563C;
  overflow: hidden;
}

.p-page-header__pattern {
  top: -180px;
  transform: translateX(calc(-50% + 82px));
}

.p-page-header__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 856px;
  margin: auto 0;
}
.p-page-header__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-page-header__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mm-color-overlay);
}

@media (max-width: 768px) {
  .p-page-header__photo {
    top: 80px;
    width: 80%;
    height: calc(100% - 80px);
  }
}

.p-page-header__inner {
  position: relative;
  z-index: 1;
  padding-left: 100px;
}

.p-page-header__en {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
}

.p-page-header__ja {
  margin: 4px 0 0;
  color: #fff;
  font-size: 40px;
  font-weight: 500;
}

/* ══════════════════════════════════════
   記事一覧（アーカイブ／検索結果／404）
   ══════════════════════════════════════ */
.p-archive {
  display: block;
  padding: 0 0 160px;
}

.p-archive__lead {
  margin-top: 40px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.p-archive {
  display: flow-root;
}

.p-archive__heading {
  margin-top: -4px;
  margin-bottom: 40px;
  font-size: 20px;
  transform: translateY(20px);
}

.p-archive__heading + .p-archive__list {
  margin-top: 0;
}

.p-archive__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 25px;
  row-gap: 40px;
  margin-top: 64px;
}

.p-archive__link {
  height: 100%;
  border-radius: 10px;
  background: var(--color-bg-white);
  overflow: hidden;
  transition: opacity .3s ease;
}

.p-archive__link:hover {
  opacity: .85;
}

.p-archive__thumb {
  aspect-ratio: 350 / 186;
  overflow: hidden;
}

.p-archive__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-archive__body {
  padding: 20px 22px 26px;
}

.p-archive__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.p-archive__date {
  font-family: var(--font-en);
  font-size: 12px;
  line-height: 1;
}

.p-archive__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.p-archive__text {
  margin-top: 12px;
  font-size: 16px;
  line-height: 24px;
}

.p-archive__empty {
  margin-top: 80px;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
}

.p-archive__more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* お知らせ一覧（トップと同じ行レイアウトを流用） */
.p-news--archive {
  display: block;
  padding: 0 0 140px;
}

.p-news--archive .p-news__card {
  margin-top: 64px;
}

/* ── サイドバー付きレイアウト ── */
.p-archive-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.p-archive-layout .p-archive {
  flex: 1;
  padding: 44px 0 160px;
}

.p-archive-layout .p-archive__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.p-archive__card {
  background: var(--color-bg-white, #fff);
  border-radius: 10px;
  overflow: hidden;
}

.p-archive-layout .p-archive__link {
  display: flex;
  gap: 24px;
  height: auto;
  padding: 20px;
  border-radius: 0;
  background: none;
}

.p-archive-layout .p-archive__thumb {
  flex: 0 0 220px;
  aspect-ratio: auto;
  height: 140px;
  border-radius: 6px;
}

.p-archive-layout .p-archive__body {
  flex: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.p-archive-layout .p-archive__title {
  margin-top: 12px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.p-archive-layout .p-archive__text {
  margin-top: 0;
  padding-top: 12px;
  border-top: 0.8px solid #584138;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-archive__side {
  flex: 0 0 280px;
  padding-bottom: 160px;
}

.p-archive__side-block {
  background: var(--color-bg-white, #fff);
  margin-top: 107px;
  border-radius: 10px;
  padding: 28px 24px;
}

.p-archive__side-block + .p-archive__side-block {
  margin-top: 32px;
}

.p-archive__side-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text, #584138);
}

.p-archive__side-list {
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.p-archive__side-item + .p-archive__side-item {
  margin-top: 14px;
}

.p-archive__side-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 16px;
  color: var(--color-text, #3a2e22);
  transition: opacity .3s ease;
}

.p-archive__side-list.-recent .p-archive__side-item a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.p-archive__side-list.-recent .p-archive__side-date {
  font-size: 13px;
  color: var(--color-text-sub, #ccc);
}

.p-archive__side-list.-recent .p-archive__side-item-title {
  font-size: 16px;
  color: var(--color-text, #3a2e22);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-archive__side-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-archive__side-count {
  color: var(--color-text-sub, #999);
  font-size: 14px;
}

.p-archive__side-item a:hover {
  opacity: .7;
}

.p-archive__side-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ── サイドバードット：ブログ（blog_category） ── */
.p-archive__side-dot--akiya-manabi {
  background: #c05a3f;
}

.p-archive__side-dot--akiya-kurashi {
  background: #c9b23c;
}

.p-archive__side-dot--akiya-jirei {
  background: #3f6b4a;
}

.p-archive__side-dot--akiya-katsudo {
  background: #3f6ea3;
}

/* ── サイドバードット：お知らせ（標準カテゴリー） ── */
.p-archive__side-dot--event {
  background: #24ADE2;
}

.p-archive__side-dot--oshirase {
  background: #CD5494;
}

.p-archive__side-dot--kiji-koushin {
  background: #36563C;
}

.p-archive__side-dot--soudan-madoguchi {
  background: #CC543A;
}

@media (max-width: 768px) {
  .p-archive-layout .p-archive__link {
    flex-direction: column;
    padding: 16px;
  }

  .p-archive-layout .p-archive__thumb {
    flex: none;
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 768px) {
  .p-archive__list {
    grid-template-columns: 1fr;
  }

  .p-archive-layout {
    flex-direction: column;
  }

  .p-archive-layout .p-archive__list {
    grid-template-columns: 1fr;
  }

  .p-archive__side {
    flex: 1;
    width: 100%;
  }
}

/* ══════════════════════════════════════
   記事詳細
   ══════════════════════════════════════ */
.p-single {
  display: block;
  padding: 0 0 140px;
}

.p-single__card {
  box-sizing: border-box;
  max-width: 900px;
  margin: 64px auto 0;
  padding: 56px 64px 64px;
  border-radius: 10px;
  background: var(--color-bg-white);
}

.p-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.p-single__date {
  font-family: var(--font-en);
  font-size: 14px;
  line-height: 1;
}

.p-single__title {
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 0.8px solid #584138;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 1.4px;
}

.p-single__thumb {
  margin-top: 32px;
  border-radius: 6px;
  overflow: hidden;
}

.p-single__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── 本文（エディタ出力） ── */
.p-single__body {
  margin-top: 40px;
  font-size: 16px;
  line-height: 32px;
}

.p-single__body > * + * {
  margin-top: 28px;
}

.p-single__body h2 {
  margin-top: 56px;
  padding-left: 16px;
  border-left: 4px solid var(--primary-color);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
}

.p-single__body h3 {
  margin-top: 48px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
}

.p-single__body h4 {
  margin-top: 40px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.p-single__body a {
  display: inline;
  color: var(--primary-color);
  text-decoration: underline;
}

.p-single__body a:hover {
  opacity: .7;
}

.p-single__body strong {
  font-weight: 700;
}

.p-single__body em {
  font-style: italic;
}

.p-single__body ul,
.p-single__body ol {
  padding-left: 1.5em;
}

.p-single__body ul li {
  list-style: disc;
}

.p-single__body ol li {
  list-style: decimal;
}

.p-single__body li + li {
  margin-top: 8px;
}

.p-single__body img {
  height: auto;
  border-radius: 6px;
}

.p-single__body figure {
  margin: 32px 0;
}

.p-single__body figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-text-light);
  text-align: center;
}

.p-single__body blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--tertiary-color);
  background: var(--color-bg);
  font-size: 15px;
}

.p-single__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.p-single__body th,
.p-single__body td {
  padding: 14px 18px;
  border: 1px solid rgba(55, 29, 3, .2);
  text-align: left;
  vertical-align: top;
}

.p-single__body th {
  background: var(--color-bg-beige);
  font-weight: 600;
  white-space: nowrap;
}

.p-single__body hr {
  border-top: 1px solid rgba(55, 29, 3, .2);
}

/* ── 一覧に戻る ── */
.p-single__nav {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 56px auto 0;
}

.p-single__nav a {
  transition: opacity .3s ease;
}

.p-single__nav a:hover {
  opacity: .7;
}

/* ══════════════════════════════════════════
   近江八幡：よくあるご質問
   ══════════════════════════════════════════ */

.p-faq {
  padding: 80px 0 160px;
  background-color: var(--color-bg-cream, #f4efe9);
}

.p-faq__list {
  max-width: var(--inner-max-s, 900px);
  margin: 0 auto;
  padding: 0 var(--mm-inner-pad, 24px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.p-faq__item {
  background: var(--color-bg-white, #fff);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.p-faq__q {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  cursor: pointer;
}

.p-faq__q-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--primary-color);
  border-radius: 6px;
  color: var(--primary-color);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
}

.p-faq__q-text {
  flex: 1;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text);
}

.p-faq__q-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.p-faq__q-icon::before,
.p-faq__q-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-primary, #4a6b57);
  transform: translate(-50%, -50%);
}

.p-faq__q-icon::before {
  width: 18px;
  height: 2px;
}

.p-faq__q-icon::after {
  width: 2px;
  height: 18px;
  transition: transform 0.3s;
}

.p-faq__item.is-open .p-faq__q-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.p-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.p-faq__item.is-open .p-faq__a {
  /* 回答文の最大想定高さより大きめに設定。
     箇条書きの長い回答はSPで折り返しが増えるため、余裕をもたせている */
  max-height: 1500px;
}

.p-faq__a-divider {
  height: 1px;
  background: var(--color-border, #e0dcd4);
  margin: 0 32px;
}

.p-faq__a-text {
  font-family: var(--font-base, sans-serif);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text-sub, #5c5650);
  padding: 24px 32px;
}

/* ══════════════════════════════════════════
  　近江八幡: お問い合わせ
   ══════════════════════════════════════════ */
.p-contact_inner {
  max-width: var(--mm-inner-max);
  margin: 0 auto;
  padding: 100px var(--mm-inner-pad);
}

.p-contact_head_text_wrapper {
  margin-top: 80px;
  text-align: center;
  margin-bottom: 3rem;
}

.p-contact_head_text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #584138;
  margin-top: 40px;
  margin-bottom: 40px;
  line-height: 1.6 !important;
}

.p-contact_content {
  max-width: 940px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 60px 94px 32px;
  background: var(--color-bg-white, #fff);
  border-radius: 8px;
}

.p-contact_main_text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #584138;
}

.p-contact_content_list_item {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 8rem;
  margin-bottom: 2rem;
}

.p-contact_content_list_item:last-child {
  align-items: flex-start;
}

.p-contact_content_list {
  width: 850px;
}

.p-contact_text {
  width: 28%;
  display: flex;
  justify-content: space-between;
  font-size: 18px !important;
  font-weight: bold;
  line-height: 1.5 !important;
  margin: 0 !important;
}

.p-contact_sub_text {
  display: inline-block;
  font-size: 13px;
  border-radius: 5px;
  margin-left: 2rem;
  padding: 0.3rem 0.9rem;
}

.p-contact_sub_text.required {
  background: #CC543A;
  color: #fff;
  border-radius: 5px;
}

.p-contact_sub_text.any {
  background: #B4B7BC;
}

.p-contact_input {
  width: 43%;
  font-size: 16px;
}

.p-contact_input textarea {
  resize: none;
}

.p-contact_input--checkbox .wpcf7-list-item {
  margin-left: 0;
  margin-right: 24px;
}

.p-contact_input--checkbox .wpcf7-list-item-label {
  padding-left: 0;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #707171 !important;
  background: #F5F5F5 !important;
  padding: 0.5rem 1rem;
  border: solid #E1E1E1 1px;
  border-radius: 3px;
}

.wpcf7 select {
  color: #707171;
}

.wpcf7 form {
  margin: 0;
}

::placeholder {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #B8B9BA !important;
  border: none;
}

input:-internal-autofill-selected {
  background: #F5F5F5 !important;
}

.p-contact_bg {
  background: #EBF6FB;
}

#page_content .wpcf7 {
  width: 100%;
  margin: 0 !important;
  padding: 0;
  background: none;
}

.p-contact_text_sub {
  font-size: 15px;
  margin-bottom: 1rem;
}

.p-contact_text_sub a {
  color: var(--primary-color);
  display: inline;
}

.p-contact_content_footer {
  margin-top: 8rem;
  text-align: center;
}

.p-contact_content_footer .p-contact_text_sub:not(:last-of-type) {
  margin-bottom: 1rem;
}

.p-contact_content_footer .p-contact_text_sub:last-of-type {
  margin-bottom: 3rem;
}

/* ── お問い合わせ誘導 ── */
.p-footer-contact {
  position: relative;
  overflow: hidden;
  background: #EFE7D9;
  height: 478px;
  display: flex;
  align-items: center;
}

.p-footer-contact__pattern {
  position: absolute;
  top: -195px;
  transform: translateX(calc(-50% + 84px));
  z-index: 0;
  pointer-events: none;
}

.p-footer-contact__card {
  position: relative;
  z-index: 1;
  width: 900px;
  height: 200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 48px 0px;
  text-align: center;
}

.p-footer-contact__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 32px;
  color: #584138;
}

.p-footer-contact__row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
}

.p-footer-contact__col {
  flex: 1;
  max-width: 360px;
}

.p-footer-contact__divider {
  width: 1px;
  align-self: stretch;
  background: #584138;
}

.p-footer-contact__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #24ADE2;
}

.p-footer-contact__icon {
  width: 32px;
  height: 32px;
}

.p-footer-contact__col:first-child .p-footer-contact__label {
  color: #CC543A;
}

.p-footer-contact__tel {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: #584138;
  margin: 0 0 14px;
}

.p-footer-contact__hours {
  font-size: 18px;
  font-weight: 600;
  color: #584138;
  margin: 0;
}

.p-footer-contact__desc {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #584138;
}

.p-footer-contact__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 210px;
  height: 59px;
  margin: 0 auto;
  background: var(--tertiary-color);
  color: var(--color-text-white);
  border-radius: 3px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1.92px;
  transition: opacity .3s ease;
}

.p-footer-contact__btn::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.p-footer-contact__btn:hover {
  opacity: .8;
}

@media (max-width: 768px) {
  .p-footer-contact {
    height: auto;
    padding: 48px 0;
  }

  .p-footer-contact__card {
    width: calc(100% - 32px);
    height: auto;
    padding: 32px 24px;
  }

  .p-footer-contact__row {
    flex-direction: column;
    gap: 32px;
  }

  .p-footer-contact__divider {
    display: none;
  }
}

.wpcf7 .contact_submit {
  width: 194px;
  height: 49px;
  background-color: var(--primary-color) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 0L8 6L0 12Z' fill='white'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 24px center !important;
  background-size: 8px 12px !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  border-radius: 0;
  box-sizing: border-box;
  border: 1px solid transparent;
  transition: background-color .5s cubic-bezier(0,0,0,1),
              color .5s cubic-bezier(0,0,0,1),
              border-color .5s cubic-bezier(0,0,0,1);
}

.p-contact_submit {
  position: relative;
  display: block;
  width: 194px;
  margin: 0 auto 160px;
}

.p-contact_submit:hover .contact_submit {
  color: var(--primary-color) !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='12' viewBox='0 0 8 12'%3E%3Cpath d='M0 0L8 6L0 12Z' fill='%2354361b'/%3E%3C/svg%3E") !important;
  border: 1px solid var(--primary-color) !important;
  cursor: pointer;
}

.p-contact-intro {
  padding: 80px 0 80px;
}

.p-contact-intro__lead {
  /* 上に .c-heading が入ったため、見出しとの間隔として設定 */
  margin-top: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: #584138;
}

.p-contact-intro__cards {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 56px;
}

.p-contact-intro__card {
  flex: 1 0 340px;
  box-sizing: border-box;
  padding: 40px;
  background: var(--color-bg-white, #fff);
  border-radius: 8px;
  text-align: center;
}

.p-contact-intro__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 3px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}

.p-contact-intro__badge--tel {
  background: var(--secondary-color);
}

.p-contact-intro__badge--mail {
  background: #24ADE2;
}

.p-contact-intro__tel {
  margin-top: 24px;
  font-family: var(--font-en);
  font-size: 47px;
  font-weight: 700;
  color: var(--color-text, #3a2e22);
}

.p-contact-intro__hours {
  margin-top: 8px;
  font-size: 20px;
  color: #584138;
}

.p-contact-intro__mail-title {
  margin-top: 34px;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text, #3a2e22);
}

.p-contact-intro__text {
  max-width: 435px;
  margin-top: 23px;
  margin-left: 8px;
  font-size: 16px;
  line-height: 1.8;
  color: #584138;
  text-align: left;
}

.p-contact-intro__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 32px;
  background: #36563C;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: opacity .3s ease;
}

.p-contact-intro__btn:hover {
  opacity: .85;
}

@media (max-width: 768px) {
  .p-contact-intro {
    padding: 48px 0 40px;
  }

  .p-contact-intro__cards {
    flex-direction: column;
    margin-top: 32px;
  }

  .p-contact-intro__card {
    padding: 28px 24px;
  }

 .p-contact-intro__tel {
    font-size: 32px;
  }

  .p-contact-intro__hours {
    margin-top: 12px;
    font-size: 18px;
  }
}

/* ══════════════════════════════════════════
   お問い合わせ完了
   ══════════════════════════════════════════ */
.p-contact-complete {
  padding: 100px 0 160px;
}

.p-contact-complete__inner {
  text-align: center;
}

.p-contact-complete__head {
  font-size: 30px;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 40px;
}

.p-contact-complete__text {
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
}

.p-contact-complete__text:last-of-type {
  margin-bottom: 40px;
}

/* ══════════════════════════════════════════
   プライバシーポリシー
   ══════════════════════════════════════════ */
.p-privacy {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px var(--inner-pad) 160px;
}

.p-privacy__lead {
  margin-bottom: 60px;
}

.p-privacy__lead p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 2;
  color: #584138;
}

.p-privacy__section {
  margin-bottom: 48px;
}

.p-privacy__section:last-child {
  margin-bottom: 0;
}

.p-privacy__section-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
  color: #584138;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #E1E1E1;
}

.p-privacy__text p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #584138;
  margin-bottom: 12px;
}

.p-privacy__text p:last-child {
  margin-bottom: 0;
}

.p-privacy__contact {
  margin-top: 12px;
}

.p-privacy__contact a {
  color: var(--primary-color);
}

.c-list.-dot li {
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #584138;
  padding-left: 18px;
  margin-bottom: 8px;
}

.c-list.-dot li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--primary-color);
}

/* ══════════════════════════════════════
   アニメーション（トップページ）
   ══════════════════════════════════════ */

/* ── スクロールリビール（common.css の .js-fade-in を拡張）── */
.js-fade-in {
  transition-delay: var(--fade-delay, 0s);
}

.js-fade-in--up { transform: translateY(56px); }

.js-fade-in--up.is-visible { transform: none; }

/* ── KV：背景写真を1枚ずつゆっくりズーム ── */
@keyframes p-kv-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* 表示中の1枚だけ再生し、切り替わった側は一時停止して拡大率を保持する
   （is-active を外すだけだとアニメーションごと消えて等倍に戻ってしまうため）*/
.p-kv__bg-img {
  animation: p-kv-zoom 8s ease-out both;
  animation-play-state: paused;
}

.p-kv__bg-img.is-active {
  animation-play-state: running;
}

/* ── お知らせ：1行ずつ表示 ── */
.p-news__item:nth-child(1) { --fade-delay: .10s; }
.p-news__item:nth-child(2) { --fade-delay: .20s; }
.p-news__item:nth-child(3) { --fade-delay: .30s; }
.p-news__item:nth-child(4) { --fade-delay: .40s; }

/* ── 三方よし：カードを順番に表示 ── */
.p-concept__card:nth-child(2) { --fade-delay: .12s; }
.p-concept__card:nth-child(3) { --fade-delay: .24s; }

/* ── 放っておかないで：カードを順番に表示 ── */
.p-risk__card:nth-child(2) { --fade-delay: .12s; }

/* ── 最新の記事：カードを順番に表示＋サムネのズーム ── */
.p-blog__item:nth-child(2) { --fade-delay: .08s; }
.p-blog__item:nth-child(3) { --fade-delay: .16s; }
.p-blog__item:nth-child(4) { --fade-delay: .24s; }
.p-blog__item:nth-child(5) { --fade-delay: .32s; }

/* 「一覧を見る」は最後の記事カードと同じタイミングで動かす */
.p-blog__more { --fade-delay: .32s; }

.p-blog__thumb img {
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}

.p-blog__link:hover .p-blog__thumb img {
  transform: scale(1.06);
}

/* ── アニメーションを控える設定の場合は無効化 ── */
@media (prefers-reduced-motion: reduce) {
  .js-fade-in,
  .js-fade-in--up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .p-kv__bg-img {
    animation: none;
  }

  .p-blog__link:hover .p-blog__thumb img {
    transform: none;
  }
}


/* ══════════════════════════════════════════
   お問い合わせ：相談窓口 ご案内
   ══════════════════════════════════════════ */
.p-consultation {
  /* トップページ：写真スライドの下余白140px＋上20px＝160px、
     下はフッターのお問い合わせカードまで160px */
  padding: 20px 0 160px;
}

.p-consultation__lead {
  margin-top: 60px;
  font-size: 24px;
  font-weight: 500;
  line-height: 37px;
  text-align: center;
  color: var(--color-text);
}

/* ── 概要テーブル（ラベル283px＋内容 残り／計1100px）── */
.p-consultation__table {
  margin-top: 80px;
  border: 1px solid var(--color-line-thin);
  /* 角丸は同ページのカード（.p-contact-intro__card）と同じ8px。
     セルの地色を角に合わせて切り抜くため overflow: hidden を併用 */
  border-radius: 8px;
  overflow: hidden;
}

.p-consultation__row {
  display: grid;
  grid-template-columns: 283px minmax(0, 1fr);
  min-height: 104px;
}

.p-consultation__row + .p-consultation__row {
  border-top: 1px solid var(--color-line-thin);
}

.p-consultation__label {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px 16px;
  background: var(--color-bg-beige);
  font-size: 18px;
  line-height: 23px;
  text-align: center;
  color: var(--color-text);
}

.p-consultation__data {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 38px;
  border-left: 1px solid var(--color-line-thin);
  background: #FFFEFD;
  font-size: 18px;
  line-height: 23px;
  color: var(--color-text);
}

/* ── フロー図・地図のブロック ── */
.p-consultation__block {
  margin-top: 160px;
}

.p-consultation__subtitle {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 1.4px;
  text-align: center;
  color: var(--color-text);
}

.p-consultation__note {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 500;
  line-height: 37px;
  text-align: center;
  color: var(--color-text);
}

.p-consultation__figure {
  margin: 60px 0 0;
}

.p-consultation__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 開設場所のGoogleマップ（縦横比を保った枠に埋め込む） */
.p-consultation__map {
  position: relative;
  margin-top: 60px;
  padding-top: 45%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-bg-white, #fff);
}

.p-consultation__map iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── 開設場所：入口の看板と案内図（Figma 323:3 / 351px + 80px + 669px = 1100px）── */
.p-consultation__access-lead {
  /* 地図との間隔は .p-consultation__map と同じリズムに揃える */
  margin-top: 60px;
}

.p-consultation__access {
  display: grid;
  grid-template-columns: 351px minmax(0, 1fr);
  gap: 80px;
  margin-top: 60px;
}

.p-consultation__access-item {
  margin: 0;
}

.p-consultation__access-item img {
  display: block;
  width: 100%;
  height: auto;
  /* 角丸は同セクションの図版・地図と同じ8px */
  border-radius: 8px;
}

@media (max-width: 768px) {
  .p-consultation {
    /* SP：写真スライドの下余白72px＋上8px＝80px、下は80px */
    padding: 8px 0 80px;
  }

  .p-consultation__lead {
    margin-top: 32px;
    font-size: 16px;
    line-height: 28px;
    text-align: left;
  }

  .p-consultation__table {
    margin-top: 40px;
  }

  /* SPはラベルを上、内容を下に積む */
  .p-consultation__row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .p-consultation__label {
    padding: 12px 16px;
    font-size: 15px;
  }

  .p-consultation__data {
    display: block;
    padding: 16px;
    border-top: 1px solid var(--color-line-thin);
    border-left: 0;
    font-size: 15px;
    line-height: 26px;
  }

  .p-consultation__block {
    margin-top: 80px;
  }

  .p-consultation__subtitle {
    font-size: 20px;
  }

  .p-consultation__note {
    margin-top: 16px;
    font-size: 15px;
    line-height: 26px;
    text-align: left;
  }

  .p-consultation__figure {
    margin-top: 32px;
  }

  .p-consultation__map {
    margin-top: 32px;
    padding-top: 70%;
  }

  .p-consultation__access-lead {
    margin-top: 32px;
  }

  /* 改行はPCのみ（.p-risk__text br と同じ扱い） */
  .p-consultation__access-lead br {
    display: none;
  }

  /* SPは看板と案内図を縦に積む */
  .p-consultation__access {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
}


/* ══════════════════════════════════════════
   相談窓口 役割（フロー図）
   Figma 293:20 を 1100×546 のキャンバスに絶対配置で再現
   ══════════════════════════════════════════ */
.p-flow__canvas {
  position: relative;
  width: 1100px;
  height: 546px;
  margin: 0 auto;
  border-radius: 8px;
  background: var(--color-bg-white, #fff);
  color: var(--color-text);
}

.p-flow__canvas p {
  position: absolute;
  margin: 0;
  white-space: nowrap;
}

/* ── 背景ボックス（Figma：各色 × 不透明度40%）── */
.p-flow__box {
  position: absolute;
  border-radius: 10px;
}

.p-flow__box--pro    { top: 23px;  left: 23px;  width: 328px; height: 87px;  background: rgba(205, 84, 148, .4); }  /* #CD5494 */
.p-flow__box--city   { top: 23px;  left: 386px; width: 328px; height: 87px;  background: rgba(204, 84, 58, .4); }   /* --secondary-color */
.p-flow__box--iju    { top: 23px;  left: 749px; width: 328px; height: 87px;  background: rgba(205, 84, 148, .4); }  /* #CD5494 */
.p-flow__box--owner  { top: 248px; left: 23px;  width: 214px; height: 275px; background: rgba(54, 86, 60, .4); }   /* --primary-color */
.p-flow__box--center { top: 248px; left: 351px; width: 399px; height: 275px; background: rgba(51, 104, 197, .4); } /* --cat-report */
.p-flow__box--user   { top: 248px; left: 863px; width: 214px; height: 275px; background: rgba(203, 186, 54, .4); } /* --cat-renovation */

.p-flow__panel {
  position: absolute;
  border-radius: 10px;
  background: var(--color-bg-white, #fff);
}

.p-flow__panel--owner  { top: 342px; left: 36px;  width: 187px; height: 161px; }
.p-flow__panel--center { top: 318px; left: 364px; width: 372px; height: 185px; }
.p-flow__panel--user   { top: 342px; left: 876px; width: 187px; height: 161px; }

/* ── 見出し（中央揃え：left は中心のX座標）── */
.p-flow__title {
  transform: translateX(-50%);
  font-size: 26px;
  font-weight: 700;
  line-height: 31px;
  letter-spacing: 1.3px;
  text-align: center;
}

.p-flow__title--pro    { top: 36px;  left: 187px; }
.p-flow__title--city   { top: 36px;  left: 550px; }
.p-flow__title--iju    { top: 51px;  left: 912px; }
.p-flow__title--owner  { top: 264px; left: 130.5px; }
.p-flow__title--user   { top: 264px; left: 970.5px; }
.p-flow__title--center {
  top: 271px;
  left: 550.5px;
  font-size: 30px;
  letter-spacing: 1.5px;
}

/* ── 白パネル内の本文 ── */
.p-flow__text {
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
}

.p-flow__text--owner  { top: 361px; left: 50px; }
.p-flow__text--center { top: 346px; left: 381px; }
.p-flow__text--user   { top: 361px; left: 888px; }

/* ── 矢印（中心を基準に回転。left/top は回転前の左上）── */
.p-flow__arrow {
  position: absolute;
  display: block;
  overflow: visible;
  transform-origin: center;
}

.p-flow__arrow--01 { top: 166.953px; left: 404.5px;   transform: rotate(-90deg); } /* 市 → 窓口 */
.p-flow__arrow--02 { top: 166.953px; left: 584.5px;   transform: rotate(-90deg); } /* 窓口 → 市 */
.p-flow__arrow--03 { top: 160.953px; left: 222.4965px; transform: rotate(45deg); }  /* 専門家 → 窓口 */
.p-flow__arrow--04 { top: 176.943px; left: 202.4965px; transform: rotate(45deg); }  /* 窓口 → 専門家 */
.p-flow__arrow--05 { top: 160.953px; left: 737.4965px; transform: rotate(135deg); } /* 移住 → 窓口 */
.p-flow__arrow--06 { top: 176.943px; left: 760.4865px; transform: rotate(-45deg); } /* 窓口 → 移住 */
.p-flow__arrow--07 { top: 357.453px; left: 247px; }                                   /* 所有者 → 窓口 */
.p-flow__arrow--08 { top: 383.453px; left: 247px;     transform: rotate(180deg); }    /* 窓口 → 所有者 */
.p-flow__arrow--09 { top: 357.453px; left: 760px; }                                   /* 希望者 → 窓口 */
.p-flow__arrow--10 { top: 383.443px; left: 760px; }                                   /* 窓口 → 希望者 */

/* ── 矢印ラベル ── */
.p-flow__label {
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: .54px;
  text-align: center;
}

.p-flow__label--mutual-l { top: 170px; left: 165.5px; }
.p-flow__label--share    { top: 170px; left: 550px; }
.p-flow__label--mutual-r { top: 170px; left: 935.5px; }
.p-flow__label--ask-l    { top: 296px; left: 295.5px; line-height: 25px; }
.p-flow__label--ask-r    { top: 296px; left: 808.5px; line-height: 25px; }
.p-flow__label--advice-l { top: 415px; left: 295px;   line-height: 25px; }
.p-flow__label--advice-r { top: 415px; left: 808px;   line-height: 25px; }

/* SP専用の補足（PCでは非表示） */
.p-flow__label-sp {
  display: none;
}

/* ── SP・タブレット：縦並びに組み替え ──
   連携先（3つ）→ 矢印 → 相談窓口 → 矢印 → 所有者／利活用希望者（2列）
   矢印は書き出しサイズのまま縦向きに回転して使用 */
@media screen and (max-width: 960px) {
  .p-flow__canvas {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "pro    pro"
      "city   city"
      "iju    iju"
      "linkc  linkc"
      "center center"
      "linko  linko"
      "owner  user";
    column-gap: 10px;
    row-gap: 8px;
    box-sizing: border-box;
    width: auto;
    max-width: 600px;
    height: auto;
    padding: 16px 12px;
  }

  /* PC用の絶対配置を解除 */
  .p-flow__canvas p {
    position: static;
    white-space: normal;
  }

  .p-flow__box,
  .p-flow__panel,
  .p-flow__link--pro,
  .p-flow__link--iju,
  .p-flow__link--user {
    display: none;
  }

  /* ボックス（背景色はPCと同じ40%） */
  .p-flow__node {
    box-sizing: border-box;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .p-flow__node--pro    { grid-area: pro;    background: rgba(205, 84, 148, .4); }
  .p-flow__node--city   { grid-area: city;   background: rgba(204, 84, 58, .4); }
  .p-flow__node--iju    { grid-area: iju;    background: rgba(205, 84, 148, .4); }
  .p-flow__node--center { grid-area: center; background: rgba(51, 104, 197, .4); }
  .p-flow__node--owner  { grid-area: owner;  background: rgba(54, 86, 60, .4); }
  .p-flow__node--user   { grid-area: user;   background: rgba(203, 186, 54, .4); }

  .p-flow__canvas .p-flow__title {
    transform: none;
    font-size: 16px;
    line-height: 1.45;
    letter-spacing: .05em;
  }

  .p-flow__canvas .p-flow__title--center {
    font-size: 20px;
  }

  /* 本文は白パネルとして表示 */
  .p-flow__canvas .p-flow__text {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--color-bg-white, #fff);
    font-size: 14px;
    line-height: 1.6;
  }

  .p-flow__canvas .p-flow__text--owner,
  .p-flow__canvas .p-flow__text--user {
    padding: 10px;
    font-size: 13px;
  }

  /* 矢印の帯 */
  .p-flow__link {
    position: relative;
  }

  .p-flow__link--city  { grid-area: linkc; height: 111px; }
  .p-flow__link--owner { grid-area: linko; height: 94px; }

  .p-flow__link .p-flow__arrow--01 { top: 43.953px; left: calc(50% - 69.5px); transform: rotate(-90deg); } /* ↓ 連携先 → 窓口 */
  .p-flow__link .p-flow__arrow--02 { top: 43.953px; left: calc(50% - 41.5px); transform: rotate(-90deg); } /* ↑ 窓口 → 連携先 */
  .p-flow__link .p-flow__arrow--07 { top: 35.453px; left: calc(50% - 61px);   transform: rotate(-90deg); } /* ↑ 相談・問い合わせ */
  .p-flow__link .p-flow__arrow--08 { top: 35.453px; left: calc(50% - 33px);   transform: rotate(90deg); }  /* ↓ 助言・紹介等 */

  .p-flow__canvas .p-flow__label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0;
  }

  .p-flow__canvas .p-flow__label--share,
  .p-flow__canvas .p-flow__label--advice-l {
    left: calc(50% + 34px);
    text-align: left;
  }

  .p-flow__canvas .p-flow__label--ask-l {
    right: calc(50% + 34px);
    left: auto;
    text-align: right;
  }

  .p-flow__label-sp {
    display: inline;
  }
}
