@charset "UTF-8";
/*
Theme Name:KADAN child
Theme URI:https://tcd-theme.com/tcd056
Description:WordPressテーマ「KADAN」の子テーマ
Template:kadan_tcd056
Author:TCD
Author URI:https://tcd-theme.com/
Version:1.34
*/

/*
  ここから下にCSSを追記してください。
*/

/* モーダル表示時もスクロールバー領域を維持し、ページ全体の横ずれを防ぎます。 */
html {
    scrollbar-gutter: stable;
}

/* =============================================================================
   Fixed benefit trigger
   ============================================================================= */

.c-fixed-banner-toggle {
    -webkit-appearance: none;
    appearance: none;
    position: fixed;
    right: 0;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    z-index: 1001;
    box-sizing: border-box;
    display: block;
    padding: 0;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
    background: #31533e;
    border: 1px solid #f4b942;
    border-right: 0;
    border-radius: 0;
    box-shadow: 0 0.375rem 1rem rgb(0 0 0 / 32%);
    filter: drop-shadow(0 0 0.25rem rgb(244 185 66 / 12%));
    animation: c-fixed-banner-toggle-breathe 6.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
    cursor: pointer;
}

@media (max-width: 767px) {
    .c-fixed-banner-toggle {
        bottom: var(--choushichi-floating-bottom, calc(1rem + env(safe-area-inset-bottom)));
        display: grid;
        width: 3.25rem;
        font-size: 0.75rem;
        place-items: center;
    }
}

@media (any-hover: hover) {
    .c-fixed-banner-toggle:hover {
        background: #244331;
    }
}

@media (max-width: 767px) {
    body.show_footer_bar .c-fixed-banner-toggle {
        bottom: var(--choushichi-floating-bottom, calc(5.5rem + env(safe-area-inset-bottom)));
    }
}

.c-fixed-banner-toggle:focus-visible {
    outline: 3px solid #f4b942;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .c-fixed-banner-toggle {
        filter: drop-shadow(0 0 0.375rem rgb(244 185 66 / 18%));
        animation: none;
    }
}

.c-fixed-banner-toggle__text {
    display: block;
    padding: 0.75rem 1rem;
}

@media (max-width: 767px) {
    .c-fixed-banner-toggle__text {
        width: auto;
        padding: 0.75rem 0;
        line-height: 1;
        letter-spacing: 0.12em;
        text-orientation: upright;
        white-space: nowrap;
        -webkit-writing-mode: vertical-rl;
        writing-mode: vertical-rl;
    }
}

@keyframes c-fixed-banner-toggle-breathe {
    0%,
    100% {
        filter: drop-shadow(0 0 0.25rem rgb(244 185 66 / 12%));
    }

    48% {
        filter:
            drop-shadow(0 0 0.75rem rgb(244 185 66 / 42%))
            drop-shadow(0 0 1.25rem rgb(244 185 66 / 22%));
    }
}

/* =============================================================================
   Benefit modal
   ============================================================================= */

.c-benefit-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    padding: 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgb(12 22 16 / 72%);
    place-items: center;
}

@media (max-width: 767px) {
    .c-benefit-modal {
        padding: 1rem;
    }
}

.c-benefit-modal[hidden] {
    display: none;
}

.c-benefit-modal__panel {
    position: relative;
    box-sizing: border-box;
    width: min(36rem, 100%);
    padding: 3.5rem 3rem 3rem;
    color: #2e392f;
    text-align: center;
    background: #fffdf5;
    border: 1px solid #d6c8a8;
    border-radius: 12px;
    box-shadow: 0 1.25rem 3.75rem rgb(0 0 0 / 30%);
}

@media (max-width: 767px) {
    .c-benefit-modal__panel {
        padding: 3rem 1.5rem 2rem;
    }
}

.c-benefit-modal__panel:focus {
    outline: none;
}

.c-benefit-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #31533e;
    font-size: 2rem;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 50%;
    place-items: center;
    cursor: pointer;
}

.c-benefit-modal__close:focus-visible {
    outline: 3px solid #f4b942;
    outline-offset: 2px;
}

.c-benefit-modal__eyebrow {
    margin: 0 0 0.5rem;
    color: #80621e;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.c-benefit-modal__title {
    margin: 0;
    color: #31533e;
    font-family: inherit;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.3;
}

.c-benefit-modal__notes {
    padding-top: 1.5rem;
    text-align: left;
    border-top: 1px solid #d6c8a8;
}

.c-benefit-modal__notes p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.9;
}

@media (max-width: 767px) {
    .c-benefit-modal__notes p {
        font-size: 0.875rem;
    }
}

.c-benefit-modal__notes p + p {
    margin-top: 0.75rem;
}

.c-benefit-modal__actions {
    display: grid;
    gap: 0.875rem;
    margin-top: 1.75rem;
    justify-items: center;
}

.c-benefit-modal__line {
    display: inline-block;
    line-height: 0;
}

.c-benefit-modal__line img {
    display: block;
    width: 10rem;
    height: auto;
    transition: opacity 0.3s ease;
}

.c-benefit-modal__line:focus-visible {
    outline: 3px solid #5c4b3b;
    outline-offset: 3px;
}

@media (any-hover: hover) {
    .c-benefit-modal__line:hover img {
        opacity: 0.8;
    }
}

.c-benefit-modal__phone {
    margin: 0;
    color: #5c4b3b;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none;
}

.c-benefit-modal__phone--mobile {
    display: none;
}

@media (max-width: 767px) {
    .c-benefit-modal__phone--mobile {
        display: block;
    }
}

@media (max-width: 767px) {
    .c-benefit-modal__phone--desktop {
        display: none;
    }
}

.c-benefit-modal__phone--mobile:focus-visible {
    outline: 3px solid #f4b942;
    outline-offset: 3px;
}

body.is-benefit-modal-open {
    overflow: hidden;
}
