.p-front-hero {
    position: relative;
    padding-block: 0;
    height: 699px;
    overflow: hidden;
}

.p-front-hero__inner {
    position: relative;
    inline-size: 100%;
    max-inline-size: 1440px;
    margin-inline: auto;
    /* block-size:100% は付けない。現行の .mv__inner も height 指定なし */
}

/* 現行サイトの値: top 290 / left 220 */
.p-front-hero__wrap {
    z-index: 1;
    position: absolute;
    inset-block-start: 290px;
    inset-inline-start: 220px;
}

.p-front-hero__heading {
    inline-size: 384px;
    margin: 0 0 12px;
}

.p-front-hero__heading img {
    inline-size: 100%;
    block-size: auto;
}

.p-front-hero__en {
    margin: 0;
    padding-block-end: 16px;
    font-family: var(--font-en);
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    line-height: 32px;
    color: var(--color-gray);
}

/* writing-mode と論理プロパティの相互作用を避けるため物理プロパティを使用 */
.p-front-hero__scroll {
    position: absolute;
    top: 235px;
    left: -135px;
    writing-mode: vertical-rl;
    font-weight: 300;
    font-size: 12px;
    color: var(--color-text);
}

.p-front-hero__scroll span {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translate(-50%);
}

.p-front-hero__scroll-arrows {
    position: absolute;
    bottom: 20px;
    left: 50%;
    width: 22px;
    height: 66px;
    margin-left: -11px;
}

.p-front-hero__scroll-arrows path {
    fill: transparent;
    stroke-width: 1px;
    animation: p-front-hero-arrow 2s infinite ease-in-out;
}

.p-front-hero__scroll-arrows path.a5 { animation-delay: -0.4s; }
.p-front-hero__scroll-arrows path.a4 { animation-delay: -0.8s; }
.p-front-hero__scroll-arrows path.a3 { animation-delay: -1.2s; }
.p-front-hero__scroll-arrows path.a2 { animation-delay: -1.6s; }
.p-front-hero__scroll-arrows path.a1 { animation-delay: -2s; }

@keyframes p-front-hero-arrow {
    0%   { opacity: 0; }
    25%  { opacity: 0.25; }
    50%  { opacity: 1; }
    75%  { opacity: 0.25; }
    100% { opacity: 0; }
}

/* 現行サイトの値: left 285 / width 91% */
.p-front-hero__slider {
    z-index: 0;
    position: absolute;
    top: 0;
    left: 285px;
    width: 91%;
}

.p-front-hero__slide img {
    display: block;
    width: 100%;
    height: auto;
}

/* Swiper既定の絶対配置を打ち消して通常フローに戻す */
.p-front-hero__pagination.swiper-pagination {
    position: static;
    display: flex;
    gap: 4px;
    width: auto;
    transform: none;
}

/* バレットはひし形。色はデザイン確定後にトークン化して差し替える */
.p-front-hero .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 0;
    background: #ccc;
    opacity: 0.5;
    transform: rotate(-45deg);
    transition: background-color 0.3s, transform 0.3s;
}

.p-front-hero .swiper-pagination-bullet-active {
    opacity: 1;
    transform: rotate(-45deg) scale(1.2);
    background: #e50083;
}

.p-front-hero .swiper-pagination-bullet-active:nth-child(2) { background: #1c6cd7; }
.p-front-hero .swiper-pagination-bullet-active:nth-child(3) { background: #ffb01f; }
.p-front-hero .swiper-pagination-bullet-active:nth-child(4) { background: #009f88; }
.p-front-hero .swiper-pagination-bullet-active:nth-child(5) { background: #e61756; }

.p-front-hero__links {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-top: 24px;
}

.p-front-hero__link.c-more-link {
    font-size: 18px;
    line-height: 32px;
}

@media (max-width: 1024px) {
    .p-front-hero { block-size: 60vw; }
    .p-front-hero__wrap { inset-block-start: 20vw; inset-inline-start: 8vw; }
    .p-front-hero__scroll { display: none; }
    .p-front-hero__slider { inset-inline-start: 20vw; inline-size: 100%; }
}

@media (max-width: 769px) {
    .p-front-hero { block-size: min(160vw, 820px); overflow-x: hidden; overflow-y: visible; }
    .p-front-hero__wrap { inset-block-start: 67vw; inset-inline-start: 7.466vw; inset-inline-end: 7.466vw; }
    .p-front-hero__heading { inline-size: 60.533vw; max-inline-size: 350px; }
    .p-front-hero__slider { inset-block-start: 0; inset-inline-start: 0; inline-size: 100%; }
    .p-front-hero__links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 16px;
    }
    .p-front-hero__link.c-more-link {
        display: flex;
        width: 100%;
        font-size: 16px;
        padding-top: 10px;
        padding-bottom: 15px;
    }
    .p-front-hero__link.c-more-link .c-more-link__text {
        flex: 1;
    }
}

.p-front-news {
    position: relative;
    padding: 88px 120px 168px;
    overflow: hidden;
    background: url('../../images/top/top_news_bg-pc.png') no-repeat top / cover;
}

/* mix-blend-mode: overlay で背景に馴染ませる旧テーマ踏襲 */
.p-front-news::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 668px;
    height: 528px;
    background: url('../../images/top/top_news_deco-pc.png') no-repeat top / cover;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.p-front-news__card {
    display: grid;
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "meta list"
        "more list";
    column-gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding: 48px 56px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.70));
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.p-front-news__meta {
    grid-area: meta;
    display: flex;
    flex-direction: column;
}

.p-front-news__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-gray);
}

