/* 全体の配色、余白、キーボード操作時の表示。 */
:root {
    color-scheme: dark;
    --background: #050b10;
    --panel: #0a1116;
    --text: #f7f8fa;
    --muted: #d6d9dc;
    --accent: #e00079;
    --border: #293039;
    --gutter: clamp(20px, 3.8vw, 56px);
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font: inherit;
}
img {
    display: block;
    max-width: 100%;
}
h1,
h2,
h3,
p {
    margin: 0;
}
a:focus-visible,
button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}
[hidden] {
    display: none !important;
}
.container {
    width: min(100% - var(--gutter) * 2, 1360px);
    margin-inline: auto;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.display-filters {
    position: absolute;
    pointer-events: none;
}
.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 20;
    padding: 12px 20px;
    background: #fff;
    color: #111;
}
.skip-link:focus {
    top: 12px;
}

/* 公式DOME画像のスクリーン部分を背景として使う。 */
.masthead {
    position: relative;
    /* 開いたメニューが後続のサービス画像に隠れないようにする。 */
    z-index: 1;
    isolation: isolate;
    background: #020911;
}
.masthead::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
        linear-gradient(90deg, #02080fe8 0%, #02080faa 34%, #02080f18 70%),
        linear-gradient(0deg, #02080f88, transparent 55%),
        url('../img/home/dome-venue_shared_reality.webp');
    background-size:
        cover,
        cover,
        170% auto;
    background-position:
        center,
        center,
        right 20%;
    background-repeat: no-repeat;
}
.site-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}
.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}
/* NEXIA Adsの字体・太さは、ヘッダーのNEXIAと共通にする。 */
.brand span,
.wordmark--ads {
    font-family: Arial, sans-serif;
    font-weight: 700;
}
.brand span {
    font-size: 36px;
    letter-spacing: 0.055em;
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.2vw, 32px);
    font-size: 14px;
    font-weight: 600;
}
.desktop-nav > a:not(.button):hover {
    color: #f47ab8;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 52px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition:
        background-color 0.18s,
        border-color 0.18s;
}
.button span {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
}
.button--header {
    min-height: 44px;
    padding: 9px 20px;
    border-color: #aeb4bf;
    font-size: 13px;
}
.button--header:hover {
    background: #ffffff15;
    border-color: #fff;
}
.hero {
    padding-top: 30px;
    padding-bottom: 34px;
}
.hero h1 {
    font-size: clamp(42px, 5.25vw, 76px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.16;
}

/* モバイル用のナビゲーション。 */
.menu-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 0 12px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.menu-lines {
    position: relative;
    display: block;
    width: 23px;
    height: 14px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}
.menu-lines::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    width: 23px;
    height: 1px;
    background: currentColor;
}
.mobile-nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    z-index: 10;
    padding: 12px;
    background: #070d13;
    border: 1px solid #343b44;
    box-shadow: 0 15px 30px #0008;
}
.mobile-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
}
.mobile-nav a:hover {
    background: #ffffff0d;
}

