/*開発側で追記したCSS*/
.alert-danger{color:#e62222;font-size:1.6rem}
.is-invalid{border:2px solid #CC0000 !important;}
/* 支援を受けた機関モーダル用*/
.content {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.openModalButton {
    font-size: 1.6rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    border: 2px solid #6d6e68;
    min-width: 208px;
    border-radius: 30px;
    cursor: pointer;
    background-color: white;
    padding: 10px 20px;
    color: #272727;
}
.openModalButton::after {
    content: "　▶";
}
.buttonDecision {
    font-size: 1.6rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    border: 1px solid #497d21;
    min-width: 180px;
    border-radius: 30px;
    cursor: pointer;
    background-color: #497d21;
    padding: 10px 20px;
    color: white;
}
.buttonDecision::after {
    content: "　→";
}
.buttonCancel {
    font-size: 1.6rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    border: 1px solid #6d6e69;
    min-width: 180px;
    border-radius: 30px;
    cursor: pointer;
    background-color: white;
    padding: 10px 20px;
    color: #272727;
}
.buttonCancel::before {
    content: "←　";
}
.modal {
    font-size: 1.6rem;
    position: fixed;
    display: flex;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}
.modal_display {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F7F8F2;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    gap: 16px;
}
.modal-button-area {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
/* 支援を受けた機関選択モーダル ブレースホルダのスタイル */
.styled-search-box {
    background-color: #F5F6F0;
}
.styled-search-box::placeholder {
    color: #6E6E6E;
}
/* スマートフォンの場合は縦並び */
@media (max-width: 600px) {
    .modal-button-area {
        flex-direction: column;
        gap: 16px;
        width: auto;
    }
}
.closeButton {
    color: #6d6e69;
    margin-left:auto;
    border: 1px solid #e0e0dc;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    padding: 0 10px;
    float: right;
    font-size: 1em;
    line-height: 1.5em;
    font-weight: bold;
    cursor: pointer;
}
.closeButtonIcon {
    font-size: 2em;
    font-weight: bold;
}
.close:hover, .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
@media (max-width: 600px) {
    .modal-content {
        width: 100%;
        height: calc(100% - 20px);
        margin: 10px;
    }
}
#citySelectWrapper {
    width: 100%;
    height: 300px;
    border: 1px solid #6d6e69;
    border-radius: 8px;
    overflow: hidden;
}
#citySelect {
    width: 100%;
    height: 300px;
    overflow-y: scroll;
    scrollbar-width: thin;
    background-color: white;
    cursor: pointer;
}
.citySelect-selected {
    background-color: #89cee9;
}
.citySelect-option {
    padding: 10px;
}
/* citySelect-option 2個めの要素以降に border-top を　*/
.citySelect-option:not(:first-child) {
    border-top: 1px solid #6d6e69;
}
/* citySelect-option スマートフォンの場合に時間をあける */
@media (max-width: 600px) {
    .citySelect-option {
        font-size: 1.2em;
        line-height: 1.2em;
    }
}
input[type="text"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #6d6e69;
}
/*新しい活動レポート*/
img.preview{
    width: 100%
}

/* 用語集カテゴリトップ：選択状態*/
.p-glossary__search__button.is-active {
    border: 2px solid #6d6e69;
}

/* バリデーションエラーにより項目枠を強調表示する定義 */
.a-input__item.is-error {
    border-color: #e62222;
    border-width: .2rem;
}
.a-radio--horizontal.is-error {
    border-color: #e62222;
    border-width: .2rem;
    border-radius: 8px;
    padding: 2px;
}

.o-grid-column2 {
    grid-column: 2;
}

/* ページネーションのボタン領域を折り返す */
.m-pagination__buttons {
    flex-wrap: wrap;
}

/* カードの◯アイコン画像：縦横可変◯型対応 大元のスタイル定義をオーバーライド また、クラスがない箇所には新規定義「.m-profile__icon」*/
.m-card__name__thumbnail, .m-name-organization img, .m-profile__name img, .m-profile__icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}
/* カードの◯アイコン画像の領域を確保するため、団体名表示部のサイズを◯アイコン分とflexのgap分確保する */
.m-card__name__text {
    width: calc(100% - 40px - 0.5rem);
}
/* A02000_イベント一覧　随時募集中団体のアイコン　オーバーライド */
.m-card-hiring__image {
    object-fit: cover;
}
/* C04001_団体ページ_確認、顔写真を◯にする */
.p-organization-detail__greeting__icon img {
    object-fit: cover;
    border-radius: 50%;
}

/* A13000_Chot介護　団体アイコン オーバーライド */
.p-chotcare__organizations__img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
}

