/* エントリーフォーム */

.entry-page,
.entry-thanks-page {
    background: #FAF8F5;
    color: #4A423F;
}

.entry-hero {
    position: relative;
    min-height: 56svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
}

.entry-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.entry-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(250, 248, 245, 0.48), rgba(250, 248, 245, 0.94)),
        linear-gradient(90deg, rgba(250, 248, 245, 0.92), rgba(250, 248, 245, 0.38));
}

.entry-hero__inner {
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 8rem 1.5rem 4.5rem;
}

.entry-eyebrow {
    display: block;
    margin-bottom: 0.85rem;
    color: #C27B75;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.entry-hero h1,
.entry-side-card h2,
.entry-confirmation h2,
.entry-thanks-card h1 {
    color: #4A423F;
    font-family: "Noto Serif JP", serif;
    letter-spacing: 0.08em;
}

.entry-hero h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 1.25;
}

.entry-hero p:not(.entry-eyebrow) {
    max-width: 43rem;
    color: rgba(74, 66, 63, 0.78);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 2;
}

.entry-section {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(235, 203, 204, 0.46), transparent 30rem),
        radial-gradient(circle at 92% 36%, rgba(216, 226, 223, 0.5), transparent 28rem),
        #FAF8F5;
}

.entry-container {
    width: min(100%, 72rem);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 0.66fr);
    gap: 1.5rem;
    align-items: start;
}

.entry-side {
    position: sticky;
    top: 6rem;
    display: grid;
    gap: 1rem;
}

.entry-side-card,
.entry-form,
.entry-confirmation,
.entry-thanks-card {
    border: 1px solid rgba(235, 203, 204, 0.72);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px -48px rgba(74, 66, 63, 0.38);
}

.entry-side-card,
.entry-form,
.entry-confirmation {
    padding: clamp(1.25rem, 3vw, 1.8rem);
}

.entry-side-card--soft {
    background:
        radial-gradient(circle at 88% 12%, rgba(245, 228, 228, 0.82), transparent 34%),
        rgba(255, 255, 255, 0.94);
}

.entry-side-card h2 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.6;
}

.entry-side-card p {
    color: rgba(74, 66, 63, 0.76);
    font-size: 0.9rem;
    line-height: 1.9;
}

.entry-tel {
    margin-top: 1rem;
    color: #4A423F !important;
    font-weight: 500;
}

.entry-tel-note {
    margin-top: 0.35rem;
    font-size: 0.78rem !important;
    line-height: 1.7 !important;
}

.entry-flow {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entry-flow li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 0.75rem;
    color: rgba(74, 66, 63, 0.76);
    font-size: 0.88rem;
    line-height: 1.8;
}

.entry-flow span {
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    background: #F5E4E4;
    color: #4A423F;
    font-size: 0.8rem;
    font-weight: 500;
}

.entry-flow strong {
    color: #4A423F;
}

.entry-line-button,
.entry-submit-button,
.entry-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 500;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.entry-line-button {
    margin-top: 1rem;
    border: 1px solid #06C755;
    color: #06C755;
}

.entry-line-button:hover,
.entry-line-button:focus-visible {
    background: #06C755;
    color: #FFFFFF;
}

.entry-form {
    display: grid;
    gap: 1.3rem;
}

.entry-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.entry-fieldset {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.entry-fieldset legend,
.entry-label {
    color: #4A423F;
    font-size: 0.92rem;
    font-weight: 500;
}

.entry-label {
    display: grid;
    gap: 0.55rem;
}

.entry-required,
.entry-optional {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.25rem;
    padding: 0 0.48rem;
    border-radius: 9999px;
    color: #FFFFFF;
    font-size: 0.66rem;
    line-height: 1;
}

.entry-required {
    background: #C27B75;
}

.entry-optional {
    background: #9FBDB5;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.entry-control {
    width: 100%;
    border: 1px solid rgba(216, 226, 223, 0.96);
    border-radius: 0.55rem;
    background: #FFFFFF;
    padding: 0.9rem 1rem;
    color: #4A423F;
    font: inherit;
    line-height: 1.6;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.entry-control:focus {
    outline: none;
    border-color: rgba(194, 123, 117, 0.72);
    box-shadow: 0 0 0 4px rgba(235, 203, 204, 0.35);
}

.entry-textarea {
    min-height: 10rem;
    resize: vertical;
}

.entry-segment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}

.entry-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}

.entry-segment label,
.entry-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.85rem;
    border: 1px solid rgba(216, 226, 223, 0.96);
    border-radius: 0.55rem;
    background: #FFFFFF;
    color: #4A423F;
    cursor: pointer;
    text-align: center;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.entry-segment input,
.entry-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.entry-segment label:has(input:checked),
.entry-choice:has(input:checked) {
    border-color: rgba(194, 123, 117, 0.72);
    background: #F5E4E4;
    box-shadow: 0 0 0 3px rgba(235, 203, 204, 0.24);
}

