@charset "UTF-8";
/****************************************
* responsive.css
* メディアクエリのみ（PC最小幅の固定 / SP: max-width 960px）
***************************************/

/* ══════════════════════════════════════
   PC：デザインフレーム幅を下回っても
   メインカラム 1100px を維持する
   ══════════════════════════════════════ */
@media screen and (min-width: 961px) {
  body {
    min-width: var(--inner-max);
  }
}

/* ══════════════════════════════════════
   SP
   ══════════════════════════════════════ */
@media screen and (max-width: 960px) {

  :root {
    --inner-pad: 24px;
    --header-height: 64px;
  }

  /* ── ユーティリティ ── */
  .u-pc-only { display: none !important; }
  .u-sp-only { display: block !important; }

  /* ── 見出し ── */
  .c-heading__title {
    font-size: 24px;
    letter-spacing: 1.2px;
  }

  .c-heading__eyebrow {
    font-size: 12px;
  }

  /* ── ボタン ── */
  .c-btn {
    font-size: 15px;
    letter-spacing: 1.2px;
  }

  .c-btn--arrow {
    max-width: 280px;
    height: 52px;
  }

    .c-btn--arrow.-back {
    padding-left: 57px;
    padding-right: 23px;
  }

  /* ── 背景パターン ── */
  .c-pattern {
    width: 1200px;
    height: 900px;
  }

  /* ══════ ヘッダー ══════ */
  .l-header__inner {
    padding: 0 16px 0 20px;
  }

  .l-header__logo-text {
    font-size: 17px;
    letter-spacing: 0;
  }

  .l-header__nav,
  .l-header__contact {
    display: none;
  }

  .l-header__hamburger {
    display: flex;
  }

  /* ══════ KV ══════ */
  .p-kv {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-top: 100vh;
  }

  .p-kv__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    height: 100vh;
    overflow: hidden;
  }

  .p-kv__bg-img--01 {
    object-position: 100% center;
  }

  .p-kv__bg-img--02 {
    object-position: center bottom;
  }

  .p-kv__bg-img--03 {
    object-position: 79% center;
  }

  .p-kv__bg-img--04 {
    object-position: center center;
  }

  .p-kv__inner {
    max-width: none;
    height: auto;
    margin-top: -146px;
    gap: 0px;
    padding: 0 var(--inner-pad) 80px;
  }

  .p-kv__body,
  .p-kv__info {
    position: static;
    width: auto;
    height: auto;
  }

  .p-kv__body {
    box-sizing: border-box;
    /* margin-top: -40px; */
    padding: 28px 24px;
  }

  .p-kv__eyebrow,
  .p-kv__headline,
  .p-kv__lead {
    position: static;
    width: auto;
  }

  .p-kv__illust {
    display: block;
    top: -58px;
    left: 235px;
    width: 57px;
    height: auto;
  }

  .p-kv__eyebrow {
    font-size: 16px;
    line-height: 24px;
    /* 「近江八幡市 / 地域おこし協力隊（空き家担当）」の位置で折り返す */
    word-break: keep-all;
  }

  .p-kv__headline {
    padding-left: 0;
    font-size: 24px;
    letter-spacing: 0.05em;
    white-space: normal;
  }

  .p-kv__lead {
    margin-top: 20px;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: .8px;
  }

  .p-kv__info {
    box-sizing: border-box;
    margin-top: 24px;
    padding: 24px;
  }

  .p-kv__info-badge,
  .p-kv__info-title,
  .p-kv__info-meta,
  .p-kv__info-btn {
    position: static;
    width: auto;
  }

  .p-kv__info-title {
    margin-top: 14px;
    font-size: 17px;
  }

  .p-kv__info-meta {
    margin-top: 18px;
    padding: 16px 0 0;
  }

  .p-kv__info-btn {
    margin-top: 20px;
  }

  /* ══════ お知らせ ══════ */
  .p-news {
    padding: 64px 0 80px;
  }

  .p-news__card {
    margin-top: 32px;
    padding: 8px 20px;
  }

  .p-news__item {
    display: block;
    height: auto;
    padding: 20px 0;
  }

  .p-news__item + .p-news__item::before {
    right: 0;
    left: 0;
  }

  .p-news__date {
    display: inline-block;
    flex: none;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    vertical-align: middle;
  }

  .p-news__cat {
    flex: none;
    margin-left: 12px;
    vertical-align: middle;
  }

  .p-news__title {
    margin-top: 8px;
    margin-left: 0;
    margin-right: 0;
    font-size: 16px;
    line-height: 1.6;
  }

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

  .p-news__pattern {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    transform: none;
    /* bg_pattern.png は縦が柄7.5個分しかなく、リピートすると継ぎ目で柄がズレるため
       継ぎ目のない1個分のタイル画像を使う（柄の大きさは従来と同じ100px） */
    background-image: url(../img/common/bg_pattern_tile.png);
    background-repeat: repeat;
    background-position: center bottom;
    background-size: 100px 100px;
  }

  .p-news__pattern img {
    display: none;
  }

  /* ══════ 三方よし ══════ */
  .p-concept {
    padding: 64px 0 72px;
  }

  .p-concept__illust {
    width: 71px;
    height: 134px;
    margin-left: 0;
    left: auto;
    right: 19px;
    top: 6px;
  }

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

  .p-concept__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 40px;
  }

  .p-concept__card {
    height: auto;
    padding: 28px 24px 32px;
  }

  .p-concept__figure {
    height: 150px;
  }

  .p-concept__title {
    margin-top: 24px;
    font-size: 20px;
  }

  .p-concept__text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 26px;
  }

  /* ══════ その空き家、放っておかないで ══════ */
  .p-risk {
    padding: 64px 0 0;
    display: flex;
    flex-direction: column;
  }

  .p-risk__illust {
    position: static;
    bottom: auto;
    order: 2;
    width: 220px;
    margin: -6px -28px 0px;
  }

  .p-risk__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-left: 0;
  }

  .p-risk__figure {
    width: 100%;
    height: 200px;
  }

  .p-risk__text {
    font-size: 16px;
    line-height: 28px;
  }

  .p-risk__text br {
    display: none;
  }

  .p-risk__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 48px;
    padding: 0;
  }

  .p-risk__card {
    height: auto;
    padding: 28px 24px 32px;
  }

  .p-risk__icon {
    top: 24px;
    left: 24px;
  }

  .p-risk__sub {
    font-size: 18px;
  }

  .p-risk__title {
    font-size: 22px;
  }

  .p-risk__desc {
    width: auto;
    padding-left: 0;
    font-size: 16px;
  }

  .p-risk__btn {
    max-width: 280px;
  }

    /* ══════ 最新の記事 ══════ */
  .p-blog {
    padding: 64px 0 72px;
  }

  .p-blog__list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    column-gap: 0;
    row-gap: 20px;
    margin-top: 32px;
  }

  .p-blog__item--main {
    grid-row: auto;
    grid-column: auto;
  }

  .p-blog__thumb,
  .p-blog__item--main .p-blog__thumb {
    height: 200px;
  }

  .p-blog__body,
  .p-blog__item--main .p-blog__body {
    padding: 20px 20px 24px;
  }

  .p-blog__meta,
  .p-blog__item--main .p-blog__meta {
    gap: 21px;
  }

  .p-blog__title,
  .p-blog__item--main .p-blog__title {
    margin-top: 16px;
    font-size: 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .p-blog__text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 23px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

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

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

  .p-blog__pattern {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    transform: none;
    background-image: url(../img/common/bg_pattern.png);
    background-repeat: repeat;
    background-position: center bottom;
    background-size: 1000px auto;
  }

  .p-blog__pattern img {
    display: none;
  }

  /* ══════ 協力隊について ══════ */
  .p-about {
    padding: 64px 0 56px;
  }

  .p-about__illust {
    left: auto;
    right: -16px;
    margin-top: 25px;
    width: 171px;
    height: auto;
  }

  .p-about__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: auto;
    height: auto;
    margin-top: 32px;
    padding: 32px 24px;
  }

  .p-about__figure {
    width: 100%;
    height: auto;
    /* PCと同じ縦長の比率（277:354）。幅に合わせて高さが決まる */
    aspect-ratio: 277 / 354;
  }

  .p-about__name {
    margin-top: 0;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    /* SPは役職と氏名を2行に分けるので、PC用の nowrap を解除する */
    white-space: normal;
  }

  /* 「地域おこし協力隊（空き家担当）」を1行に収めるサイズと字間。
     さらに狭い画面では「（空き家担当）」の手前で折り返す */
  .p-about__name-role {
    font-size: 17px;
    letter-spacing: 0;
    word-break: keep-all;
  }

  .p-about__name-br {
    display: block;
    height: 0;
  }

  .p-about__text {
    margin-top: 20px;
    font-size: 15px;
    line-height: 28px;
  }

  .p-about__tags {
    gap: 10px;
    margin-top: 20px;
  }

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

    .p-gallery__list {
    width: 1560px;
    margin-left: 0;
    animation-name: p-gallery-scroll-sp;
  }

  .p-gallery__item {
    flex: 0 0 156px;
    width: 156px;
    height: 100px;
  }

  /* ══════ フッターCTA ══════ */
  .p-footer-contact__card {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 40px 24px;
    box-sizing: border-box;
  }

  .p-footer-contact__title {
    font-size: 18px;
  }

  .p-footer-contact__tel {
    text-indent: 0.3em;
  }

  .p-footer-contact__pattern {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    transform: none;
    background-image: url(../img/common/bg_pattern.png);
    background-repeat: repeat;
    background-position: center bottom;
    background-size: 1000px auto;
  }

  .p-footer-contact__pattern img {
    display: none;
  }

  /* ══════ フッター ══════ */
  .l-footer__inner {
    display: block;
    height: auto;
    padding: 48px var(--inner-pad) 24px;
  }

  .l-footer__brand {
    padding-left: 0;
  }

  .l-footer__logo-text {
    font-size: 17px;
    letter-spacing: 1.2px;
  }

  .l-footer__desc {
    width: auto;
    margin-top: 20px;
    font-size: 13px;
  }

  .l-footer__address {
    margin-top: 20px;
    font-size: 14px;
    line-height: 22px;
  }

  .l-footer__nav {
    margin-top: 28px;
  }

  .l-footer__nav li + li {
    margin-top: 14px;
  }

  .l-footer__nav a {
    font-size: 15px;
  }

  .l-footer__pagetop {
    position: static;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 36px;
  }

  .l-footer__pagetop-text {
    font-size: 15px;
    line-height: 1;
  }

  .l-footer__pagetop-circle {
    width: 36px;
    height: 36px;
  }

  .l-footer__copyright {
    position: static;
    margin-top: 20px;
    padding-top: 16px;
    /* 「（空き家担当）」が語中で切れないよう、文字を詰めて2行に収める */
    font-size: 11px;
    line-height: 1.3;
    word-break: keep-all;
  }

  /* ══════ 下層：ページヘッダー ══════ */
  .p-page-header {
    padding: calc(var(--header-height) + 48px) 0 48px;
  }

  .p-page-header__ja {
    font-size: 24px;
  }

    .p-page-header__en {
    font-size: 13px;
  }

  .p-page-header__inner {
    padding-left: 24px;
  }

  /* ══════ 下層：記事一覧 ══════ */
  .p-archive {
    padding: 0 0 72px;
  }

  .p-archive__list {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
    margin-top: 32px;
  }

  .p-archive__body {
    padding: 16px 18px 22px;
  }

  .p-archive__title {
    margin-top: 12px;
    font-size: 16px;
  }

  .p-archive__text {
    font-size: 14px;
}

  .p-archive__empty {
    margin-top: 48px;
    font-size: 15px;
    line-height: 28px;
  }

  .p-archive-layout {
    gap: 48px;
    align-items: stretch;
}

  .p-archive-layout .p-archive {
    padding-bottom: 0;
  }

  .p-archive__side {
    padding-bottom: 80px;
}

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

  .p-archive__heading {
  font-size: 18px;
}

  .p-news--archive {
    padding: 0 0 72px;
  }

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

  .c-pagination {
    margin-top: 60px;
  }

  .c-pagination .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  /* ══════ 下層：記事詳細 ══════ */
  .p-single {
    padding: 0 0 72px;
  }

  .p-single__card {
    margin-top: 32px;
    padding: 28px 24px 32px;
  }

  .p-single__title {
    margin-top: 16px;
    font-size: 18px;
    letter-spacing: 1px;
  }

  .p-single__body {
    margin-top: 28px;
    font-size: 16px;
    line-height: 30px;
  }

  .p-single__body h2 {
    margin-top: 40px;
    font-size: 20px;
  }

  .p-single__body h3 {
    margin-top: 32px;
    font-size: 18px;
  }

  .p-single__body table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .p-single__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 40px;
    text-align: center;
  }

  .p-single__nav-next {
    text-align: center;
  }

  .p-single__nav-back {
    display: flex;
    justify-content: center;
    order: 3;
  }

  /* ══════ よくあるご質問 ══════ */
  .p-faq {
    padding: 48px 0 80px;
  }

    .p-faq__q-text {
    font-size: 16px;
  }

    .p-faq__list {
    gap: 24px;
}

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

 /* ══════ お問い合わせ　フォーム前後 ══════ */
  .p-contact_head_text_wrapper {
  margin-top: 48px;
}

  .p-contact_head_text {
    padding-left: var(--inner-pad);
    padding-right: var(--inner-pad);
  }

  .p-contact_submit {
    margin-bottom: 80px;
  }

  /* ══════ お問い合わせフォーム ══════ */
  .p-contact_inner {
    padding: 0px var(--inner-pad);
  }

  .p-contact_content {
    padding: 32px 24px;
  }

  .p-contact_content_list {
    width: 100%;
  }

  .p-contact_content_list_item {
    display: block;
    margin-bottom: 24px;
  }

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

  .p-contact_text {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 8px !important;
    font-size: 16px !important;
  }

  .p-contact_sub_text {
    margin-left: 12px;
    flex-shrink: 0;
  }

  .p-contact_input {
    width: 100%;
  }

  .wpcf7 input,
  .wpcf7 textarea,
  .wpcf7 select {
    width: 100%;
    box-sizing: border-box;
  }

    .p-contact_input--checkbox .wpcf7-list-item {
    display: block;
    margin: 0 0 12px;
  }

  .p-contact_input--checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .p-contact_content_footer input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin: 0;
  }

  .p-contact_input--checkbox input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin: 0;
  }

  .p-contact_input--checkbox .wpcf7-list-item-label {
    display: inline;
  }

 /* ══════ お問い合わせ完了 ══════ */
  .p-contact-complete__head {
  font-size: 22px;
}
  .p-contact-complete {
  padding: 48px 0 80px;
}

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