.p-front-news__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-brand-sky);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.p-front-news__heading {
    margin: 0 0 0;
    font-family: var(--font-base);
    font-size: 20px;
    font-weight: 700;
    line-height: 36px;
    color: var(--color-text);
}

.p-front-news__more.c-more-link {
    grid-area: more;
    align-self: start;
    margin-top: 0;
}

.p-front-news__list {
    grid-area: list;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.p-front-news__item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-block: 20px;
    border-bottom: 1px solid var(--color-gray-light);
    text-decoration: none;
    color: var(--color-text);
}

.p-front-news__item:hover { opacity: 0.7; }

.p-front-news__item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.p-front-news__date {
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-gray);
    white-space: nowrap;
}

.p-front-news__cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border: 1px solid var(--color-gray-light);
    border-radius: 100px;
    font-size: 12px;
    color: var(--color-gray);
    white-space: nowrap;
}

.p-front-news__cat-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-brand-sky);
    flex-shrink: 0;
}

.p-front-news__title {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-front-news__empty {
    padding-block: 20px;
    font-size: 14px;
    color: var(--color-gray);
}

@media (max-width: 769px) {
    .p-front-news {
        padding: 48px 28px;
        background-image: url('../../images/top/top_news_bg-sp.png');
    }
    .p-front-news__title {
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
    .p-front-news::before {
        background-image: url('../../images/top/top_news_deco-sp.png');
        width: 60%;
        height: auto;
        aspect-ratio: 375 / 492;
    }
    .p-front-news__card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "meta"
            "list"
            "more";
        gap: 24px;
        padding: 32px 24px;
        border-radius: 24px;
    }
}

.p-front-company,
.p-front-recruit,
.p-front-contact {
    padding-block: var(--space-xl);
}

.p-front-gate {
    padding-block: 80px;
}

.p-front-gate__inner {
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    padding-inline: var(--space-md);
    position: relative;
}

.p-front-gate__header {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-light);
    margin-bottom: 40px;
}

.p-front-gate__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-family: var(--font-en);
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-gray);
}

.p-front-gate__label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-brand-rose);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.p-front-gate__title-wrap {
    display: flex;
    align-items: baseline;
    gap: 24px;
}

.p-front-gate__heading {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--color-text);
}

.p-front-gate__subtitle {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
}

.p-front-gate__deco {
    position: absolute;
    top: -69px;
    left: 56%;
    font-family: "Inter", sans-serif;
    font-size: clamp(140px, 13.888vw, 200px);
    font-weight: 300;
    font-style: italic;
    line-height: 100%;
    pointer-events: none;
    white-space: nowrap;
    background: linear-gradient(180deg, #f2f2f2 0%, rgba(242, 242, 242, 0) 88.5%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.p-front-gate__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.p-front-gate__card {
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
}

.p-front-gate__card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 480 / 240;
}

.p-front-gate__card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ひし形装飾は画像に焼き込み済みのためCSSでは不要 */

.p-front-gate__card-body {
    padding: 24px 28px 32px;
}

.p-front-gate__card-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    line-height: 32px;
    color: var(--color-text);
}

.p-front-gate__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-front-gate__card--tob .p-front-gate__links .c-more-link {
    height: 45px;
    padding-bottom: 0;
    font-size: 16px;
    font-weight: 500;
    background-position: 0 100%;
}

.p-front-gate__card--toc .p-front-gate__links .c-more-link {
    height: 33px;
    padding-bottom: 0;
    font-size: 14px;
    font-weight: 500;
    background-position: 0 100%;
}

.p-front-gate__toc-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-front-gate__toc-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-gray-light);
    text-decoration: none;
    color: var(--color-text);
    min-height: 37px;
}

.p-front-gate__toc-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 20px;
    height: 1px;
}

