﻿/* WordPress Gallery
------------------------------------------ */

.gallery:not(body) {
    margin-left: -0.5em;
    margin-right: -0.5em;
}

.gallery:not(body):after {
    display: table;
    content: "";
    clear: both;
}

.gallery-item {
    margin: 0;
    float: left;
    padding: 0.5em;
}

.gallery-item img {
    width: 100%;
}

.gallery-columns-1 .gallery-item {
    width: 100%;
    float: none;
}

.gallery-columns-2 .gallery-item {
    width: 50%;
}

.gallery-columns-3 .gallery-item {
    width: 33.3333%;
}

.gallery-columns-4 .gallery-item {
    width: 25%;
}

.gallery-columns-5 .gallery-item {
    width: 20%;
}

.gallery-columns-6 .gallery-item {
    width: 16.6667%;
}

.gallery-columns-7 .gallery-item {
    width: 14.2857%;
}

.gallery-columns-8 .gallery-item {
    width: 12.5%;
}

.gallery-columns-9 .gallery-item {
    width: 11.1111%;
}

.gallery-columns-2 .gallery-item:nth-of-type(2n + 1),
.gallery-columns-3 .gallery-item:nth-of-type(3n + 1),
.gallery-columns-4 .gallery-item:nth-of-type(4n + 1),
.gallery-columns-5 .gallery-item:nth-of-type(5n + 1),
.gallery-columns-6 .gallery-item:nth-of-type(6n + 1),
.gallery-columns-7 .gallery-item:nth-of-type(7n + 1),
.gallery-columns-8 .gallery-item:nth-of-type(8n + 1),
.gallery-columns-9 .gallery-item:nth-of-type(9n + 1) {
    clear: left;
}

/* WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/*固定ページのクラシック版段落ブロックで画像を張り替えた際のマージン防止*/
body.page img.alignnone {
    margin: 0;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    white-space: nowrap;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.logged-in.admin-bar .l-header,
.logged-in.admin-bar .c-slidebar-button {
    margin-top: var(--wp-admin--admin-bar--height) !important;
}

.mw_wp_form_input .u-hidden-mw-wp-input,
.mw_wp_form_confirm .u-hidden-mw-wp-confirm,
.mw_wp_form_complete .u-hidden-mw-wp-complete {
    display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy {
    display: none !important;
}

.mw_wp_form_confirm #zipauto,
.mw_wp_form_confirm .c-forms__note,
.mw_wp_form_confirm .c-forms__block.is-privacy-policy {
    display: none !important;
}

.mw_wp_form_confirm .c-forms__privacy a,
.mw_wp_form_confirm .c-forms__block a {
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: none !important;
}

.c-forms__privacy-button-wrapper .mwform-checkbox-field.horizontal-item {
    width: 1.5rem;
}

.mw_wp_form .horizontal-item + .horizontal-item {
    margin-left: 0;
}

.c-forms__radio.is-column-02 .error,
.c-forms__checkbox.is-column-02 .error {
    grid-column: 1 / -1;
}

.wp-embedded-content {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px;
    margin-bottom: 16px;
}

/* Comment
-------------------------------------------------------------- */

.comment-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.comment {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #f5f6fa;
}

.comment-author {
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 0.8em;
    color: #666;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
}

.comment-form textarea,
.comment-form input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

.comment-reply-link {
    margin-top: 10px;
}

.comment-reply-link.c-button.is-sm {
    padding: 0.3rem 1.1rem;
    font-size: 0.75rem;
}

.comment-reply-link:after {
    display: none;
}

.comment-notes {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.comment-form .required {
    color: #ba0000;
}

.comment-form .logged-in-as {
    display: none;
}

.comment-form-cookies-consent {
    margin: 15px 0;
    display: flex;
}

.comment-form-cookies-consent > input {
    margin-top: 2px;
    margin-right: 5px;
}

#cancel-comment-reply-link {
    font-size: 1rem;
    margin-left: 1rem;
}

/* Breadcrumb
-------------------------------------------------------------- */

/*.c-breadcrumb__inner {*/
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
/*}*/

.c-icon-font {
    position: relative;
    top: 2px;
}

.c-tabs__content.is-no-padding .l-two-column {
    padding-top: 0;
}

.c-menu-list__checkbox-item {
    display: flex;
    align-items: center;
    line-height: 1;
}

.c-menu-list__checkbox-item:not(:last-child) {
    margin-bottom: 0.5rem;
}

.c-result-info__poppup-button {
    white-space: nowrap;
}

button.c-button {
    border: none;
}

.c-menu-list__select {
    padding-right: 32px;
}

@media screen and (max-width: 46.8125em) {
    .l-page-header:not(.is-img-wide) .l-page-header__image {
        overflow: hidden;
        right: -16px;
    }

    .l-page-header:not(.is-img-wide) .l-page-header__image img {
        min-width: 500px;
        aspect-ratio: 500 / 200;
        object-fit: cover;
    }
}

.c-menu-list__item.is-hidden {
    display: none;
}

@media screen and (max-width: 46.8125em) {
    /* .c-forms__input input {
        -webkit-appearance: none;
        appearance: none;
        font-size: 16px;
        padding: 0.5625rem 0.75rem;
        width: 100%;
    } */

    .c-forms__input input[type="date"],
    .c-forms__input input[type="time"],
    .c-forms__input input[type="datetime-local"] {
        -webkit-appearance: none;
        height: 44px;
        padding: 0.5625rem 0.75rem;
    }

    .c-forms__input input[type="date"]::-webkit-date-and-time-value,
    .c-forms__input input[type="time"]::-webkit-date-and-time-value {
        text-align: left;
    }
}

.c-forms__input input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.c-forms__input input[type="date"] {
    position: relative;
    padding-left: 3rem;
    background-image: url(../image/icon-form-calendar-month.svg);
    background-repeat: no-repeat;
    background-size: 1.0625rem 0.8125rem;
    background-position: left 1.0625rem center;
}

.wpcf7-form-control-wrap {
    display: block;
}

.c-info-tel-box__wrapper {
    text-align: center;
}

.c-pickup__text {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.c-news-card__block {
    display: flex;
    flex-direction: column;
}

.c-news-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.c-news-card__image {
    flex: none;
}

.c-news-card__text {
    margin-top: auto;
}

@media (min-width: 751px) {
    .c-related-service__blocks {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        row-gap: 1rem;
    }

    .c-related-service__block {
        height: auto;
    }
}

.c-mv-search-block__select {
    background-position-x: right 18px;
}

.c-table td a {
    text-decoration: underline;
}

.c-box-comment .l-post-content p {
    font-size: 1rem;
}

@media screen and (max-width: 46.8125em) {
    .c-box-comment .l-post-content p {
        font-size: 0.875rem;
    }
}

.logged-in.admin-bar .c-sticky-search-form__slidebar {
    top: calc(56px + var(--wp-admin--admin-bar--height));
}

.c-accordion-info__list-icon {
    display: inline-block;
    line-height: 1;
    width: 16px;
    height: 16px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    cursor: pointer;
}

.c-accordion-info__list-icon svg {
    width: 100%;
    height: 100%;
}

.c-accordion-info__list {
    padding-right: 24px;
}

.c-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    padding: 10px;
    background: rgba(58, 48, 39, 0.9);
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.5;
    z-index: 100;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

.c-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(58, 48, 39, 0.9) transparent transparent transparent;
}

@media (max-width: 767px) {
    .c-tooltip {
        width: 200px;
        padding: 8px;
        font-size: 11px;
        bottom: auto;
        left: auto;
        top: 50%;
        right: calc(100% + 10px);
        transform: translateY(-50%);
        margin-bottom: 0;
    }

    .c-tooltip::after {
        top: 50%;
        left: auto;
        right: -10px;
        transform: translateY(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: transparent transparent transparent rgba(58, 48, 39, 0.9);
    }
}

select:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    /* 斜線ストライプをうっすら重ねて "触れない" 感を強調 */
    /* background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0 8px, transparent 8px 16px),
        url("data:image/svg+xml,\<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='2,5 7,10 12,5'/></svg>"); */
    /* background-size: 200% 200%, 0.65rem; */
    /* background-position: 0 0, right 0.75rem center; */
    background-image: none;
    opacity: 1;
}

@media screen and (min-device-pixel-ratio: 2) {
    select:not(:disabled):focus {
        outline: 2px solid #0d99ff;
        outline-offset: 2px;
    }
}

.c-mv-search-block__item.is-radio.is-mix .c-mv-search-block__radio-item {
    font-size: 13px;
}

/* 非同期カウント表示のスタイル */
.js-pets-search-count {
    display: inline-block;
    font-weight: bold;
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #fa762b;
    text-align: center;
    width: 100%;
}

.js-pets-search-count .is-loading {
    opacity: 0.7;
    color: #666;
}

/* sticky-search-form向けのスタイル調整 */
.c-sticky-search-form__count-wrapper {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 10px;
}

.c-sticky-search-form__count {
    display: inline-block;
    font-weight: bold;
    color: #fa762b;
    font-size: 1rem;
    margin: 0;
}

.c-sticky-search-form__count::before {
    content: "＼";
    margin-right: 5px;
}

.c-sticky-search-form__count::after {
    content: "／";
    margin-left: 5px;
}

/* .c-sticky-search-form__countの中にis-loadingがある場合擬似要素を表示しない */
.c-sticky-search-form__count:has(.is-loading)::before,
.c-sticky-search-form__count:has(.is-loading)::after {
    display: none;
}

/* sidebar-pets向けのスタイル調整 */
.c-menu-list__count {
    display: block;
    font-size: 0.95em;
    font-weight: bold;
    color: #fa762b;
    text-align: center;
    margin-bottom: 0;
}

.c-menu-list__count::before {
    content: "＼";
    margin-right: 5px;
}

.c-menu-list__count::after {
    content: "／";
    margin-left: 5px;
}

.c-menu-list__count:has(.is-loading)::before,
.c-menu-list__count:has(.is-loading)::after {
    display: none;
}

/* トップページ検索フォーム向けのスタイル調整 */
.c-mv-search-block__wrapper {
    position: relative;
}

/* カウント表示を吹き出し風に右上に */
.c-mv-search-block__count {
    display: inline-block;
    width: auto;
    position: absolute;
    top: -10px; /* ボタンから少し上に */
    right: -10px; /* ボタンの右上にずらす */
    background: #fa762b;
    color: #fff;
    font-weight: bold;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px; /* ふわっと丸み */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* 軽い影を追加 */
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

/* サブミットボタンのラッパーをrelativeにする */
.c-mv-search-block__submit-wrapper {
    position: relative; /* 吹き出し位置の基準になる */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.c-mv-search-block__count.js-pets-search-count .is-loading {
    color: #fff;
}

@media screen and (max-width: 46.8125em) {
    .js-pets-search-count,
    .c-sticky-search-form__count,
    .c-menu-list__count,
    .c-mv-search-block__count {
        font-size: 1rem;
    }
}

/* 検索件数表示の制御 */
.js-pets-search-count.is-ready {
    display: none !important;
}


.hidden-field {
    opacity: 0;
    position: absolute;
    top: -10000px;
    left: -10000px;
}

.wpcf7-list-item {
    margin: 0;
}
