/* ========================================
   NEWS
======================================== */

.ae-news {
    --news-blue: #064bfa;

    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 72px 40px 64px;
    color: #080b20;
}


/* ------------------------------
   見出し
------------------------------ */
.ae-news__header {
    position: relative;
    min-height: 0;
    margin-bottom: 24px;
    padding-right: 0;
}

.ae-news__heading {
    position: relative;
    z-index: 2;
}

.ae-news__title {
    margin: 0;
    color: #080b20;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(44px, 5vw, 80px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.ae-news__subtitle {
    margin: 24px 0 0;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.5;
}

.ae-news__description {
    margin: 8px 0 0;
    color: #515c75;
    font-size: 12px;
    line-height: 1.7;
}

/* ------------------------------
   NEWSカード
------------------------------ */

.ae-news__cards {
    display: flex;
    gap: 24px;

    width: 100%;
    padding: 8px 8px 28px;

    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 8px;

    scrollbar-color: var(--news-blue) #e1eeff;
    scrollbar-width: auto;
}

.ae-news-card {
    display: flex;
    flex-direction: column;

    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
    scroll-snap-align: start;

    border: 2px solid var(--news-blue);
    border-radius: 5px;
    padding: 4px;

    background: #fff;

    box-shadow:
        3px 3px 0 #62caff,
        6px 8px 0 rgba(6, 75, 250, 0.08),
        inset 0 0 0 1px #8cd7ff;
}


/* 上部Windowsバー */

.ae-news-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-height: 34px;
    padding: 6px 9px;

    background-color: #e3f4ff;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(6, 75, 250, 0.25) 0 1px,
        transparent 1px 3px
    );

    color: var(--news-blue);

    font-family: "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;

    box-shadow: inset 0 0 0 1px #8eb4ff;
}

.ae-news-card__bar span:last-child {
    flex-shrink: 0;
    font-size: 15px;
    white-space: nowrap;
}


/* カード本文 */

.ae-news-card__body {
    position: relative;

    display: flex;
    flex-direction: column;
    flex: 1;

    min-height: 250px;
    padding: 26px 22px 24px;
}

.ae-news-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin: 0 0 18px;

    color: #515c75;
    font-family: "Courier New", monospace;
    font-size: 12px;
}

.ae-news-card__tag {
    display: inline-flex;
    align-items: center;

    border: 1px solid #8eb4ff;
    border-radius: 4px;
    padding: 4px 8px;

    background: #eef8ff;
    color: var(--news-blue);

    font-weight: 700;
}

.ae-news-card__title {
    margin: 0;

    color: #080b20;

    font-size: clamp(18px, 1.45vw, 24px);
    font-weight: 700;
    line-height: 1.5;
}

.ae-news-card__text {
    margin: 18px 0 60px;

    color: #20263b;

    font-size: 14px;
    line-height: 1.85;
}


/* 右下矢印 */

.ae-news-card__link {
    position: absolute;
    right: 20px;
    bottom: 20px;

    display: grid;
    place-items: center;

    width: 42px;
    height: 38px;

    border: 2px solid var(--news-blue);

    background: #fff;
    color: var(--news-blue);

    font-size: 20px;
    line-height: 1;

    text-decoration: none;

    box-shadow: 2px 2px 0 #62caff;
}

.ae-news-card__link:hover {
    background: #eef8ff;
}

.ae-news-card__link:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}


/* ------------------------------
   NEWS下部バー
------------------------------ */

.ae-news__bar {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-top: 22px;

    border-top: 1px solid #8eb4ff;
    border-bottom: 1px solid #8eb4ff;

    padding: 9px 10px;
}

@media (max-width: 900px) {
    .ae-news {
        padding-inline: 24px;
    }

    .ae-news__header {
        min-height: 0;
        padding-right: 0;
    }

    .ae-news-card {
        flex-basis: calc((100% - 24px) / 2);
    }
}

/* ------------------------------
   Mobile
------------------------------ */

