/*
 * NOCTVEIL GAMES 共通スタイル
 * 色は :root、各部品は見出しコメントごとのセクションで変更できます。
 */
:root {
    --bg: #0d1119;
    --bg-2: #111b2d;
    --surface: #111b2d;
    --surface-2: #111b2d;
    --text: #f0f0ed;
    --muted: #aeb6c1;
    --accent: #8792b1;
    --accent-2: #aeb8ca;
    --line: #303948;
    --gold: #b8a681;
    --danger: #e6aaa8;
    --soft-glow: rgba(184, 198, 230, .16);
    --max: 1180px;
    --header: 76px;
    --serif: "Times New Roman", "Yu Mincho", serif;
    --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.9;
    letter-spacing: .035em;
    text-shadow: 0 0 8px var(--soft-glow)
}

svg,
.icon,
[class$="-icon"],
[class*=" icon-"] {
    filter: drop-shadow(0 0 6px var(--soft-glow))
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

button {
    color: inherit
}

img {
    max-width: 100%
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    line-height: 1.35;
    font-weight: 500
}

h1 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    letter-spacing: .02em
}

h2 {
    font-size: clamp(1.7rem, 3.5vw, 3rem)
}

h3 {
    font-size: 1.25rem
}

.container {
    width: min(calc(100% - 48px), var(--max));
    margin-inline: auto
}

.section {
    padding: clamp(76px, 10vw, 144px) 0
}

.section-tint {
    background-color: var(--bg-2);
    background-image: none
}

.page-hero,
.hero-brand-intro {
    background-image: none
}

/* 紺色セクション共通：静かに上昇する光の粒 */
.section-tint,
.page-hero,
.hero-brand-intro {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section-tint > :not(.navy-particle-layer),
.page-hero > :not(.navy-particle-layer),
.hero-brand-intro > :not(.navy-particle-layer) {
    position: relative;
    z-index: 1;
}

.navy-particle-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.navy-particle {
    position: absolute;
    left: var(--particle-x);
    bottom: -10px;
    width: var(--particle-size);
    height: var(--particle-size);
    border-radius: 50%;
    background: var(--particle-color);
    opacity: 0;
    filter: blur(var(--particle-blur));
    will-change: transform, opacity;
    animation: navy-particle-rise var(--particle-duration) linear var(--particle-delay) infinite;
}

@keyframes navy-particle-rise {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    10% {
        opacity: var(--particle-opacity);
    }

    82% {
        opacity: var(--particle-opacity);
    }

    100% {
        transform: translate3d(var(--particle-drift), var(--particle-travel), 0);
        opacity: 0;
    }
}

.eyebrow {
    color: var(--accent-2);
    font-size: .73rem;
    font-weight: 600;
    letter-spacing: .25em
}

.tag {
    color: var(--accent-2);
    font-size: .7rem;
    line-height: 1.6;
    letter-spacing: .12em
}

.note {
    color: var(--muted);
    font-size: .78rem
}

.center {
    text-align: center
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 1000;
    padding: 10px 18px;
    background: #fff;
    color: #111
}

.skip-link:focus {
    top: 10px
}

:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px
}

.site-header {
    height: var(--header);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 25, .94);
    border-bottom: 1px solid rgba(174, 184, 202, .14);
    backdrop-filter: blur(14px)
}

.header-inner {
    width: min(calc(100% - 48px), 1320px);
    height: 100%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: block;
    font-family: var(--serif);
    font-size: 1.25rem;
    letter-spacing: .15em
}

.logo img {
    display: block;
    width: auto;
    height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.logo span {
    color: var(--accent-2)
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.3vw, 38px)
}

.nav a {
    position: relative;
    font-size: .71rem;
    letter-spacing: .15em
}

.nav>a:not(.cart-link)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 1px;
    background: var(--accent-2);
    transition: .25s
}

.nav>a:hover::after,
.nav>a.active::after {
    right: 0
}

.cart-link {
    padding: 9px 13px;
    border: 1px solid var(--line)
}

.cart-link span {
    margin-left: 7px;
    color: var(--accent-2)
}

.menu-button {
    display: none;
    border: 0;
    background: none;
    width: 40px;
    height: 40px;
    padding: 9px
}