/* VIDEOとDOMEは同じ大きさで配置し、写真と見出しを一組にする。 */
.featured-services {
    display: grid;
    gap: 16px;
    padding-top: 0;
}
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 326px;
    background: #060d13;
    border: 1px solid #1c2630;
}
.feature-visual {
    position: relative;
    min-width: 0;
    overflow: hidden;
}
.feature-visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 43% center;
}
.feature-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 78%, #060d13);
    pointer-events: none;
}
.feature-visual--video img {
    object-position: center 40%;
}
.feature-copy {
    align-self: center;
    padding: 36px 30px;
}
.feature-name {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.feature-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 4px;
    background: var(--accent);
}
.feature h2 {
    font-size: clamp(25px, 2.9vw, 41px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -0.045em;
}
.feature-description {
    margin-top: 14px;
    color: var(--muted);
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.8;
}
.feature-description span {
    display: inline-block;
}
.button--primary {
    margin-top: 24px;
    background: var(--accent);
    padding-inline: 26px;
}
.button--primary:hover {
    background: #fb168f;
}

/* サービス一覧は黒背景の4列。右上の矢印やURL表記は設けない。 */
.services {
    padding-top: 36px;
    padding-bottom: 30px;
    scroll-margin-top: 20px;
}
.section-heading {
    margin-bottom: 24px;
    text-align: center;
}
.section-heading h2 {
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -0.025em;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.service-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    transition:
        border-color 0.18s,
        background-color 0.18s;
}
.service-card:hover {
    border-color: #d95194;
    background: #10171d;
}
.service-card:focus-visible {
    outline-offset: 3px;
}
.card-identity {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 82px;
    flex-shrink: 0;
}
.card-identity--center {
    justify-content: center;
    align-items: center;
}
.wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}
.wordmark img {
    flex-shrink: 0;
    object-fit: contain;
}
.wordmark--tonarico {
    justify-content: center;
    gap: 12px;
    font-size: clamp(24px, 2.35vw, 34px);
    letter-spacing: 0.04em;
}
.wordmark--tonarico img {
    width: 40px;
    height: 44px;
    transform: scale(1.55);
}
.sports-wordmark {
    width: 100%;
    height: 50px;
    object-fit: contain;
}
.wordmark--paybridge {
    gap: 6px;
    color: #386cff;
    font-size: clamp(24px, 2.15vw, 30px);
    letter-spacing: -0.03em;
}
.wordmark--paybridge img {
    width: 52px;
    height: 52px;
    filter: url('#remove-white');
}
/* IDOL Recordのロゴ背景は白を保ち、四辺の2pxだけを黒背景へフェードさせる。 */
.wordmark--idol {
    position: relative;
    isolation: isolate;
    padding-inline: 12px;
}
.wordmark--idol::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -6px;
    bottom: -6px;
    left: 50%;
    width: min(100%, 200px);
    transform: translateX(-50%);
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        #fff0,
        #fff 2px,
        #fff calc(100% - 2px),
        #fff0
    );
    -webkit-mask-image: linear-gradient(
        180deg,
        transparent,
        #000 2px,
        #000 calc(100% - 2px),
        transparent
    );
    mask-image: linear-gradient(
        180deg,
        transparent,
        #000 2px,
        #000 calc(100% - 2px),
        transparent
    );
    pointer-events: none;
}
.idol-wordmark {
    width: 100%;
    height: 51px;
    object-fit: contain;
}
.wordmark--recovery {
    gap: 7px;
    color: #21afaa;
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 700;
    letter-spacing: -0.04em;
}
.wordmark--recovery img {
    width: 32px;
    height: 32px;
}
/* Adsは通常の半角スペースで区切り、字間や要素間の余白を追加しない。 */
.wordmark--ads {
    display: block;
    text-align: center;
    font-size: 35px;
    letter-spacing: normal;
}
.wordmark--typworld {
    width: auto;
    padding: 4px 9px;
    border: 1px solid #9298a6;
    font-family:
        YuGothic, 'Yu Gothic', 'Hiragino Kaku Gothic Pro', Meiryo, sans-serif;
    font-size: 28px;
}
.wordmark--playg {
    gap: 13px;
    font-size: 29px;
}
.wordmark--playg img {
    width: 49px;
    height: 49px;
    border-radius: 11px;
}
.service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 2.1;
    object-fit: cover;
    flex-shrink: 0;
}
.service-image--recovery {
    object-position: center 34%;
}
/* IDOL Recordはロゴを見出しにし、公式アプリアイコンをサムネイルにする。 */
.service-image--idol {
    position: relative;
    overflow: hidden;
}
.service-image--idol img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.card-description {
    min-height: 4.8em;
    color: #e7e9ec;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.card-description span {
    display: inline-block;
    max-width: 100%;
}

/* 会社概要は黒背景を保ち、見出しと既存の企業情報を左右に配置する。 */
.company-info {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
    gap: 48px;
    padding-block: 40px 56px;
    border-top: 1px solid var(--border);
}
.company-info .section-heading {
    margin-bottom: 0;
    text-align: left;
}
.company-details {
    min-width: 0;
    margin: 0;
    font-size: 15px;
    line-height: 1.8;
}
.company-details > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    padding-block: 16px;
    border-bottom: 1px solid var(--border);
}
.company-details > div:first-child {
    padding-top: 4px;
}
.company-details dt {
    color: var(--muted);
    font-weight: 500;
}
.company-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.company-details a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.company-details a:hover {
    color: #f47ab8;
}