@media (max-width: 650px) {

    .ae-news {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    body.ae-numbers-page .ae-news {
        padding-bottom: 16px;
    }

    .ae-news__title {
        font-size: clamp(38px, 12vw, 58px);
    }

    .ae-news__subtitle {
        margin-top: 16px;
    }

    .ae-news-card {
    flex-basis: 100%;
}

    .ae-news-card__body {
        min-height: 0;
        padding: 12px 14px 60px;
    }

    .ae-news-card__meta {
        gap: 8px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .ae-news-card__title {
        font-size: 18px;
        line-height: 1.4;
        overflow-wrap: normal;
        line-break: strict;
        text-wrap: pretty;
    }

    .ae-news-card__text {
        margin: 8px 0 0;
        font-size: 13px;
        line-height: 1.65;
        overflow-wrap: normal;
        line-break: strict;
        text-wrap: pretty;
    }

    .ae-news-card__title br,
    .ae-news-card__text br {
        display: none;
    }

    .ae-news-card__link {
        right: 14px;
        bottom: 12px;
    }

}
/* ========================================
   PICK UP → NEWS の切り替え帯
======================================== */

/* NEWS前だけ、左から右へ流す */
.ae-works-flow--news .ae-works-flow__track {
    animation-direction: reverse;
}
    /* ========================================
   CONTACT / RECRUIT：透明キー
======================================== */

.ae-next {
    position: relative;
    overflow: hidden;

    padding: 72px 32px 64px;

    color: #064bfa;
    background: var(--ae-dot-background);
    background-attachment: fixed;
    animation: ae-dot-background-drift 20s ease-in-out infinite;
}

.ae-next__header {
    width: min(100%, 1320px);
    margin: 0 auto 20px;
}

.ae-next__eyebrow {
    margin: 0 0 24px;

    font-family: "Courier New", monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ae-next__title {
    margin: 0;

    font-family: "Courier New", monospace;
    font-size: clamp(64px, 8vw, 112px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
}

.ae-next__subtitle {
    margin: 14px 0 0;

    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* キーと小物の配置 */

.ae-next__stage {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 8px 32px;

    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 120px;
}

/* 通常画像と押下画像を重ねる */

.ae-next__key {
    position: relative;
    z-index: 2;

    display: block;
    width: min(100%, 460px);

    margin: 0;
    border: 0;
    padding: 0;

    appearance: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;

    transition: transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.ae-next__image {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.ae-next__image--pressed {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.ae-next__key:active .ae-next__image--normal {
    opacity: 0;
}

.ae-next__key:active .ae-next__image--pressed {
    opacity: 1;
}

.ae-next__key:focus-visible {
    outline: 3px dashed #064bfa;
    outline-offset: 8px;
    border-radius: 20px;
}

@media (hover: hover) {
    .ae-next__key:hover {
        transform: translateY(-6px);
    }

    .ae-next__key:active {
        transform: translateY(0);
    }
}

/* HOME */

.ae-next__home {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.ae-next__arrow {
    font-family: "Courier New", monospace;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.ae-next__key--home {
    width: 160px;
}

.ae-next__home-label {
    margin: -8px 0 0;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* クリップ・星 */

.ae-next__prop {
    position: absolute;
    z-index: 1;
    display: block;
    height: auto;
    pointer-events: auto;

    animation: ae-next-float 5s ease-in-out infinite;
}

/* ゆっくり浮遊 */
@keyframes ae-next-float {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

/* マウスを合わせると軽く震える */
@keyframes ae-next-shake {
    0%, 100% {
        transform: translateX(0) rotate(0);
    }
    25% {
        transform: translateX(-2px) rotate(-2deg);
    }
    75% {
        transform: translateX(2px) rotate(2deg);
    }
}

@media (hover: hover) {
    .ae-next__prop:hover {
        animation: ae-next-shake 0.3s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-next__prop,
    .ae-next__prop:hover {
        animation: none;
    }
}

.ae-next__prop--clip {
    top: 32%;
    left: 0;
    width: 110px;
}

.ae-next__prop--star {
    top: 40%;
    right: 0;
    width: 120px;
}

/* タブレット */

@media (max-width: 900px) {
    .ae-next__stage {
        padding-inline: 60px;
        column-gap: 16px;
    }

    .ae-next__prop--clip {
        width: 70px;
    }

    .ae-next__prop--star {
        width: 80px;
    }
}

/* スマホ */

@media (max-width: 650px) {
    .ae-next {
        padding: 48px 20px;
    }

    .ae-next__stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding-inline: 24px;
    }

    .ae-next__key {
        width: min(100%, 320px);
    }

    .ae-next__key--home {
        width: 140px;
    }

    .ae-next__prop--clip {
        top: 14%;
        left: -8px;
        width: 60px;
    }

    .ae-next__prop--star {
        top: 58%;
        right: -8px;
        width: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-next__key {
        transition: none;
    }
}
/* お問い合わせ・採用：見出しと配置の調整 */
.ae-next {
    padding: 72px 40px 64px;
}

/* NEWS・実績と同じ左位置 */
.ae-next__header {
    width: 100%;
    margin: 0 0 24px;
    text-align: left;
}

.ae-next__eyebrow {
    display: none;
}

/* NEWS・実績と同じ書体・サイズ */
.ae-next__title {
    color: #080b20;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(44px, 5vw, 80px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.ae-next__subtitle {
    margin: 24px 0 0;
    color: #080b20;
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
}

/* 追加小物はPCで表示 */
.ae-next__prop--disc,
.ae-next__prop--earphones,
.ae-next__prop--basket {
    display: none;
}

/* PCのキーと小物 */
@media (min-width: 901px) {
    .ae-next__stage {
        width: min(100%, 1480px);
        margin: -36px auto 0;
        padding: 0 140px;
        gap: 0 60px;
    }

    .ae-next__key {
        width: min(100%, 570px);
    }

    /* お問い合わせ：左へ傾ける */
    .ae-next__key--contact {
    rotate: -12deg;
}

.ae-next__key--recruit {
    rotate: 10deg;
}

    .ae-next__home {
        margin-top: -55px;
    }

    .ae-next__key--home {
        width: 200px;
    }

            /* 左側：クリップ */
    .ae-next__prop--clip {
        top: 18%;
        left: -110px;
        width: 280px;
        rotate: -14deg;
        animation-delay: -1s;
    }

    /* 右側：星 */
    .ae-next__prop--star {
        top: 38%;
        right: -115px;
        width: 150px;
        rotate: 19deg;
        animation-delay: -2s;
    }

    /* 左下：CD */
    .ae-next__prop--disc {
        display: block;
        left: -45px;
        bottom: 18px;
        width: 230px;
        rotate: -24deg;
        animation-delay: -3s;
    }

    /* 右上：イヤホン */
    .ae-next__prop--earphones {
        display: block;
        right: -20px;
        top: 5px;
        width: 220px;
        rotate: -17deg;
        animation-delay: -1.5s;
    }

    /* 右下：かご */
    .ae-next__prop--basket {
        display: block;
        right: -65px;
        bottom: 5px;
        width: 260px;
        rotate: 13deg;
        animation-delay: -2.5s;
    }
}

@media (max-width: 900px) {
    .ae-next {
        padding-inline: 24px;
    }
}

@media (max-width: 650px) {
    .ae-next {
        padding: 48px 24px;
    }

    .ae-next__title {
        font-size: clamp(38px, 12vw, 58px);
    }

    .ae-next__subtitle {
        margin-top: 16px;
    }
}
/* NEWSとの余白・NEXTの位置 */
@media (min-width: 901px) {
    .ae-news {
        padding-bottom: 32px;
    }

    .ae-next {
        padding-top: 24px;
    }

    .ae-next__header {
        position: relative;
        z-index: 3;
        margin-bottom: 0;
        transform: translateY(64px);
    }
}
/* NEXTを中央へ・書体の調整 */
.ae-next__title {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: center;

    color: #080b20;
    font-family: "Courier New", monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 72px;
    letter-spacing: 0.12em;
}

/* トップ画面「この先へ、進みますか？」と同じ書体 */
.ae-next__home-label {
    color: #080b20;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

@media (min-width: 901px) {
    .ae-next__stage {
        margin-top: 0;
    }

    .ae-next__header {
    transform: translateY(60px);
}
}
/* タブレット：NEWSの見出しとカードを近づける */
@media (min-width: 651px) and (max-width: 1100px) {
    .ae-numbers-page .ae-news { padding: 36px 24px 40px; }
    .ae-numbers-page .ae-news__header { margin-bottom: 10px; }
    .ae-numbers-page .ae-news__subtitle { margin-top: 12px; }
    .ae-numbers-page .ae-news__description { margin-top: 6px; }
    .ae-numbers-page .ae-news .ae-pickup__controls { margin-bottom: 6px; gap: 8px; }
    .ae-numbers-page .ae-news .ae-pickup__button { width: 40px; height: 34px; font-size: 20px; }
    .ae-numbers-page .ae-news__cards { padding-top: 4px; }
}
/* スマホ：NEWSの見出しとカードの間隔 */
@media (max-width: 650px) {
    .ae-news__header {
        margin-bottom: 8px;
    }

    .ae-news__subtitle {
        margin-top: 4px;
    }

    .ae-news__description {
        margin-top: 4px;
    }

    .ae-numbers-page .ae-news .ae-pickup__controls {
        margin-bottom: 6px;
        gap: 6px;
    }

    .ae-news__cards {
        padding-top: 4px;
    }
}