.menu-button>span:not(.sr-only) {
    display: block;
    height: 1px;
    background: var(--text);
    margin: 5px 0
}

.home-hero {
    min-height: calc(100svh - var(--header));
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #101620
}

.hero-image {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    background: #101620
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 17, 25, .9), rgba(13, 17, 25, .42) 66%, rgba(13, 17, 25, .65))
}

.hero-content {
    position: relative;
    padding-block: 100px
}

.hero-content h1 {
    max-width: 980px;
    margin: 15px 0 12px
}

.hero-ja {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 500; /* ← この行を追加 */
    letter-spacing: .12em
}

.hero-copy {
    max-width: 600px;
    color: var(--muted);
    margin: 24px 0 38px
}

.page-hero {
    padding: clamp(90px, 13vw, 180px) 0 clamp(70px, 9vw, 120px);
    background: var(--bg-2);
    border-bottom: 1px solid var(--line)
}

.page-hero h1 {
    font-family: var(--sans);
    font-size: clamp(1.75rem, 4.5vw, 4rem);
    margin: 10px 0 25px;
    letter-spacing: .06em
}

.page-hero p:last-child {
    max-width: 720px;
    color: var(--muted)
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #0d1119;
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: .08em;
    cursor: pointer;
    transition: transform .2s, background .2s
}

.button:hover {
    transform: translateY(-2px);
    background: var(--accent-2)
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line)
}

.button-secondary:hover {
    background: var(--surface-2)
}

.button-row,
.card-actions,
.confirm-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.section-title {
    margin-bottom: 52px;
    max-width: 760px
}

.section-title h2 {
    margin-bottom: 16px
}

.section-title>p:last-child:not(.eyebrow) {
    color: var(--muted)
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(50px, 10vw, 140px)
}

.prose {
    color: var(--muted)
}

.prose h2 {
    color: var(--text)
}

.prose .button {
    margin-top: 22px
}

.company-message {
    grid-column: 2;
}

.company-portrait {
    grid-column: 1;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface-2);
}

.company-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.image-area {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--surface-2)
}

.image-area img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s
}

/* カード全体をFlexbox化し、縦長揃えにする */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .25s, border-color .25s;
    display: flex;
    flex-direction: column;
    height: 100%; /* 高さをグリッド内で統一 */
}
.card:hover {
    transform: translateY(-4px);
    border-color: #505b6d
}

.card:hover img {
    transform: scale(1.02)
}

/* 指定ブロックの枠内側に表示する極細のダブルライン */
.home-corner-frame {
    position: relative
}

.home-corner-frame::after {
    content: "";
    position: absolute;
    inset: 12px 18px;
    z-index: 3;
    pointer-events: none;
    border-top: 1px solid rgba(255, 255, 255, 0.27);
    border-bottom: 1px solid rgba(255, 255, 255, 0.27)
}

.home-corner-frame--top-only::after {
    border-bottom: 0
}

.home-corner-frame--bottom-only::after {
    border-top: 0
}

.home-cta-section .cta {
    background: transparent
}

/* カード本文部分の高さ自動調整 */
.card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1; /* 余白を自動計算して下部に押し出す */
}

/* タイトルの高さを固定して、2行・3行になってもズレないようにする */
.card-body h3 {
    min-height: 3.3em;
    margin-bottom: auto; /* ボタンや価格を下端に配置 */
}
.card-body>p:not(.tag):not(.price) {
    color: var(--muted);
    font-size: .9rem
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px
}

.game-grid .image-area {
    aspect-ratio: 3 / 2;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-2);
}

.game-grid .image-area img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 24px
}

.product-grid .image-area,
.product-image {
    aspect-ratio: 2/ 3;
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-2);
}

.product-grid .image-area img,
.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-image img[src="images/akusuta.png"],
.image-area img[src="images/akusuta.png"],
.product-image img[src="images/sanntora.png"],
.image-area img[src="images/sanntora.png"],
.product-image img[src="images/siryousyuu.png"],
.image-area img[src="images/siryousyuu.png"],
.product-image img[src="images/art.png"],
.image-area img[src="images/art.png"],
.product-image img[src="images/pin.png"],
.image-area img[src="images/pin.png"] {
    object-fit: contain;
    object-position: center
}