/* カンプの幾何学模様を、画像ではなくCSSの背景として表現する。 */
.contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #090b0f;
    border-block: 1px solid #22282e;
}
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(
            125deg,
            transparent 0 170px,
            #bc176222 171px,
            transparent 173px 320px
        ),
        linear-gradient(
            150deg,
            #66123835,
            transparent 35%,
            #14151b 65%,
            #590a2738
        );
}
.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #7d1a4930;
    clip-path: polygon(
        0 40%,
        13% 0,
        21% 100%,
        44% 0,
        65% 100%,
        74% 0,
        84% 100%,
        100% 18%,
        100% 0,
        0 0
    );
}
.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding-block: 28px;
}
.contact h2 {
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.contact p {
    margin-top: 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.8;
}
.button--contact {
    min-width: 228px;
    border-color: var(--accent);
    background: #080a0cb3;
}
.button--contact:hover {
    background: #45122b;
}

/* フッターは横並びを基本に、狭い画面では折り返す。 */
.site-footer {
    background: #050a0e;
}
.footer-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 86px;
    padding-block: 16px;
    font-size: 11px;
}
.footer-company {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: auto;
}
.brand--footer {
    gap: 9px;
}
.brand--footer img {
    width: 35px;
    height: 35px;
}
.brand--footer span {
    font-size: 25px;
    letter-spacing: 0.03em;
}
.footer-nav {
    display: flex;
    gap: 18px;
    white-space: nowrap;
}
.footer-nav a + a {
    padding-left: 18px;
    border-left: 1px solid #787d82;
}
.footer-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.site-footer small {
    font-size: 11px;
    white-space: nowrap;
}

/* カンプと同程度の画面幅では、要素の密度を揃える。 */
@media (max-width: 1199px) {
    :root {
        --gutter: 22px;
    }
    .site-header {
        min-height: 80px;
    }
    .brand img {
        width: 42px;
        height: 42px;
    }
    .brand span {
        font-size: 32px;
    }
    .desktop-nav {
        gap: 23px;
        font-size: 12px;
    }
    .hero {
        padding-top: 20px;
        padding-bottom: 24px;
    }
    .hero h1 {
        font-size: clamp(44px, 5.7vw, 65px);
    }
    .feature {
        min-height: 255px;
    }
    .feature-copy {
        padding: 28px 22px;
    }
    .feature-name {
        font-size: 19px;
        margin-bottom: 14px;
        padding-bottom: 13px;
    }
    .feature h2 {
        font-size: clamp(25px, 3vw, 34px);
    }
    .feature-description {
        margin-top: 10px;
        font-size: 13px;
    }
    .button--primary {
        min-height: 46px;
        margin-top: 20px;
        font-size: 14px;
    }
    .services {
        padding-top: 24px;
        padding-bottom: 20px;
    }
    .section-heading {
        margin-bottom: 18px;
    }
    .section-heading h2 {
        font-size: 32px;
    }
    .service-grid {
        gap: 12px;
    }
    .service-card {
        gap: 10px;
        padding: 12px;
    }
    .card-identity {
        height: 73px;
    }
    .wordmark--tonarico {
        font-size: 28px;
        gap: 8px;
    }
    .wordmark--tonarico img {
        width: 34px;
        height: 40px;
    }
    .wordmark--paybridge {
        font-size: 26px;
        gap: 3px;
    }
    .wordmark--paybridge img {
        width: 42px;
        height: 46px;
    }
    .wordmark--recovery {
        font-size: 14px;
        gap: 4px;
    }
    .wordmark--recovery img {
        width: 26px;
        height: 30px;
    }
    .wordmark--ads {
        font-size: 31px;
    }
    .wordmark--playg {
        font-size: 24px;
        gap: 10px;
    }
    .wordmark--playg img {
        width: 40px;
        height: 40px;
    }
    .card-description {
        font-size: 12px;
        min-height: 4.95em;
    }
    .footer-inner {
        gap: 20px;
    }
    .footer-company {
        gap: 16px;
    }
}