.custom-a-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.8rem;
    color: #0759e8;
    gap: 1rem;
}

.custom-a-link:hover {
    text-decoration: underline;
}

/* Trix入力時の小見出し */
.m-trix-content h1, .m-trix-content--secondary h1 {
    padding: .7rem 0 .7rem 1rem;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1.35;
    color: #0877a1;
    border-left: 1rem solid #9ae0f2;
}

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

.p-user__text--alert {
    width: 80rem;
    max-width: 100%;
    margin-inline: auto;
}

.o-pagination-ellipsis::after {
    content: '…';
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1rem;
    height: 5rem;
}

.o-global-header--secondary .m-search--header {
    background-color: #0e7e09;
}

 /* 英数字を含むすべての単語を折り返す */
.a-title--4-2,
.m-card__text,
.m-card__name__text,
.m-trix-content,
.m-article__name,
.m-card-hiring__title,
.o-article__lead,
.o-article__content,
.o-article__hero__caption,
.a-title-section,
.a-title-sub-section,
.a-title-category--other,
.m-event-info__list,
.m-event-detail__video-caption,
.m-forms__text {
    word-break: break-all;
}

@media (max-width: 1199px) {
    body:not(.is-logined) .l-footer {
        padding-top: 40px;
    }
}

.m-event-detail__links {
    display: flex;
    flex-direction: column;
}

/* 写真追加時のマージン設定 */
.m-forms__file__body+.m-forms__file__body {
    margin-top: 2rem;
}
@media (min-width: 1200px) {
    .m-forms__file__body+.m-forms__file__body {
        margin-top: 4rem;
    }
}

/* SPでのイベント一覧/活動レポート一覧カードのマージン設定 */
@media (max-width: 759px) {
    .o-events__item:nth-last-of-type(1) {
        border-bottom: none;
    }
}

/* イベント詳細画面の活動テーマ対応 */
.l-tag .a-tag {
    margin-bottom: .5rem;
}

/* イベント申し込み画面の活動テーマ対応 */
.l-wrapper--event-entry .p-event__header .p-event__header__no {
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 1rem;
}

/* 団体ページ掲載写真が1枚のケース対応 */
@media (max-width: 1199px) {
    .p-organization-detail__hero__carousel>.m-card--phto,
    .o-confirm__hero__carousel>.m-card--phto {
        padding: 0 20px;
    }
}

.l-wrapper--user .p-user__notice .a-title-secondary.is-hide::after,
.p-organization__notice .a-title-secondary--sub.is-hide::after {
    display: none;
}

.p-organization__notice .a-title-secondary--sub {
    position: relative;
    width: fit-content;
    margin-inline: auto;
}
.p-organization__notice .a-title-secondary--sub::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: #e62222;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

/* イベント申し込み画面のフォームのリンクボタンのカーソルをポインターに変更 */
.l-wrapper--event-entry .p-event__body .p-event-entry-forms .m-forms__full a {
    cursor: pointer;
}

.l-wrapper--user .p-user__header__user {
    background-color: #fff;
}

.l-wrapper--event-entry .p-event__body .p-event-entry-forms .p-event-entry-forms__section:first-of-type {
    border-top: 0;
}

@media (max-width: 1200px) {
    .m-list-entry__mail {
        max-width: fit-content;
    }
}

/* 活動レポート一覧掲載写真 */
.p-event-list__card .m-card--report .m-card__img {
    height: 15.8rem;
}

.a-orderedlist, .a-list-circle-item {
    font-weight: normal;
}
.a-orderedlist > li:nth-child(n+2) {
    margin-top: 2rem;
}
.a-disc-list {
    display: grid;
    padding-left: 1em;
    font-size: 1.8rem;
    line-height: 2;
    gap: 1rem;
}
@media screen and (min-width: 1200px) {
    .a-disc-list {
        padding-left: 2em;
    }
}
.a-disc-list li {
    list-style-type: disc;
}
.a-list-circle-item a {
    width: fit-content;
}
.a-ordered-nested-list {
    margin-top: 1rem;
    margin-left: 2.2rem;
    counter-reset: nested-counter; /* 入れ子リストのカウンターをリセット */
}