/* 商品名の長さにかかわらず、商品カードの上下位置を統一 */
.product-grid .card {
    height: 100%;
}

.product-grid .card-body h3 {
    min-height: 4.05em;
    margin-bottom: 20px;
}

.product-grid .price {
    margin-top: auto;
}

.product-grid .card-actions {
    margin-top: 16px;
}
.price {
    color: var(--text) !important;
    font-size: 1.2rem;
    font-weight: 500
}

.price small {
    font-size: .65rem;
    color: var(--muted)
}

.card-actions .button {
    flex: 1;
    padding-inline: 14px
}

.news-list {
    border-top: 1px solid var(--line)
}

.news-list article {
    display: grid;
    grid-template-columns: 120px 100px 1fr;
    align-items: center;
    gap: 25px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line)
}

.news-list time,
.news-list span {
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .1em
}

.news-list h3 {
    margin: 0;
    font-size: .95rem
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.cta {
    min-height: 370px;
    padding: clamp(35px, 5vw, 65px);
    background: var(--surface);
    border: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    flex-direction: column
}

.cta p:not(.eyebrow) {
    color: var(--muted);
    max-width: 450px
}

.cta .button {
    margin-top: auto
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line)
}

.service {
    background: var(--bg);
    padding: 45px 34px
}

.service>span {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 2rem
}

.service h2 {
    font-size: 1.25rem
}

.service>p:last-child {
    color: var(--muted);
    font-size: .88rem
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
    gap: clamp(45px, 8vw, 100px)
}

.signature {
    text-align: right;
    color: var(--text) !important;
    margin-top: 35px
}

.company-table {
    border-top: 1px solid var(--line)
}

.company-table>div {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 22px 0;
    border-bottom: 1px solid var(--line)
}

.company-table dt {
    color: var(--accent-2);
    font-size: .82rem
}

.company-table dd {
    margin: 0
}

.job {
    border-top: 1px solid var(--line)
}

.job:last-child {
    border-bottom: 1px solid var(--line)
}

.job summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    font-size: 1.3rem
}

.job-overview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.job-title {
    display: block;
}

.job-description {
    display: block;
    margin-top: 16px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.job-requirements-button {
    margin-top: 22px;
    pointer-events: none;
    /* --- ここから色指定を追加 --- */
    background-color: #8792b1; /* 背景色（例: 白） */
    color: #000000;            /* 文字色（例: 黒） */
    border-color: #8792b1;     /* 枠線の色（必要に応じて） */
}

.job[open] .job-requirements-button {
    background: var(--surface-2);
}

.job-photo {
    display: block;
    width: min(34%, 320px);
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--surface-2);
}

.job-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.job summary::-webkit-details-marker {
    display: none
}

.job summary small {
    display: block;
    color: var(--accent-2);
    font-size: .65rem;
    letter-spacing: .16em
}

.job summary b {
    font-weight: 300;
    font-size: 1.6rem
}

.job[open] summary b {
    transform: rotate(45deg)
}

.job-content {
    padding: 5px 5px 40px
}

.job-content dl>div {
    display: grid;
    grid-template-columns: 150px 1fr;
    border-top: 1px solid var(--line);
    padding: 18px 0
}

.job-content dt {
    color: var(--accent-2)
}

.job-content dd {
    margin: 0;
    color: var(--muted)
}

.benefit-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px
}

.benefit-grid li {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line)
}

.benefit-grid span {
    display: block;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.4rem
}

.filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.filter button {
    padding: 9px 20px;
    border: 1px solid var(--line);
    background: transparent;
    font-size: .72rem;
    letter-spacing: .1em;
    cursor: pointer
}

.filter button.active,
.filter button:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #10131a
}

.shop-notice {
    margin-bottom: 45px;
    color: var(--muted);
    font-size: .82rem
}

.product-detail>* {
    margin-bottom: 27px
}

.large {
    font-size: 1.8rem
}

.quantity {
    display: flex;
    align-items: center;
    gap: 18px
}

.quantity input,
.cart-item input {
    width: 72px;
    padding: 7px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text)
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 40px;
    align-items: start
}

.cart-item {
    display: grid;
    grid-template-columns: 140px 1fr auto auto;
    gap: 22px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    position: relative
}