.entry-attachment {
    display: grid;
    gap: 0.7rem;
    border: 1px solid rgba(216, 226, 223, 0.72);
    border-radius: 0.75rem;
    background: rgba(250, 248, 245, 0.72);
    padding: 1rem;
}

.entry-file-note {
    color: rgba(122, 114, 110, 0.95);
    font-size: 0.8rem;
    line-height: 1.8;
}

.entry-file-note--post-free {
    color: #4A423F;
    font-weight: 600;
}

.entry-file-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.9rem;
}

.entry-file-add-button {
    min-height: 2.7rem;
    padding: 0.62rem 1rem;
    border: 1px solid rgba(216, 226, 223, 0.96);
    border-radius: 0.55rem;
    background: #FFFFFF;
    color: #4A423F;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.entry-file-add-button:hover,
.entry-file-add-button:focus-visible {
    border-color: rgba(194, 123, 117, 0.6);
    background: #F5E4E4;
    color: #4A423F;
}

.entry-file-add-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.entry-file-action-note {
    margin: 0;
    color: rgba(122, 114, 110, 0.95);
    font-size: 0.78rem;
    line-height: 1.7;
}

.entry-file-inputs {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.entry-file-control {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.entry-file-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.entry-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem 0.55rem 0.8rem;
    border: 1px solid rgba(216, 226, 223, 0.84);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.74);
    color: #4A423F;
    font-size: 0.8rem;
    line-height: 1.6;
}

.entry-file-list li > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.entry-file-remove-button {
    flex: 0 0 auto;
    padding: 0.28rem 0.48rem;
    border: 1px solid rgba(194, 123, 117, 0.38);
    border-radius: 9999px;
    background: #FFFFFF;
    color: #A86B65;
    font: inherit;
    font-size: 0.72rem;
    line-height: 1.2;
}

.entry-file-remove-button:hover,
.entry-file-remove-button:focus-visible {
    background: #F5E4E4;
}

.entry-error {
    border: 1px solid rgba(194, 86, 82, 0.3);
    border-radius: 0.55rem;
    background: rgba(255, 236, 234, 0.95);
    padding: 0.9rem 1rem;
    color: #9F3F3C;
    font-size: 0.88rem;
    font-weight: 500;
}

.entry-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.entry-submit-row p,
.entry-submit-note {
    color: rgba(122, 114, 110, 0.95);
    font-size: 0.78rem;
    line-height: 1.85;
}

.entry-submit-button {
    border: 0;
    background: #C27B75;
    color: #FFFFFF;
    box-shadow: 0 16px 34px -24px rgba(194, 123, 117, 0.65);
}

.entry-submit-button:hover,
.entry-submit-button:focus-visible {
    transform: translateY(-2px);
    background: #A86B65;
    box-shadow: 0 22px 42px -26px rgba(194, 123, 117, 0.72);
}

.entry-submit-button:disabled {
    opacity: 0.62;
    pointer-events: none;
}

.entry-edit-button {
    border: 1px solid rgba(216, 226, 223, 0.96);
    background: #FFFFFF;
    color: #4A423F;
}

.entry-edit-button:hover,
.entry-edit-button:focus-visible {
    background: #F5E4E4;
}

.entry-confirmation[hidden] {
    display: none !important;
}

.entry-confirmation {
    margin-top: 1rem;
}

.entry-confirmation-head {
    margin-bottom: 1.2rem;
}

.entry-confirmation h2 {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.5;
}

.entry-summary {
    border-top: 1px solid rgba(216, 226, 223, 0.88);
}

.entry-summary-row {
    display: grid;
    grid-template-columns: minmax(8rem, 0.28fr) 1fr;
    gap: 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(216, 226, 223, 0.88);
    font-size: 0.9rem;
}

.entry-summary-row dt {
    color: #7A726E;
    font-weight: 500;
}

.entry-summary-row dd {
    color: #4A423F;
    white-space: pre-wrap;
}

.entry-confirmation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.entry-thanks-page {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background:
        radial-gradient(circle at 12% 12%, rgba(235, 203, 204, 0.5), transparent 28rem),
        radial-gradient(circle at 88% 78%, rgba(216, 226, 223, 0.58), transparent 30rem),
        #FAF8F5;
}

.entry-thanks-card {
    width: min(100%, 42rem);
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
}

.entry-thanks-card h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.4;
}

.entry-thanks-card p {
    color: rgba(74, 66, 63, 0.76);
    line-height: 2;
}

.entry-thanks-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.8rem;
}

@media (max-width: 1024px) {
    .entry-container {
        grid-template-columns: 1fr;
    }

    .entry-side {
        position: static;
    }
}

@media (max-width: 767px) {
    .entry-hero {
        min-height: 52svh;
    }

    .entry-hero__inner,
    .entry-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .entry-grid,
    .entry-segment,
    .entry-choice-grid {
        grid-template-columns: 1fr;
    }

    .entry-submit-row,
    .entry-confirmation-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .entry-submit-button,
    .entry-edit-button {
        width: 100%;
    }

    .entry-summary-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}
