.entry-home-page {
    padding-top: 0;
    background: transparent;
}

.entry-home-main {
    padding-top: var(--mobile-shell-top-gap);
    padding-bottom: 18px;
}

.entry-home-hero {
    position: relative;
    isolation: isolate;
    padding: 0;
    overflow: hidden;
    color: #fffaf1;
    touch-action: pan-y;
    user-select: none;
}

.entry-home-slider {
    overflow: hidden;
    height: var(--home-slide-height, 200px);
    min-height: var(--home-slide-height, 200px);
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.entry-home-slides {
    display: flex;
    height: 100%;
    min-height: var(--home-slide-height, 200px);
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    cursor: grab;
    scroll-behavior: smooth;
    scroll-padding: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.entry-home-slides::-webkit-scrollbar {
    display: none;
}

.entry-home-slides.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.entry-home-slide {
    position: relative;
    display: block;
    overflow: hidden;
    flex: 0 0 100%;
    height: 100%;
    min-height: var(--home-slide-height, 200px);
    border-radius: 8px;
    opacity: 0.72;
    scroll-snap-align: start;
    transform: scale(0.985);
    transition:
        opacity 0.24s ease,
        transform 0.24s ease;
    will-change: opacity;
}

.entry-home-slide.is-active {
    z-index: 1;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.entry-home-slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.entry-home-dots {
    position: absolute;
    right: auto;
    bottom: 12px;
    left: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 1px;
    width: max-content;
    padding: 0;
    background: transparent;
    transform: translateX(-50%);
}

.entry-home-dots button {
    position: relative;
    width: 9px;
    height: 14px;
    min-width: 9px;
    min-height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    opacity: 1;
    touch-action: manipulation;
}

.entry-home-dots button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: transparent;
    content: "";
    transform: translate(-50%, -50%);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        opacity 0.18s ease;
}

.entry-home-dots button.is-active {
    width: 9px;
}

.entry-home-dots button.is-active::before {
    background: rgba(255, 255, 255, 0.62);
    opacity: 0.9;
}

.entry-home-panel {
    box-sizing: border-box;
    width: 100%;
    margin-top: 10px;
    padding: 8px 6px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.entry-home-realtime-panel {
    margin-top: 10px;
}

.entry-home-tools {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.entry-home-tools a {
    display: flex;
    min-height: 58px;
    padding: 6px 2px 5px;
    border: 0;
    border-radius: 0;
    color: var(--color-text);
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    box-shadow: none;
}

.entry-home-tools a:hover,
.entry-home-tools a:focus-visible {
    background: transparent;
}

.entry-home-tool-icon {
    display: grid;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
    color: var(--color-accent);
    background: transparent;
    box-shadow: none;
    place-items: center;
}

.entry-home-tool-icon svg {
    position: static;
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: none;
}

.entry-home-tools strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-home-realtime-paipan {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 104px;
    margin-top: 0;
    padding: 18px 22px;
    border-radius: 8px;
    color: #38342e;
    background: #fff;
    text-decoration: none;
    box-shadow: none;
}

.entry-home-realtime-left {
    display: grid;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.entry-home-realtime-pillars {
    display: grid;
    width: max-content;
    grid-template-columns: repeat(4, 32px);
    grid-template-rows: repeat(2, 33px);
    column-gap: 28px;
    color: #2f2b27;
    text-align: center;
    line-height: 1;
}

.entry-home-realtime-pillars b,
.entry-home-realtime-pillars em {
    display: block;
    font-style: normal;
    font-size: 28px;
    font-weight: 400;
}

.entry-home-realtime-pillars .element-tone-wood {
    color: #1fa247;
}

.entry-home-realtime-pillars .element-tone-fire {
    color: #d90000;
}

.entry-home-realtime-pillars .element-tone-earth {
    color: #8b6f00;
}

.entry-home-realtime-pillars .element-tone-metal {
    color: #d28a00;
}

.entry-home-realtime-pillars .element-tone-water {
    color: #1684e6;
}

.entry-home-realtime-date {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.entry-home-realtime-date small {
    overflow: hidden;
    color: #8c8881;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.entry-home-realtime-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
    min-width: 0;
}

.entry-home-realtime-time {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 220px;
    color: #4a463f;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    white-space: nowrap;
    justify-content: center;
}

.entry-home-realtime-right time {
    color: #6f6a63;
    font: inherit;
    font-weight: 300;
}

.entry-home-realtime-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 64px;
    padding: 0 34px;
    border: 1px solid rgba(56, 52, 46, 0.22);
    border-radius: 999px;
    color: #3e3933;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.entry-home-quick-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(88px, auto));
    gap: 10px;
    margin-top: 10px;
}

.entry-home-quick-card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 88px;
    gap: 9px;
    padding: 12px 12px;
    border: 0;
    border-radius: 8px;
    color: #312d28;
    background: #fff;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    touch-action: manipulation;
    font: inherit;
    appearance: none;
}

.entry-home-quick-card strong {
    min-width: 0;
    color: #312d28;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
    white-space: nowrap;
}

.entry-home-quick-card-large {
    grid-column: 2;
    grid-row: 1 / span 2;
    flex-direction: column;
    min-height: 186px;
    gap: 8px;
    padding: 10px;
}

.entry-home-quick-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    color: #1f5ff0;
}

.entry-home-quick-icon {
    width: 32px;
    height: 32px;
}

.entry-home-quick-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.entry-home-quick-icon svg {
    stroke-width: 2.45;
}

.entry-home-calendar-card {
    gap: 10px;
}

.entry-home-calendar {
    width: 42px;
    height: 42px;
}

.entry-home-calendar svg {
    stroke-width: 2.4;
}

.entry-home-toast {
    position: fixed;
    right: 24px;
    bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom) + 18px);
    left: 24px;
    z-index: 240;
    max-width: 320px;
    margin: 0 auto;
    padding: 11px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 20, 20, 0.88);
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.entry-home-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 720px) {
    .entry-home-main {
        padding-top: var(--mobile-shell-top-gap);
        padding-bottom: 24px;
    }

    .entry-home-tools strong {
        font-size: 12px;
    }

    .entry-home-quick-card strong {
        font-size: 23px;
    }

    .entry-home-realtime-paipan {
        min-height: 104px;
        padding: 18px 22px;
    }
}