/* タブレットでは2列にし、ブランド表記の十分な幅を確保する。 */
@media (max-width: 959px) {
    .desktop-nav {
        gap: 16px;
    }
    .brand span {
        font-size: 27px;
    }
    .brand img {
        width: 37px;
        height: 37px;
    }
    .button--header {
        padding-inline: 13px;
        gap: 10px;
    }
    .feature {
        min-height: 275px;
    }
    .feature-copy {
        padding: 26px 18px;
    }
    .feature h2 {
        font-size: 26px;
    }
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .card-identity {
        height: 80px;
    }
    .card-description {
        font-size: 14px;
        min-height: 3.3em;
    }
    .wordmark--tonarico {
        font-size: 32px;
    }
    .wordmark--paybridge {
        font-size: 30px;
    }
    .wordmark--recovery {
        font-size: 18px;
    }
    .wordmark--ads {
        font-size: 35px;
    }
    .wordmark--playg {
        font-size: 29px;
    }
    .footer-inner {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
    .footer-company {
        width: 100%;
    }
    .site-footer small {
        margin-left: auto;
    }
}

/* スマートフォンでは写真と説明を縦にし、カードは2列のまま読みやすくする。 */
@media (max-width: 759px) {
    :root {
        --gutter: 20px;
    }
    .site-header {
        min-height: 76px;
    }
    .brand img {
        width: 35px;
        height: 35px;
    }
    .brand span {
        font-size: 28px;
    }
    .desktop-nav {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .masthead::before {
        background-size:
            cover,
            cover,
            auto 260%;
        background-position:
            center,
            center,
            68% 10%;
    }
    .hero {
        padding-top: 36px;
        padding-bottom: 36px;
    }
    .hero h1 {
        font-size: clamp(39px, 8.5vw, 59px);
        line-height: 1.25;
    }
    .featured-services {
        gap: 20px;
    }
    .feature {
        grid-template-columns: 1fr;
    }
    .feature-visual {
        aspect-ratio: 1.95;
    }
    .feature-visual::after {
        background: linear-gradient(0deg, #060d13, transparent 24%);
    }
    .feature-copy {
        padding: 16px 22px 26px;
    }
    .feature h2 {
        font-size: clamp(23px, 4.8vw, 32px);
    }
    .feature-name {
        font-size: 18px;
    }
    .feature-description {
        font-size: 13px;
    }
    .button--primary {
        min-height: 48px;
        margin-top: 20px;
    }
    .services {
        padding-top: 38px;
        padding-bottom: 28px;
    }
    .section-heading {
        margin-bottom: 22px;
    }
    .section-heading h2 {
        font-size: 28px;
    }
    .service-grid {
        gap: 12px;
    }
    .service-card {
        padding: 10px;
        gap: 10px;
    }
    .card-identity {
        height: 73px;
    }
    .wordmark--tonarico {
        gap: 5px;
        font-size: clamp(19px, 4.1vw, 29px);
    }
    .wordmark--tonarico img {
        width: 26px;
        height: 34px;
    }
    .wordmark--paybridge {
        gap: 2px;
        font-size: clamp(18px, 3.8vw, 28px);
    }
    .wordmark--paybridge img {
        width: 29px;
        height: 37px;
    }
    .wordmark--recovery {
        flex-direction: column;
        gap: 3px;
        font-size: clamp(10px, 2.2vw, 15px);
        letter-spacing: -0.06em;
    }
    .wordmark--recovery img {
        width: 24px;
        height: 24px;
    }
    .wordmark--ads {
        font-size: clamp(23px, 4.8vw, 34px);
    }
    .wordmark--playg {
        gap: 7px;
        font-size: clamp(19px, 3.8vw, 28px);
    }
    .wordmark--playg img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .idol-wordmark {
        height: 44px;
    }
    .wordmark--typworld {
        padding: 4px 7px;
        font-size: clamp(19px, 3.8vw, 28px);
    }
    .sports-wordmark {
        height: 40px;
    }
    .service-image {
        aspect-ratio: 1.7;
    }
    .card-description {
        font-size: 12px;
        line-height: 1.75;
        min-height: 5.25em;
    }
    .company-info {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-block: 36px 40px;
    }
    .company-details {
        font-size: 13px;
    }
    .company-details > div {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 16px;
        padding-block: 14px;
    }
    .contact-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-block: 28px;
    }
    .contact h2 {
        font-size: 25px;
    }
    .contact p {
        font-size: 13px;
    }
    .button--contact {
        min-width: 200px;
        min-height: 48px;
        font-size: 14px;
    }
    .footer-inner {
        align-items: flex-start;
        padding-block: 24px;
        font-size: 10px;
    }
    .footer-company {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .footer-nav {
        gap: 12px;
    }
    .footer-nav a + a {
        padding-left: 12px;
    }
    .site-footer small {
        width: 100%;
        margin: 0;
        font-size: 10px;
    }
}

/* 小さい端末ではカードを1列にし、ロゴの縮小を避ける。 */
@media (max-width: 359px) {
    :root {
        --gutter: 16px;
    }
    .hero h1 {
        font-size: 35px;
    }
    .brand {
        gap: 8px;
    }
    .menu-toggle {
        gap: 8px;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .wordmark--tonarico {
        font-size: 28px;
    }
    .wordmark--paybridge {
        font-size: 28px;
    }
    .wordmark--recovery {
        flex-direction: row;
        font-size: 16px;
    }
    .wordmark--ads {
        font-size: 32px;
    }
    .wordmark--playg {
        font-size: 28px;
    }
    .card-description {
        min-height: 3.5em;
    }
    .service-image {
        aspect-ratio: 2.1;
    }
}

/* 動きを減らす設定を尊重する。 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    a {
        transition: none;
    }
}