.cart-item .image-area {
    aspect-ratio: 1
}

.cart-item .image-area img[src="images/aobara.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/suzurann2.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/gurerann2.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/asutorea2.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/akusuta.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/sanntora.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/siryousyuu.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/art2.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item .image-area img[src="images/pin.png"] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.cart-item h2 {
    font-size: 1rem
}

.cart-item label {
    font-size: .75rem
}

.line-total {
    font-weight: 500
}

.text-button {
    grid-column: 2;
    background: none;
    border: 0;
    padding: 0;
    width: max-content;
    color: var(--muted);
    font-size: .75rem;
    text-decoration: underline;
    cursor: pointer
}

.summary {
    position: sticky;
    top: 110px;
    background: var(--surface);
    padding: 28px;
    border: 1px solid var(--line)
}

.summary>div {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-top: 1px solid var(--line)
}

.summary>p {
    font-size: .75rem;
    color: var(--muted)
}

.summary .button {
    width: 100%
}

.empty-state {
    text-align: center;
    padding-block: 30px;
    max-width: 700px
}

.empty-state .button {
    margin-top: 25px
}

.order-table {
    border-top: 1px solid var(--line)
}

.order-row {
    display: grid;
    grid-template-columns: 2fr .7fr .5fr .7fr .8fr;
    gap: 15px;
    padding: 20px 10px;
    border-bottom: 1px solid var(--line);
    align-items: center;
    font-size: .88rem
}

.order-head {
    color: var(--accent-2);
    font-size: .72rem
}

.order-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 50px;
    padding: 35px 10px;
    font-size: 1.2rem
}

.order-total strong {
    font-size: 1.7rem
}

.confirm-actions {
    justify-content: flex-end
}

.form-wrap {
    max-width: 780px
}

.form-wrap form {
    margin-top: 40px
}

.field {
    margin-bottom: 28px
}

.field label {
    display: block;
    margin-bottom: 9px
}

.field label span,
.check-field span {
    color: var(--accent-2);
    font-size: .65rem;
    margin-left: 8px
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 0
}

.field select option {
    background: var(--surface)
}

.field textarea {
    resize: vertical
}

.check-field {
    margin: 34px 0
}

.check-field input {
    accent-color: var(--accent)
}

.error {
    color: var(--danger);
    font-size: .78rem;
    margin: 5px 0 0
}

.site-footer {
    padding: 75px 0 30px;
    background: #090c12;
    border-top: 1px solid var(--line)
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px
}

.footer-logo {
    display: block;
    align-self: flex-start
}

.footer-logo img {
    display: block;
    width: auto;
    height: 80px;
    max-width: 100%;
    object-fit: contain
}

.footer-grid p {
    color: var(--muted)
}

.footer-grid nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 45px;
    font-size: .75rem;
    letter-spacing: .1em
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .67rem
}

/* 全ページ共通：ページトップへ戻る */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto
}

.back-to-top-label {
    color: var(--text);
    font-size: .65rem;
    line-height: 1;
    letter-spacing: .18em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .35s ease, transform .35s ease
}

.back-to-top-button {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--text) 42%, transparent);
    border-radius: 50%;
    background: var(--bg-2);
    background: color-mix(in srgb, var(--bg-2) 88%, transparent);
    color: var(--text);
    cursor: pointer;
    transition: border-color .35s ease, box-shadow .35s ease
}

.back-to-top-button:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px
}

.back-to-top-motif {
    position: absolute;
    inset: 0;
    display: block
}

.back-to-top-star {
    position: absolute;
    top: 9px;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translateX(-50%);
    transition: transform .35s ease-out
}

.back-to-top-star::before,
.back-to-top-star::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--text)
}

.back-to-top-star::before {
    width: 3px;
    height: 10px;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%)
}

.back-to-top-star::after {
    width: 8px;
    height: 3px;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%)
}

.back-to-top-line {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 1px;
    height: 17px;
    background: color-mix(in srgb, var(--text) 82%, transparent);
    transform: translateX(-50%);
    transform-origin: center bottom;
    transition: height .35s ease-out
}

.back-to-top-spark {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--text);
    opacity: 0;
    transition: opacity .3s ease, transform .35s ease-out
}