@media (min-width: 921px) {
    .entry-home-main {
        padding-top: var(--mobile-shell-top-gap);
    }

    .entry-home-slides {
        gap: 0;
        padding-right: 0;
        padding-left: 0;
        scroll-padding: 0;
    }

    .entry-home-tools {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .entry-home-tools a {
        min-height: 64px;
    }
}

@media (max-width: 719px) {
    .entry-home-main {
        padding-bottom: 24px;
    }

    .entry-home-tools {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .entry-home-realtime-paipan {
        grid-template-columns: minmax(0, 1fr) 126px;
        gap: 10px;
        min-height: 118px;
        padding: 18px 14px;
        border-radius: 8px;
    }

    .entry-home-realtime-pillars {
        grid-template-columns: repeat(4, 22px);
        grid-template-rows: repeat(2, 28px);
        column-gap: 14px;
    }

    .entry-home-realtime-pillars b,
    .entry-home-realtime-pillars em {
        font-size: 24px;
    }

    .entry-home-realtime-date small {
        font-size: 12px;
    }

    .entry-home-realtime-right {
        gap: 12px;
        min-width: 0;
    }

    .entry-home-realtime-time {
        min-width: 0;
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
        font-size: 22px;
    }

    .entry-home-realtime-action {
        min-width: 0;
        width: 100%;
        min-height: 44px;
        padding: 0 12px;
        font-size: 17px;
    }
}

@media (max-width: 460px) {
    .entry-home-realtime-paipan {
        gap: 10px;
        min-height: 118px;
        padding: 18px 14px;
    }

    .entry-home-realtime-pillars {
        grid-template-columns: repeat(4, 22px);
        grid-template-rows: repeat(2, 28px);
        column-gap: 14px;
    }

    .entry-home-realtime-pillars b,
    .entry-home-realtime-pillars em {
        font-size: 24px;
    }

    .entry-home-realtime-date small {
        font-size: 12px;
    }

    .entry-home-realtime-right {
        gap: 12px;
    }

    .entry-home-realtime-time {
        min-width: 0;
        font-size: 22px;
    }

    .entry-home-realtime-action {
        min-width: 0;
        min-height: 44px;
        padding: 0 16px;
        font-size: 17px;
    }

    .entry-home-quick-grid {
        grid-template-rows: repeat(3, minmax(76px, auto));
        gap: 9px;
        margin-top: 10px;
    }

    .entry-home-quick-card {
        min-height: 76px;
        gap: 7px;
        padding: 10px 8px;
        border-radius: 8px;
    }

    .entry-home-quick-card-large {
        min-height: 161px;
    }

    .entry-home-quick-card strong {
        font-size: 18px;
    }

    .entry-home-quick-icon {
        width: 30px;
        height: 30px;
    }

}

@media (max-width: 360px) {
    .entry-home-quick-card {
        gap: 7px;
    }

    .entry-home-quick-card strong {
        font-size: 17px;
    }

    .entry-home-quick-icon {
        width: 28px;
        height: 28px;
    }

}
