/* ============================================================
   404ページ（error_404_view.php）
   ============================================================ */
.e404-hero {
    position: relative;
    background: #060911 url("/img/design/japan_night.jpg") center center / cover no-repeat;
    overflow: hidden;
}

.e404-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 20%, rgba(255, 138, 30, .16) 0%, rgba(4, 7, 14, .82) 46%, rgba(4, 7, 14, .96) 100%);
}

.e404-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 72px;
    text-align: center;
}

/* ---------- UFOイラスト（CSSのみ） ---------- */
.e404-ufo {
    position: relative;
    width: 200px;
    height: 132px;
    margin: 0 auto 6px;
}

.e404-ufo__body {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 168px;
    height: 58px;
    transform: translateX(-50%);
    animation: e404float 4.4s ease-in-out infinite;
}

.e404-ufo__dome {
    position: absolute;
    left: 50%;
    top: 0;
    width: 76px;
    height: 40px;
    transform: translateX(-50%);
    border-radius: 76px 76px 0 0;
    background: linear-gradient(180deg, rgba(255, 214, 160, .95), rgba(255, 138, 30, .55));
    box-shadow: 0 0 22px rgba(255, 138, 30, .55);
}

.e404-ufo__hull {
    position: absolute;
    left: 0;
    bottom: 6px;
    width: 168px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(180deg, #d9e3f2 0%, #8f9db4 42%, #444f63 100%);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
}

.e404-ufo__lights {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 132px;
    height: 8px;
    transform: translateX(-50%);
    border-radius: 8px;
    background: repeating-linear-gradient(90deg, #ff8a1e 0 8px, transparent 8px 26px);
    animation: e404blink 1.6s linear infinite;
}

.e404-ufo__beam {
    position: absolute;
    left: 50%;
    top: 58px;
    width: 40px;
    height: 78px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(255, 138, 30, .48), rgba(255, 138, 30, 0));
    clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
    animation: e404beam 4.4s ease-in-out infinite;
}

@keyframes e404float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-10px); }
}

@keyframes e404beam {
    0%, 100% { opacity: .5; }
    50%      { opacity: .95; }
}

@keyframes e404blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

/* ---------- テキスト ---------- */
.e404-code {
    font-family: "Oswald", "Noto Sans JP", sans-serif;
    font-size: 104px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .12em;
    color: #e6ecf5;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .8);
}

.e404-code em {
    font-style: normal;
    color: #ff8a1e;
}

.e404-title {
    margin-top: 16px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: .04em;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .75);
}

.e404-title em {
    font-style: normal;
    color: #ff8a1e;
}

.e404-lead {
    margin-top: 16px;
    font-size: 15px;
    line-height: 2;
    color: #c8d2e0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

/* ---------- ボタン ---------- */
.e404-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.e404-actions .uj-btn {
    min-width: 280px;
}

.e404-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 5px;
    background: rgba(255, 255, 255, .04);
    font-size: 15px;
    font-weight: 700;
    color: #e6ecf5;
}

.e404-btn-ghost:hover {
    border-color: #ff8a1e;
    color: #ff8a1e;
}

/* ---------- 検索 ---------- */
.e404-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 520px;
    margin: 30px auto 0;
    padding: 6px 6px 6px 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 6px;
    background: rgba(6, 9, 17, .72);
}

.e404-search > i {
    color: #7c8ba1;
    font-size: 14px;
}

.e404-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: #e6ecf5;
    font-size: 14px;
    font-family: inherit;
}

.e404-search input::placeholder {
    color: #7c8ba1;
}

.e404-search input:focus {
    outline: none;
}

.e404-search button {
    padding: 11px 22px;
    border: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #ff8a1e, #ff6f00);
    color: #12160f;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.e404-search button:hover {
    filter: brightness(1.08);
}

/* ---------- 主要コンテンツ導線 ---------- */
.e404-guide {
    padding: 54px 0 74px;
}

.e404-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.e404-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.e404-card:hover {
    border-color: rgba(255, 138, 30, .55);
    background: linear-gradient(180deg, rgba(255, 138, 30, .12), rgba(255, 255, 255, .02));
}

.e404-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 138, 30, .14);
    color: #ff8a1e;
    font-size: 16px;
}

.e404-card__body {
    flex: 1;
    min-width: 0;
}

.e404-card__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
}

.e404-card__text {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.6;
    color: #9aa8bc;
}

.e404-card__arrow {
    color: #56637a;
    font-size: 14px;
}

.e404-card:hover .e404-card__arrow {
    color: #ff8a1e;
}

@media (max-width: 1024px) {
    .e404-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .e404-hero__inner { padding: 56px 20px 52px; }
    .e404-code { font-size: 72px; }
    .e404-title { font-size: 22px; }
    .e404-lead { font-size: 13px; }
    .e404-actions .uj-btn,
    .e404-btn-ghost { width: 100%; min-width: 0; justify-content: center; }
    .e404-btn-ghost { margin-top: 0; }
    .e404-guide { padding: 40px 0 56px; }
}

@media (max-width: 640px) {
    .e404-ufo { width: 160px; height: 112px; }
    .e404-ufo__body { width: 132px; }
    .e404-ufo__hull { width: 132px; }
    .e404-ufo__lights { width: 104px; }
    .e404-cards { grid-template-columns: 1fr; }
    .e404-search { flex-wrap: nowrap; }
    .e404-search button { padding: 11px 16px; }
}