.back-to-top-spark-two {
    top: 8px;
    right: 9px
}

@media(hover:hover) {
    .back-to-top:hover .back-to-top-label,
    .back-to-top:focus-within .back-to-top-label {
        opacity: 1;
        transform: translateX(0)
    }

    .back-to-top-button:hover {
        border-color: color-mix(in srgb, var(--text) 72%, transparent);
        box-shadow: 0 0 10px color-mix(in srgb, var(--accent-2) 14%, transparent)
    }

    .back-to-top-button:hover .back-to-top-star {
        transform: translate(-50%, -3px)
    }

    .back-to-top-button:hover .back-to-top-line {
        height: 20px
    }

    .back-to-top-button:hover .back-to-top-spark {
        opacity: .35;
        transform: translateY(-4px)
    }
}

@media(max-width:600px) {
    .back-to-top {
        right: 16px;
        bottom: 18px
    }

    .back-to-top-label {
        display: none
    }

    .back-to-top-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px
    }
}

@media(max-width:900px) {

    .company-message {
        grid-column: 1;
    }

    .company-portrait {
        grid-column: 1;
        width: min(100%, 520px);
    }

    .menu-button {
        display: block;
        position: relative;
        z-index: 2
    }

    .nav {
        position: fixed;
        top: var(--header);
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        background: var(--bg-2);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transition: max-height .35s, opacity .25s
    }

    .nav.open {
        max-height: calc(100vh - var(--header));
        opacity: 1;
        border-bottom: 1px solid var(--line)
    }

    .nav a {
        padding: 18px 28px;
        border-top: 1px solid var(--line)
    }

    .cart-link {
        border: 0
    }

    .split,
    .detail-grid,
    .cart-layout {
        grid-template-columns: 1fr
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .service-grid {
        grid-template-columns: 1fr
    }

    .benefit-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .summary {
        position: static
    }

    .cart-item {
        grid-template-columns: 110px 1fr auto
    }

    .line-total {
        grid-column: 3
    }

    .text-button {
        grid-column: 2
    }

    .order-row {
        grid-template-columns: 1.7fr .6fr .5fr .7fr
    }

    .order-row span:nth-child(2) {
        display: none
    }
}

@media(max-width:640px) {

    .job summary {
        gap: 16px;
        font-size: 1rem;
    }

    .job-photo {
        width: 38%;
    }

    .container,
    .header-inner {
        width: min(calc(100% - 32px), var(--max))
    }

    .section {
        padding: 70px 0
    }

    .game-grid,
    .product-grid,
    .cta-grid {
        grid-template-columns: 1fr
    }

    .hero-content h1 br {
        display: none
    }

    .page-hero h1 {
        font-size: 2.35rem
    }

    .news-list article {
        grid-template-columns: 100px 1fr;
        gap: 5px 15px
    }

    .news-list span {
        grid-column: 2
    }

    .news-list h3 {
        grid-column: 1/-1;
        margin-top: 8px
    }

    .company-table>div,
    .job-content dl>div {
        grid-template-columns: 1fr;
        gap: 7px
    }

    .benefit-grid {
        grid-template-columns: 1fr
    }

    .cart-item {
        grid-template-columns: 80px 1fr
    }

    .cart-item label,
    .line-total {
        grid-column: 2
    }

    .text-button {
        grid-column: 2
    }

    .order-table {
        overflow-x: auto
    }

    .order-row {
        min-width: 600px
    }

    .confirm-actions {
        flex-direction: column-reverse
    }

    .confirm-actions .button {
        width: 100%
    }

    .footer-grid,
    .footer-bottom {
        flex-direction: column
    }

    .footer-grid nav {
        margin-top: 15px
    }

    .footer-bottom {
        gap: 5px
    }

    .card-actions {
        flex-direction: column
    }

    .card-body h3 {
        min-height: auto
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important
    }

    .navy-particle-layer {
        display: none;
    }

    .back-to-top-button:hover .back-to-top-star,
    .back-to-top-button:hover .back-to-top-spark {
        transform: none
    }

    .back-to-top-button:hover .back-to-top-line {
        height: 17px
    }

    .back-to-top-spark {
        display: none
    }
}