.a-ordered-nested-list li {
    list-style-type: none; /* 通常の数字を無効にする */
    counter-increment: nested-counter;
    position: relative;
}

.a-ordered-nested-list li::before {
    content: counter(nested-counter); /* 丸数字表示 */
    position: absolute;
    display: inline-block;
    align-items: center;
    left: -2.2rem;
    top: 1rem;
    font-size: 1.4rem;
    line-height: 1.4rem;
    border: 1px solid #222;
    border-radius: 50%;
    text-align: center;
    width: 1.8rem;
    height: 1.8rem;
}

/* イベント申し込み完了画面の不要な罫線を削除 */
.p-event__header:not(:has(.p-event__pagenation)).p-event__header--complete::after, .p-event__body:not(:has(.p-event__pagenation)).p-event__body--complete::after {
    content: none;
}

@media (min-width: 1200px) {
    .p-event__header:not(:has(.p-event__pagenation)).p-event__header--complete, .p-event__body:not(:has(.p-event__pagenation)).p-event__body--complete {
        padding-bottom: 0;
        border-bottom: none;
    }
}

/* トップページのイベント・コラム・活動レポートが一件の場合のレイアウト調整 */
.m-card--single-event,
.m-card--single-column,
.m-card--single-report {
    display: flex;
    justify-content: center;
    min-height: 23rem;
    padding: 2rem;
}
.m-card--single-event > .m-card,
.m-card--single-column > .m-card--column,
.m-card--single-report > .m-card--report {
    width: 27rem;
}
@media (min-width: 1200px) {
    .m-card--single-event > .m-card,
    .m-card--single-report > .m-card--report {
        width: 32rem;
    }
}
@media (min-width: 1200px) {
    .m-card--single-column > .m-card--column {
        width: 64rem;
    }
}

@media (min-width: 1200px) {
    .p-top__carousel--help {
        position: relative;
        z-index: 2;
        margin-top: 9.6rem;
        border-top: 0;
    }
}

/* プルダウンの下三角マーク（▼）クリッカブル対応 */
.a-input--select-month::after, .a-input--select::after {
    pointer-events: none;
}

.p-navi .p-navi__text {
    padding-bottom: 1rem;
}

.p-navi .p-navi__buttons {
    margin:1rem auto 0
}
@media screen and (min-width:1200px) {
    .p-navi .p-navi__buttons {
        margin:3rem auto 0
    }
}

.a-radio__input.is-ios-safari {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
}

.p-inquery__time__weekday, .p-inquery__time__holiday {
    justify-self: start;
}
.a-contact-holiday-list {
    padding-left: 2rem;
    font-size: 1.8rem;
    line-height: 2;
    margin-top: 1rem;
    white-space: nowrap;
}
@media screen and (min-width: 1200px) {
    .a-contact-holiday-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
.a-contact-holiday-list li {
    list-style-type: disc;
    width: 100%;
    max-width: 34rem;
    text-align: left;
}

.p-event__disp-date {
    font-size: 1.7rem;
    color: #222222;
    white-space: nowrap;
    margin-left: auto; /* ボタンの右側に押し出す */
    padding-top: 2.0rem;
    flex-shrink: 0;
}

.p-event__copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.m-card .m-card__img img {
    width: auto;
    object-fit: contain;
}

.registration_message {
    margin-top: 30px;
    text-align: center;
}

.l-wrapper--chotcare .l-main__content .p-chotcare .p-chotcare__organizations>li .p-chotcare__organizations__title {
    height: auto;
    overflow: visible;
}

.m-card--column .m-card__img {
    height: 15.2rem;
}
@media screen and (min-width: 1200px) {
    .m-card--column .m-card__img {
        height: 36rem;
    }
}

.p-top__column__list .m-card__img img {
    width: auto;
    height: 100%;
    object-fit: contain;
}
.m-article__img img {
    width: auto;
    height: 100%;
    object-fit: contain;
    border-radius: .5rem;
}
.o-confirm__link a, .o-article__link a {
  color: #0877a1;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.o-confirm__link a:hover, .o-article__link a:hover {
  opacity: 1;
  border-bottom: 2px solid #0877a1;
}

.u-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