.p-front-gate__toc-link--blue::after     { background: var(--color-brand-blue); }
.p-front-gate__toc-link--rose::after     { background: var(--color-brand-rose); }
.p-front-gate__toc-link--lavender::after { background: #bbaad1; }
.p-front-gate__toc-link--amber::after    { background: var(--color-brand-amber); }
.p-front-gate__toc-link--teal::after     { background: var(--color-brand-teal); }

.p-front-gate__toc-link-label {
    flex: 1;
}

.p-front-gate__toc-link-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.p-front-gate__toc-link-name {
    color: var(--color-text);
    white-space: nowrap;
}

.p-front-gate__toc-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.p-front-gate__toc-link--blue     .p-front-gate__toc-icon { color: var(--color-brand-blue); }
.p-front-gate__toc-link--rose     .p-front-gate__toc-icon { color: var(--color-brand-rose); }
.p-front-gate__toc-link--lavender .p-front-gate__toc-icon { color: #bbaad1; }
.p-front-gate__toc-link--amber    .p-front-gate__toc-icon { color: var(--color-brand-amber); }
.p-front-gate__toc-link--teal     .p-front-gate__toc-icon { color: var(--color-brand-teal); }

@media (max-width: 769px) {
    .p-front-gate { padding-block: 40px; }
    .p-front-gate__grid { grid-template-columns: 1fr; }
    .p-front-gate__deco { display: none; }
    .p-front-gate__title-wrap { flex-direction: column; gap: 8px; }

    .p-front-gate__toc-link {
        flex-wrap: wrap;
        row-gap: 2px;
    }
    .p-front-gate__toc-link-label {
        flex: 0 0 100%;
    }
    .p-front-gate__toc-link-right {
        flex: 1;
        justify-content: space-between;
    }
}

.p-front-company {
    margin-top: 124px;
}

.p-front-company__inner {
    width: 100%;
    max-width: 931px;
    margin: 0 auto;
    padding: 0 24px;
}

.p-front-company__header {
    position: relative;
    margin-bottom: 80px;
    text-align: center;
}

.p-front-company__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-gray);
}

.p-front-company__label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-brand-amber);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.p-front-company__heading {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: var(--font-base);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--color-text);
}

.p-front-company__deco {
    position: absolute;
    z-index: 0;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Inter", sans-serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(100px, 10vw, 160px);
    line-height: 100%;
    background: linear-gradient(180deg, #f2f2f2 0%, rgba(242, 242, 242, 0) 88.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    pointer-events: none;
    white-space: nowrap;
}

.p-front-company__wrap {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 114px;
}

.p-front-company__left {
    display: flex;
    flex-wrap: wrap;
    width: 392px;
    flex-shrink: 0;
}

.p-front-company__text {
    width: 306px;
    margin: 0 0 48px;
    font-weight: 500;
    font-size: 18px;
    line-height: 200%;
    color: var(--color-text);
}

.p-front-company__links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0 32px;
}

.p-front-company__link-item {
    width: 180px;
}

.p-front-company__link {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 16px;
    border-bottom: 1px solid #dfdfdf;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    color: var(--color-text);
    text-decoration: none;
}

.p-front-company__link::before {
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 20px;
    height: 1px;
    background-color: var(--color-brand-amber);
    content: "";
}

.p-front-company__link::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: url(../../images/common/icon_arrow_yellow.svg) no-repeat top / cover;
    content: "";
}

.p-front-company__link:hover { opacity: 0.7; }

.p-front-company__image {
    position: absolute;
    right: 0;
    width: 100%;
    max-width: 524px;
    max-height: 524px;
}

.p-front-company__image img {
    width: 100%;
    height: auto;
}

@media (max-width: 769px) {
    .p-front-company { margin-top: 0; }
    .p-front-company__header { margin-bottom: 32px; }
    .p-front-company__deco { display: none; }
    .p-front-company__wrap {
        flex-direction: column;
        margin-bottom: 0;
    }
    .p-front-company__left { width: 100%; }
    .p-front-company__text { width: 100%; font-size: 16px; text-align: center; }
    .p-front-company__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; }
    .p-front-company__link-item { width: auto; }
    .p-front-company__image {
        position: static;
        max-width: 100%;
        margin-top: 0;
        order: -1;
    }
}

.p-front-cityview {
    width: 100%;
    margin-top: 80px;
    line-height: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
}

.p-front-cityview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.p-front-recruit {
    margin-top: 80px;
    padding-bottom: 80px;
}

.p-front-recruit__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.p-front-recruit__header {
    padding-top: 0;
}

.p-front-recruit__label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-gray);
}

.p-front-recruit__label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-brand-lavender);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.p-front-recruit__heading {
    margin: 0;
    font-family: var(--font-base);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--color-text);
}

.p-front-recruit__items {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-front-recruit__item a {
    display: block;
    position: relative;
    width: 383px;
    height: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.p-front-recruit__item a img {
    width: 100%;
    display: block;
}

.p-front-recruit__item-text {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    color: #fff;
}

.p-front-recruit__item-text::before {
    position: absolute;
    top: 0;
    right: 16px;
    width: 20px;
    height: 20px;
    background: url(../../images/common/icon_arrow_white.svg) no-repeat top / contain;
    content: "";
}

.p-front-recruit__item a:hover { opacity: 0.85; }

@media (max-width: 769px) {
    .p-front-cityview { margin-top: 24px; }
    .p-front-recruit { margin-top: 0; }
    .p-front-recruit__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .p-front-recruit__label { font-style: italic; }
    .p-front-recruit__items { flex-direction: column; width: 100%; }
    .p-front-recruit__item a { width: 100%; aspect-ratio: 383 / 320; }
    .p-front-recruit__item a img { height: 100%; object-fit: cover; }
}
