/* ==========================================================
   Quoreal Corporate Website
   css/experience.css

   Revision layer:
   - Openingロゴ画面を保持
   - スクロールでOpeningからHeroへ移行
   - Serviceを1画面内に収まりやすく調整
   - WHY QUOREALの装飾を刷新
   - CASE切り替えを見やすく改善
   - FLOWの余白を圧縮
   - COMPANYをクリック切り替え式に変更
   - CONTACTの背景・文字演出を強化

   style.css / opening.css の後に読み込みます。
========================================================== */

/* ==========================================================
   OPENING AS THE FIRST VIEWPORT
   扉の開き方はopening.cssの元設定を使用
========================================================== */

html {
    scroll-behavior: auto;
}

/*
 * 通常時・ドア演出中は黒背景
 */

#opening {
    position: fixed !important;
    inset: 0 !important;

    z-index: 999999 !important;

    display: block !important;

    width: 100% !important;
    height: 100svh !important;

    opacity: 1;
    visibility: visible;

    overflow: hidden;

    background: #000 !important;

    will-change:
        opacity,
        transform,
        filter;
}

#opening[data-state="playing"] {
    background: #000 !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto;
}

#opening[data-state="playing"] .opening-bg {
    background: #000 !important;

    opacity: 1 !important;
    visibility: visible !important;
}

#opening[data-state="playing"] .opening-bg::before,
#opening[data-state="playing"] .opening-bg::after {
    opacity: 0 !important;

    animation: none !important;
}

/*
 * 6秒後、ロゴ画面のみ白へ変更
 */

#opening.logo,
#opening[data-state="ready"] {
    background: #fff !important;

    pointer-events: none;
}

#opening.logo .opening-bg,
#opening[data-state="ready"] .opening-bg {
    background: #fff !important;
}

/*
 * OP終了後のロゴ・SCROLL
 * !importantを付けず、スクロール時のJS操作を有効にする
 */

#opening.logo .opening-logo,
#opening[data-state="ready"] .opening-logo {
    opacity: 1;
    visibility: visible !important;
}

#opening.logo .opening-scroll,
#opening[data-state="ready"] .opening-scroll {
    opacity: 1;
    visibility: visible !important;
}

/*
 * ドア演出中はヘッダーを非表示
 */

body.opening-active .header {
    opacity: 0 !important;
    visibility: hidden !important;

    pointer-events: none !important;

    transform:
        translateY(-20px) !important;
}

/*
 * OP終了後はヘッダーを表示
 */

body.opening-ready .header,
body.opening-finished .header,
body.opening-transitioned .header,
body.header-ready .header {
    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    transform:
        translateY(0) !important;
}
/*
 * スクロール進捗はOP終了後に表示
 */

.scroll-progress {
    opacity: 0;

    transition:
        opacity 0.35s ease;
}

body.opening-ready .scroll-progress {
    opacity: 1;
}

/*
 * Heroはロゴ画面の次の画面
 */

.hero {
    min-height: 100svh;
}

@media (max-width: 820px) {

    .opening-spacer {
        min-height: 560px;
    }

}

/* ==========================================================
   SERVICE
   4つの支援内容を1画面で見やすく表示
========================================================== */

.service {
    min-height: 100svh;

    padding:
        clamp(
            82px,
            9vh,
            112px
        )
        0
        clamp(
            76px,
            8vh,
            104px
        );

    display: flex;
    align-items: center;
}

.service .container {
    width:
        min(
            1480px,
            calc(100% - 72px)
        );
}

.service .section-header {
    margin-bottom: 52px;
}

.service .section-header h2 {
    font-size:
        clamp(
            42px,
            4.5vw,
            68px
        );
}

.service .section-description {
    margin-top: 23px;
}

.service-grid {
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.service-card {
    min-height: 365px;

    padding:
        29px
        25px
        28px;

    border-radius: 24px;
}

.service-card::before {
    height: 2px;
}

.service-visual {
    top: 25px;
    right: 21px;

    width: 92px;
    height: 92px;

    opacity: 0.52;
}

.service-visual span:nth-child(2) {
    inset: 15px;
}

.service-visual span:nth-child(3) {
    inset: 31px;
}

.service-top {
    min-height: 92px;

    margin-bottom: 30px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
}

.service-number {
    font-size: 28px;
    line-height: 1;
}

.service-en {
    max-width: 145px;

    font-size: 7px;
    line-height: 1.6;
}

.service-card h3 {
    max-width: 100%;
    min-height: 67px;

    margin-bottom: 13px;

    font-size:
        clamp(
            18px,
            1.45vw,
            23px
        );

    line-height: 1.5;
}

.service-card > p {
    min-height: 106px;

    font-size: 11px;
    line-height: 1.9;
}

.service-card ul {
    margin-top: 17px;
    padding-top: 15px;
    padding-right: 37px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.service-card li {
    padding: 4px 9px;

    font-size: 8px;
    line-height: 1.5;
}

.service-arrow {
    right: 20px;
    bottom: 20px;

    width: 36px;
    height: 36px;

    font-size: 12px;
}


/* ==========================================================
   WHY QUOREAL
========================================================== */

.strength {
    padding:
        108px
        0
        120px;
}

.strength .section-header {
    margin-bottom: 52px;
}

.strength-track {
    gap: 18px;

    padding-top: 0;
}

.strength-line,
.strength-dot {
    display: none !important;
}

.strength-card {
    min-height: 430px;

    padding:
        31px
        30px
        34px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.94),
            rgba(252, 247, 237, 0.82)
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.25);

    overflow: hidden;
    isolation: isolate;
}

.strength-card::before {
    content: "";

    position: absolute;
    top: -72px;
    right: -68px;
    z-index: -1;

    width: 220px;
    height: 220px;

    border:
        1px solid
        rgba(201, 164, 92, 0.16);

    border-radius: 50%;

    box-shadow:
        inset
        0
        0
        60px
        rgba(201, 164, 92, 0.06);

    transition:
        transform 0.75s var(--ease),
        border-color 0.4s ease;
}

.strength-card::after {
    content: "";

    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 27px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(201, 164, 92, 0.56),
            transparent
        );

    transform: scaleX(0.24);
    transform-origin: left;

    transition:
        transform 0.65s var(--ease);
}

.strength-card:hover::before {
    border-color:
        rgba(201, 164, 92, 0.36);

    transform:
        scale(1.12)
        rotate(10deg);
}

.strength-card:hover::after {
    transform: scaleX(1);
}

.strength-card-featured {
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f6ecd7 100%
        );

    transform: translateY(-10px);
}

.strength-card-featured:hover {
    transform: translateY(-17px);
}

.strength-card-top {
    position: relative;
    z-index: 2;

    min-height: 142px;
    margin-bottom: 20px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.strength-number {
    margin: 0;

    color:
        rgba(
            169,
            128,
            57,
            0.29
        );

    font-size:
        clamp(
            58px,
            5vw,
            78px
        );

    line-height: 0.88;
}

.strength-emblem {
    position: relative;

    width: 118px;
    height: 118px;
    flex: 0 0 118px;

    transition:
        transform 0.7s var(--ease);
}

.strength-card:hover .strength-emblem {
    transform:
        rotate(8deg)
        scale(1.05);
}

.strength-emblem span {
    position: absolute;

    border:
        1px solid
        rgba(201, 164, 92, 0.47);
}

.strength-emblem-01 span:nth-child(1) {
    inset: 5px;

    border-radius:
        50% 50% 46% 54% /
        48% 55% 45% 52%;
}

.strength-emblem-01 span:nth-child(2) {
    inset: 25px;

    border-radius: 50%;
}

.strength-emblem-01 span:nth-child(3) {
    top: 51%;
    left: 0;

    width: 100%;
    height: 1px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    transform: rotate(-26deg);
}

.strength-emblem-02 span:nth-child(1) {
    inset: 8px;

    border-radius: 22px;

    transform: rotate(45deg);
}

.strength-emblem-02 span:nth-child(2) {
    inset: 29px;

    border-radius: 16px;

    transform: rotate(45deg);
}

.strength-emblem-02 span:nth-child(3) {
    top: 50%;
    left: 50%;

    width: 20px;
    height: 20px;

    background:
        radial-gradient(
            circle,
            rgba(201, 164, 92, 0.42),
            rgba(201, 164, 92, 0.06)
        );

    border-radius: 50%;

    transform:
        translate(
            -50%,
            -50%
        );
}

.strength-emblem-03 span:nth-child(1) {
    top: 8px;
    left: 8px;

    width: 78px;
    height: 78px;

    border-radius: 50%;
}

.strength-emblem-03 span:nth-child(2) {
    right: 7px;
    bottom: 7px;

    width: 78px;
    height: 78px;

    border-radius: 50%;
}

.strength-emblem-03 span:nth-child(3) {
    top: 50%;
    left: 50%;

    width: 86px;
    height: 1px;

    border: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(-45deg);
}

.strength-kicker {
    position: relative;
    z-index: 2;

    margin-bottom: 10px;
}

.strength-card h3 {
    position: relative;
    z-index: 2;

    margin-bottom: 16px;

    font-size:
        clamp(
            22px,
            2vw,
            28px
        );
}

.strength-card > p:last-child {
    position: relative;
    z-index: 2;

    max-width: 390px;

    font-size: 12px;
    line-height: 2;
}


/* ==========================================================
   CASE
========================================================== */

.case-switcher {
    grid-template-columns:
        minmax(330px, 0.43fr)
        minmax(0, 1fr);

    gap: 24px;
}

.case-tabs {
    gap: 13px;
}

.case-tab {
    min-height: 158px;

    padding:
        24px
        19px
        22px
        23px;

    grid-template-columns:
        62px
        minmax(0, 1fr)
        96px;

    grid-template-rows: 1fr;

    align-items: center;

    gap: 12px;

    border-radius: 23px;
}

.case-tab::after {
    content: "";

    position: absolute;
    left: 0;
    top: 17px;
    bottom: 17px;

    width: 3px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--gold),
            transparent
        );

    opacity: 0;

    transform: scaleY(0.25);

    transition:
        opacity 0.35s ease,
        transform 0.5s var(--ease);
}

.case-tab:hover::after,
.case-tab.is-active::after {
    opacity: 1;

    transform: scaleY(1);
}

.case-tab-number {
    position: relative;
    z-index: 2;

    grid-row: auto;

    color:
        rgba(
            169,
            128,
            57,
            0.38
        );

    font-size:
        clamp(
            34px,
            3.2vw,
            46px
        );

    line-height: 1;
}

.case-tab-copy {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 7px;
}

.case-tab-copy strong {
    font-size: 9px;
}

.case-tab-copy small {
    color: var(--ink-soft);

    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.65;
}

.case-tab-graphic {
    position: relative;
    z-index: 2;

    width: 88px;
    height: 88px;

    display: block;
}

.case-tab-graphic i,
.case-tab-graphic b {
    position: absolute;

    display: block;
}

.case-tab-graphic i {
    width: 13px;
    height: 13px;

    background: #ffffff;

    border:
        1px solid
        rgba(201, 164, 92, 0.65);

    border-radius: 50%;

    box-shadow:
        0
        0
        0
        5px
        rgba(201, 164, 92, 0.07);
}

.case-tab-graphic i:nth-child(1) {
    top: 8px;
    left: 9px;
}

.case-tab-graphic i:nth-child(2) {
    top: 34px;
    right: 7px;
}

.case-tab-graphic i:nth-child(3) {
    left: 22px;
    bottom: 6px;
}

.case-tab-graphic b {
    top: 19px;
    left: 20px;

    width: 56px;
    height: 48px;

    border-top:
        1px solid
        rgba(201, 164, 92, 0.45);

    border-right:
        1px solid
        rgba(201, 164, 92, 0.45);

    border-bottom:
        1px solid
        rgba(201, 164, 92, 0.45);

    border-radius:
        0
        50%
        50%
        0;

    transform: rotate(17deg);
    transform-origin: center;
}

.case-tab-graphic-02 b {
    border-radius: 50%;

    transform: rotate(-15deg);
}

.case-tab-graphic-03 b {
    border-radius:
        50%
        0
        50%
        0;

    transform: rotate(32deg);
}

.case-tab.is-active .case-tab-graphic,
.case-tab:hover .case-tab-graphic {
    animation:
        caseGraphicFloat
        2.6s
        ease-in-out
        infinite;
}

.case-tab.is-active .case-tab-graphic b {
    animation:
        caseGraphicRotate
        8s
        linear
        infinite;
}

.case-tab.is-active .case-tab-graphic i {
    animation:
        caseNodePulse
        2.3s
        ease-in-out
        infinite;
}

.case-tab.is-active
.case-tab-graphic i:nth-child(2) {
    animation-delay: 0.3s;
}

.case-tab.is-active
.case-tab-graphic i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes caseGraphicFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

}

@keyframes caseGraphicRotate {

    from {
        transform: rotate(17deg);
    }

    to {
        transform: rotate(377deg);
    }

}

@keyframes caseNodePulse {

    0%,
    100% {
        box-shadow:
            0
            0
            0
            5px
            rgba(201, 164, 92, 0.06);
    }

    50% {
        box-shadow:
            0
            0
            0
            10px
            rgba(201, 164, 92, 0.13);
    }

}

.case-stage {
    min-height: 506px;

    padding:
        40px
        42px;
}

.case-panel-head h3 {
    font-size:
        clamp(
            31px,
            3vw,
            47px
        );
}

.case-journey {
    margin-top: 42px;
}

.case-journey > div {
    min-height: 188px;

    padding:
        25px
        23px
        17px;
}


/* ==========================================================
   FLOW
========================================================== */

.flow {
    padding:
        94px
        0
        104px;
}

.flow .section-header {
    margin-bottom: 19px;
}

.flow .section-description {
    margin-top: 13px;
}

.flow-scroll {
    padding:
        0
        2px
        24px;
}

.flow-track {
    padding-top: 46px;
}

.flow-progress-line {
    top: 77px;
}

.flow-step {
    min-height: 292px;

    padding:
        70px
        24px
        25px;
}

.flow-node {
    width: 62px;
    height: 62px;
}

.flow-step h3 {
    font-size: 20px;
}

.flow-step p {
    font-size: 11px;
}


/* ==========================================================
   COMPANY CLICK SWITCHER
========================================================== */

.company {
    padding:
        112px
        0
        124px;
}

.company-console {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(275px, 0.34fr)
        minmax(0, 1fr);

    gap: 24px;

    align-items: stretch;
}

.company-sidebar {
    position: relative;

    min-height: 690px;

    padding:
        43px
        30px
        32px;

    background:
        linear-gradient(
            150deg,
            rgba(255, 255, 255, 0.96),
            rgba(245, 235, 216, 0.91)
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.28);

    border-radius: 30px;

    box-shadow:
        0
        28px
        78px
        rgba(48, 37, 20, 0.09);

    overflow: hidden;
}

.company-sidebar::before {
    content: "";

    position: absolute;
    top: -130px;
    right: -130px;

    width: 300px;
    height: 300px;

    border:
        1px solid
        rgba(201, 164, 92, 0.17);

    border-radius: 50%;

    box-shadow:
        inset
        0
        0
        65px
        rgba(201, 164, 92, 0.05);

    pointer-events: none;
}

.company-sidebar::after {
    content: "Q";

    position: absolute;
    right: 22px;
    bottom: -25px;

    color:
        rgba(
            169,
            128,
            57,
            0.07
        );

    font-family: var(--font-display);
    font-size: 180px;
    font-weight: 700;
    line-height: 1;

    pointer-events: none;
}

.company-sidebar .section-label,
.company-sidebar h2,
.company-lead,
.company-sidebar .company-tabs {
    position: relative;
    z-index: 2;
}

.company-sidebar h2 {
    color: var(--ink);

    font-family: var(--font-display);
    font-size:
        clamp(
            42px,
            4vw,
            60px
        );

    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.055em;
}

.company-lead {
    margin-top: 19px;

    color: var(--gray);

    font-size: 12px;
    line-height: 2;
}

.company-sidebar .company-tabs {
    position: static;

    margin-top: 39px;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 8px;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    overflow: visible;
}

.company-sidebar .company-tab {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 72px;

    padding:
        12px
        14px;

    display: grid;

    grid-template-columns:
        30px
        minmax(0, 1fr)
        auto;

    align-items: center;
    justify-content: initial;
    gap: 10px;

    text-align: left;

    color: var(--gray);

    background:
        rgba(
            255,
            255,
            255,
            0.48
        );

    border:
        1px solid
        rgba(31, 28, 23, 0.08);

    border-radius: 16px;

    box-shadow: none;

    transform: none;

    scroll-snap-align: none;
}

.company-sidebar .company-tab::before {
    content: "";

    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;

    width: 3px;

    background: var(--gold);

    border-radius:
        0
        999px
        999px
        0;

    opacity: 0;

    transform: scaleY(0.3);

    transition:
        opacity 0.35s ease,
        transform 0.45s var(--ease);
}

.company-sidebar .company-tab::after {
    display: none;
}

.company-sidebar .company-tab span {
    color: var(--gold-deep);

    font-size: 9px;
    letter-spacing: 0.08em;
}

.company-sidebar .company-tab strong {
    color: var(--ink-soft);

    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.company-sidebar .company-tab small {
    color: var(--gray-light);

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.company-sidebar .company-tab:hover,
.company-sidebar .company-tab.is-active {
    color: var(--ink);

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    border-color:
        rgba(201, 164, 92, 0.38);

    box-shadow:
        0
        14px
        38px
        rgba(48, 37, 20, 0.08);

    transform: translateX(5px);
}

.company-sidebar
.company-tab.is-active::before {
    opacity: 1;

    transform: scaleY(1);
}

.company-display {
    position: relative;

    min-width: 0;
    min-height: 690px;
}

.company-display .company-panel {
    width: 100%;
    min-height: 690px;

    margin: 0;

    padding:
        45px
        45px
        50px;

    border-radius: 30px;

    scroll-margin-top: 0;
}

.company-display
.company-panel + .company-panel {
    margin-top: 0;
}

.company-display
.company-panel[hidden] {
    display: none !important;
}

.company-display
.company-panel.is-active {
    display: block;
}

.company-display
.company-panel-index {
    margin-bottom: 31px;
}

.company-display .message-layout {
    grid-template-columns:
        minmax(270px, 0.76fr)
        minmax(340px, 1.24fr);

    gap:
        clamp(
            38px,
            5vw,
            72px
        );
}

.company-display .message-art {
    min-height: 455px;

    padding: 30px;

    border-radius: 25px;
}

.company-display .message-art img {
    width: 105px;
}

.company-display .message-copy h3,
.company-display .philosophy-statement h3,
.company-display .overview-title h3,
.company-display .history-title h3 {
    font-size:
        clamp(
            34px,
            3.2vw,
            49px
        );
}

.company-display .message-copy > p {
    font-size: 12px;
    line-height: 2;
}

.company-display .philosophy-layout,
.company-display .overview-layout,
.company-display .history-layout {
    grid-template-columns:
        minmax(220px, 0.66fr)
        minmax(0, 1.34fr);

    gap:
        clamp(
            38px,
            5vw,
            72px
        );
}


/* ==========================================================
   CONTACT
========================================================== */

.contact {
    min-height:
        min(
            760px,
            100svh
        );

    padding:
        126px
        0
        134px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fcf8ef 46%,
            #f1dfbb 100%
        );

    isolation: isolate;
}

.contact::before {
    opacity: 0.14;

    background-size: 68px 68px;

    animation:
        contactGridMove
        18s
        linear
        infinite;
}

.contact-grid-motion {
    position: absolute;
    inset: -20%;
    z-index: -2;

    opacity: 0.45;

    background:
        linear-gradient(
            115deg,
            transparent 30%,
            rgba(255, 255, 255, 0.56) 44%,
            rgba(201, 164, 92, 0.13) 50%,
            rgba(255, 255, 255, 0.4) 56%,
            transparent 70%
        );

    transform:
        translateX(-36%)
        rotate(-4deg);

    animation:
        contactLightSweep
        10s
        var(--ease)
        infinite;
}

.contact-ribbon {
    position: absolute;
    z-index: -1;

    width: 760px;
    height: 230px;

    border:
        1px solid
        rgba(201, 164, 92, 0.16);

    border-radius: 50%;

    filter: blur(0.2px);

    pointer-events: none;
}

.contact-ribbon-01 {
    top: 7%;
    left: -290px;

    transform: rotate(19deg);

    animation:
        contactRibbonOne
        13s
        ease-in-out
        infinite
        alternate;
}

.contact-ribbon-02 {
    right: -310px;
    bottom: 3%;

    transform: rotate(-19deg);

    animation:
        contactRibbonTwo
        15s
        ease-in-out
        infinite
        alternate;
}

.contact-particles {
    position: absolute;
    inset: 0;
    z-index: -1;

    pointer-events: none;
}

.contact-particles span {
    position: absolute;

    width: 5px;
    height: 5px;

    background:
        rgba(
            185,
            140,
            66,
            0.48
        );

    border-radius: 50%;

    box-shadow:
        0
        0
        18px
        rgba(201, 164, 92, 0.4);

    animation:
        contactParticle
        6s
        ease-in-out
        infinite;
}

.contact-particles span:nth-child(1) {
    top: 22%;
    left: 13%;
}

.contact-particles span:nth-child(2) {
    top: 68%;
    left: 22%;

    width: 3px;
    height: 3px;

    animation-delay: 1.1s;
}

.contact-particles span:nth-child(3) {
    top: 17%;
    right: 21%;

    width: 4px;
    height: 4px;

    animation-delay: 2.2s;
}

.contact-particles span:nth-child(4) {
    right: 11%;
    bottom: 25%;

    animation-delay: 0.6s;
}

.contact-particles span:nth-child(5) {
    left: 50%;
    bottom: 11%;

    width: 3px;
    height: 3px;

    animation-delay: 2.9s;
}

.contact-box {
    max-width: 940px;
}

.contact-label {
    opacity: 0;
}

.contact-box h2 {
    margin-top: 2px;

    font-size:
        clamp(
            54px,
            6vw,
            88px
        );

    line-height: 1.19;

    overflow: hidden;
}

.contact-title-line {
    display: block;

    opacity: 0;

    transform: translateY(105%);

    will-change:
        transform,
        opacity;
}

.contact-title-gold {
    color: var(--gold-deep);

    text-shadow:
        0
        10px
        34px
        rgba(201, 164, 92, 0.16);
}

.contact-copy {
    opacity: 0;

    transform: translateY(22px);
}

.contact-actions {
    opacity: 0;

    transform: translateY(24px);
}

.contact.contact-animated .contact-label,
.contact.contact-animated .contact-copy,
.contact.contact-animated .contact-actions {
    opacity: 1;

    transform: translateY(0);
}

.contact.contact-animated .contact-title-line {
    opacity: 1;

    transform: translateY(0);
}

.contact-label {
    transition:
        opacity 0.65s ease;
}

.contact-title-line {
    transition:
        opacity 0.6s ease,
        transform 1s var(--ease);
}

.contact-title-line:nth-child(2) {
    transition-delay: 0.13s;
}

.contact-copy {
    transition:
        opacity 0.75s ease 0.32s,
        transform 0.85s var(--ease) 0.32s;
}

.contact-actions {
    transition:
        opacity 0.75s ease 0.46s,
        transform 0.85s var(--ease) 0.46s;
}

@keyframes contactGridMove {

    from {
        background-position:
            0
            0;
    }

    to {
        background-position:
            68px
            68px;
    }

}

@keyframes contactLightSweep {

    0% {
        opacity: 0.15;

        transform:
            translateX(-46%)
            rotate(-4deg);
    }

    45% {
        opacity: 0.52;
    }

    100% {
        opacity: 0.16;

        transform:
            translateX(46%)
            rotate(-4deg);
    }

}

@keyframes contactRibbonOne {

    from {
        transform:
            translate3d(
                -24px,
                0,
                0
            )
            rotate(16deg);
    }

    to {
        transform:
            translate3d(
                58px,
                22px,
                0
            )
            rotate(23deg);
    }

}

@keyframes contactRibbonTwo {

    from {
        transform:
            translate3d(
                24px,
                0,
                0
            )
            rotate(-22deg);
    }

    to {
        transform:
            translate3d(
                -54px,
                -20px,
                0
            )
            rotate(-15deg);
    }

}

@keyframes contactParticle {

    0%,
    100% {
        opacity: 0.2;

        transform:
            translateY(0)
            scale(0.8);
    }

    50% {
        opacity: 0.9;

        transform:
            translateY(-22px)
            scale(1.2);
    }

}


/* ==========================================================
   RESPONSIVE 1260
========================================================== */

@media (max-width: 1260px) {

    .service .container {
        width:
            min(
                1240px,
                calc(100% - 54px)
            );
    }

    .service-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .service {
        min-height: auto;
    }

    .service-card {
        min-height: 330px;
    }

    .service-card > p {
        min-height: 78px;
    }

    .case-switcher {
        grid-template-columns:
            minmax(292px, 0.4fr)
            minmax(0, 1fr);
    }

    .case-tab {
        grid-template-columns:
            54px
            minmax(0, 1fr)
            76px;
    }

    .case-tab-graphic {
        width: 72px;
        height: 72px;
    }

    .case-tab-graphic b {
        width: 45px;
        height: 38px;
    }

    .company-console {
        grid-template-columns:
            260px
            minmax(0, 1fr);
    }

    .company-sidebar,
    .company-display,
    .company-display .company-panel {
        min-height: 650px;
    }

    .company-display .message-layout {
        grid-template-columns:
            280px
            minmax(0, 1fr);

        gap: 36px;
    }

}


/* ==========================================================
   RESPONSIVE 1040
========================================================== */

@media (max-width: 1040px) {

    .strength-track {
        grid-template-columns: 1fr;
    }

    .strength-card,
    .strength-card-featured {
        min-height: 320px;

        transform: none;
    }

    .strength-card-featured:hover,
    .strength-card:hover {
        transform: translateY(-7px);
    }

    .strength-card-top {
        min-height: 100px;
    }

    .case-switcher {
        grid-template-columns: 1fr;
    }

    .case-tabs {
        display: grid;

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .case-tab {
        min-height: 175px;

        grid-template-columns:
            1fr
            72px;

        grid-template-rows:
            auto
            auto;

        align-items: start;
    }

    .case-tab-number {
        grid-column: 1;
        grid-row: 1;
    }

    .case-tab-copy {
        grid-column: 1;
        grid-row: 2;
    }

    .case-tab-graphic {
        grid-column: 2;
        grid-row: 1 / 3;

        align-self: center;
    }

    .company-console {
        grid-template-columns: 1fr;
    }

    .company-sidebar {
        min-height: auto;

        padding: 35px 30px;
    }

    .company-sidebar::after {
        font-size: 130px;
    }

    .company-sidebar .company-tabs {
        margin-top: 29px;

        display: grid;

        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }

    .company-sidebar .company-tab {
        min-height: 84px;

        grid-template-columns: 24px 1fr;

        grid-template-rows:
            auto
            auto;
    }

    .company-sidebar .company-tab span {
        grid-row: 1 / 3;
    }

    .company-sidebar .company-tab small {
        grid-column: 2;
    }

    .company-display,
    .company-display .company-panel {
        min-height: 620px;
    }

}


/* ==========================================================
   RESPONSIVE 820
========================================================== */

@media (max-width: 820px) {

    #opening .opening-logo {
        width:
            clamp(
                190px,
                52vw,
                270px
            );
    }

    #opening .opening-scroll {
        bottom: 28px;
    }

    .service {
        padding:
            90px
            0
            98px;
    }

    .service .container {
        width:
            calc(100% - 30px);
    }

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

    .service-card {
        min-height: auto;

        padding:
            27px
            23px
            29px;
    }

    .service-top {
        min-height: 72px;
        margin-bottom: 20px;
    }

    .service-card h3 {
        min-height: auto;
    }

    .service-card > p {
        min-height: auto;
    }

    .strength {
        padding:
            92px
            0
            100px;
    }

    .strength-card {
        padding:
            26px
            24px
            32px;
    }

    .strength-card-top {
        min-height: 92px;
    }

    .strength-emblem {
        width: 90px;
        height: 90px;
        flex-basis: 90px;
    }

    .case-tabs {
        display: flex;

        overflow-x: auto;

        padding-bottom: 9px;

        scroll-snap-type: x mandatory;
    }

    .case-tab {
        min-width: 278px;

        scroll-snap-align: start;
    }

    .case-stage {
        padding:
            34px
            24px;
    }

    .flow {
        padding:
            86px
            0
            94px;
    }

    .flow .section-header {
        margin-bottom: 12px;
    }

    .company {
        padding:
            92px
            0
            100px;
    }

    .company-sidebar {
        padding:
            31px
            23px;
    }

    .company-sidebar .company-tabs {
        display: flex;
        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 7px;

        scroll-snap-type: x mandatory;
    }

    .company-sidebar .company-tab {
        min-width: 205px;

        scroll-snap-align: start;
    }

    .company-sidebar
    .company-tab:hover,
    .company-sidebar
    .company-tab.is-active {
        transform: translateY(-3px);
    }

    .company-display,
    .company-display .company-panel {
        min-height: auto;
    }

    .company-display .company-panel {
        padding:
            35px
            24px
            42px;
    }

    .company-display .message-layout,
    .company-display .philosophy-layout,
    .company-display .overview-layout,
    .company-display .history-layout {
        grid-template-columns: 1fr;
    }

    .company-display .message-art {
        width: 100%;
        min-height: 390px;
    }

    .contact {
        min-height: 700px;

        padding:
            104px
            0
            112px;
    }

    .contact-box {
        text-align: left;
    }

    .contact-box h2 {
        font-size:
            clamp(
                43px,
                11vw,
                59px
            );
    }

    .contact-ribbon {
        width: 520px;
        height: 180px;
    }

}


/* ==========================================================
   RESPONSIVE 520
========================================================== */

@media (max-width: 520px) {

    .opening-spacer {
        height: 100svh;
    }

    #opening .opening-scroll > span {
        font-size: 8px;
    }

    #opening .scroll-line {
        height: 45px;
    }

    .strength-number {
        font-size: 50px;
    }

    .strength-emblem {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
    }

    .case-tab {
        min-width: 260px;

        grid-template-columns:
            1fr
            65px;
    }

    .case-tab-graphic {
        width: 62px;
        height: 62px;
    }

    .company-sidebar h2 {
        font-size: 42px;
    }

    .company-sidebar .company-tab {
        min-width: 190px;
    }

    .company-display
    .message-copy h3,
    .company-display
    .philosophy-statement h3,
    .company-display
    .overview-title h3,
    .company-display
    .history-title h3 {
        font-size: 30px;
    }

    .contact {
        min-height: 650px;
    }

    .contact-box h2 {
        font-size:
            clamp(
                38px,
                10.5vw,
                48px
            );
    }

}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    #opening,
    #opening .opening-logo,
    #opening .opening-scroll,
    .hero {
        transition: none !important;
    }

    .case-tab-graphic,
    .case-tab-graphic i,
    .case-tab-graphic b,
    .contact::before,
    .contact-grid-motion,
    .contact-ribbon,
    .contact-particles span {
        animation: none !important;
    }

    .contact-label,
    .contact-title-line,
    .contact-copy,
    .contact-actions {
        opacity: 1 !important;

        transform: none !important;

        transition: none !important;
    }

}

/* ==========================================================
   COMPANY V2
   大見出し＋左メニュー＋右大判ビジュアル
========================================================== */

.company-v2 {
    min-height: 100svh;

    padding:
        88px
        0
        124px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbf7ef 58%,
            #f2e6cf 100%
        );

    overflow: hidden;
}

.company-v2::before {
    content: "";

    position: absolute;
    top: -460px;
    right: -360px;

    width: 900px;
    height: 900px;

    border:
        1px solid
        rgba(201, 164, 92, 0.13);

    border-radius: 50%;

    pointer-events: none;
}

.company-v2::after {
    content: "";

    position: absolute;
    left: -320px;
    bottom: -500px;

    width: 860px;
    height: 860px;

    background:
        radial-gradient(
            circle,
            rgba(201, 164, 92, 0.13),
            transparent 68%
        );

    border-radius: 50%;

    pointer-events: none;
}

.company-v2 .container {
    position: relative;
    z-index: 2;

    width:
        min(
            1480px,
            calc(100% - 96px)
        );
}

.company-v2-header {
    margin-bottom: 56px;
}

.company-v2-header h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-v2-title-en {
    color: var(--ink);

    font-family: var(--font-display);

    font-size:
        clamp(
            88px,
            9.2vw,
            148px
        );

    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.075em;
}

.company-v2-title-ja {
    margin-top: 28px;

    color: var(--ink);

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

.company-v2-layout {
    display: grid;

    grid-template-columns:
        minmax(250px, 0.28fr)
        minmax(0, 1fr);

    gap:
        clamp(
            54px,
            7vw,
            112px
        );

    align-items: start;
}

/* 左メニュー */

.company-v2 .company-v2-nav {
    position: sticky;
    top: 116px;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.company-v2 .company-tab {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 98px;

    padding:
        22px
        42px
        22px
        0;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr);

    grid-template-rows:
        auto
        auto;

    align-items: center;
    justify-content: initial;

    gap:
        5px
        15px;

    color: var(--gray);
    background: transparent;

    border: 0;
    border-bottom:
        1px solid
        rgba(31, 27, 20, 0.13);

    border-radius: 0;

    text-align: left;

    box-shadow: none;

    transform: none;
}

.company-v2 .company-tab::before {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--gold-deep),
            var(--gold-light)
        );

    transition:
        width 0.55s var(--ease);
}

.company-v2 .company-tab::after {
    display: none;
}

.company-v2 .company-tab-number {
    grid-row: 1 / 3;

    color:
        rgba(
            169,
            128,
            57,
            0.55
        );

    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
}

.company-v2 .company-tab strong {
    color: var(--ink-soft);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.company-v2 .company-tab small {
    color: var(--gray-light);

    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
}

.company-v2 .company-tab i {
    position: absolute;
    top: 50%;
    right: 5px;

    color: var(--gold-deep);

    font-size: 15px;
    font-style: normal;

    opacity: 0;

    transform:
        translate(
            -10px,
            -50%
        );

    transition:
        opacity 0.35s ease,
        transform 0.45s var(--ease);
}

.company-v2 .company-tab:hover,
.company-v2 .company-tab.is-active {
    color: var(--ink);
    background: transparent;

    border-color:
        rgba(201, 164, 92, 0.34);

    box-shadow: none;

    transform: none;
}

.company-v2 .company-tab:hover::before,
.company-v2 .company-tab.is-active::before {
    width: 100%;
}

.company-v2 .company-tab:hover i,
.company-v2 .company-tab.is-active i {
    opacity: 1;

    transform:
        translate(
            0,
            -50%
        );
}

/* 右側ステージ */

.company-v2-stage {
    position: relative;

    min-width: 0;
    min-height: 720px;
}

.company-v2 .company-panel {
    width: 100%;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    overflow: visible;

    scroll-margin-top: 0;
}

.company-v2 .company-panel::before {
    display: none;
}

.company-v2
.company-panel + .company-panel {
    margin-top: 0;
}

.company-v2
.company-panel[hidden] {
    display: none !important;
}

.company-v2-visual {
    position: relative;

    width: 100%;
    height:
        clamp(
            430px,
            36vw,
            590px
        );

    margin: 0;

    background: var(--ivory-soft);

    border:
        1px solid
        rgba(201, 164, 92, 0.24);

    border-radius: 30px;

    box-shadow:
        0
        38px
        100px
        rgba(48, 37, 20, 0.14);

    overflow: hidden;
}

.company-v2-visual img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.025);

    transition:
        transform 1.4s var(--ease);
}

.company-v2-panel.is-active
.company-v2-visual img {
    transform: scale(1);
}

.company-v2-image-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 44%,
            rgba(16, 15, 12, 0.46) 100%
        );

    pointer-events: none;
}

.company-v2-visual-index {
    position: absolute;
    left: 34px;
    bottom: 30px;

    display: flex;
    align-items: baseline;
    gap: 17px;

    color: var(--white);
}

.company-v2-visual-index span {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.company-v2-visual-index small {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* 下部テキスト */

.company-v2-content {
    padding:
        46px
        8px
        0;

    display: grid;

    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(0, 1.2fr);

    gap:
        clamp(
            46px,
            6vw,
            90px
        );
}

.company-v2-content-heading > span {
    display: block;
    margin-bottom: 16px;

    color: var(--gold-deep);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.company-v2-content-heading h3 {
    color: var(--ink);

    font-family: var(--font-display);

    font-size:
        clamp(
            34px,
            3.3vw,
            52px
        );

    font-weight: 700;
    line-height: 1.43;
    letter-spacing: -0.05em;
}

.company-v2-content-body > p {
    color: var(--gray);

    font-size: 13px;
    line-height: 2.05;
}

.company-v2-content-body > p + p {
    margin-top: 13px;
}

.company-v2-signature {
    margin-top: 28px;
    padding-top: 22px;

    display: flex;
    align-items: flex-end;
    gap: 18px;

    border-top:
        1px solid
        var(--line);
}

.company-v2-signature span {
    color: var(--gray);

    font-size: 11px;
}

.company-v2-signature strong {
    color: var(--ink);

    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

/* 理念 */

.company-v2-values {
    border-top:
        1px solid
        var(--line);
}

.company-v2-values article {
    padding: 20px 0;

    display: grid;

    grid-template-columns:
        43px
        1fr;

    gap: 17px;

    border-bottom:
        1px solid
        var(--line);
}

.company-v2-values article > span {
    color: var(--gold-deep);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.company-v2-values strong {
    display: block;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.company-v2-values p {
    margin-top: 6px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.9;
}

/* 会社概要 */

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

.company-v2-table > div {
    display: grid;

    grid-template-columns:
        130px
        1fr;

    border-bottom:
        1px solid
        var(--line);
}

.company-v2-table dt,
.company-v2-table dd {
    padding: 20px 18px;
}

.company-v2-table dt {
    color: var(--ink);

    font-size: 11px;
    font-weight: 700;
}

.company-v2-table dd {
    color: var(--gray);

    border-left:
        1px solid
        var(--line);

    font-size: 12px;
    line-height: 1.9;
}

/* 沿革 */

.company-v2-history {
    position: relative;

    border-top:
        1px solid
        var(--line);
}

.company-v2-history article {
    position: relative;

    padding: 24px 0;

    display: grid;

    grid-template-columns:
        82px
        1fr;

    gap: 24px;

    border-bottom:
        1px solid
        var(--line);
}

.company-v2-history-year {
    color: var(--gold-deep);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.company-v2-history strong {
    display: block;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.company-v2-history p {
    margin-top: 7px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.9;
}

/* タブ切り替え時 */

.company-v2-panel.is-active
.company-v2-visual-index {
    animation:
        companyVisualIndex
        0.8s
        var(--ease)
        both;
}

@keyframes companyVisualIndex {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}

/* ==========================================================
   COMPANY V2 RESPONSIVE
========================================================== */

@media (max-width: 1080px) {

    .company-v2 {
        padding-top: 82px;
    }

    .company-v2-layout {
        grid-template-columns: 1fr;

        gap: 34px;
    }

    .company-v2 .company-v2-nav {
        position: static;

        display: flex;
        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 8px;

        scroll-snap-type: x mandatory;
    }

    .company-v2 .company-tab {
        min-width: 245px;

        scroll-snap-align: start;
    }

    .company-v2-stage {
        min-height: 0;
    }

}

@media (max-width: 820px) {

    .company-v2 {
        padding:
            78px
            0
            94px;
    }

    .company-v2 .container {
        width:
            calc(100% - 30px);
    }

    .company-v2-header {
        margin-bottom: 40px;
    }

    .company-v2-title-en {
        font-size:
            clamp(
                70px,
                20vw,
                105px
            );
    }

    .company-v2-title-ja {
        margin-top: 22px;
    }

    .company-v2-visual {
        height:
            min(
                75vw,
                430px
            );

        border-radius: 22px;
    }

    .company-v2-visual-index {
        left: 22px;
        bottom: 20px;
    }

    .company-v2-visual-index span {
        font-size: 37px;
    }

    .company-v2-content {
        padding-top: 34px;

        grid-template-columns: 1fr;

        gap: 27px;
    }

    .company-v2-content-heading h3 {
        font-size: 34px;
    }

}

@media (max-width: 520px) {

    .company-v2-title-en {
        font-size:
            clamp(
                62px,
                19vw,
                82px
            );
    }

    .company-v2 .company-tab {
        min-width: 220px;
        min-height: 88px;
    }

    .company-v2-visual {
        height: 320px;
    }

    .company-v2-table > div {
        grid-template-columns: 1fr;
    }

    .company-v2-table dd {
        padding-top: 0;

        border-left: 0;
    }

}
/* ==========================================================
   COMPANY V3
========================================================== */

.company-v3 {
    min-height: 100svh;

    padding:
        90px
        0
        126px;

    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #fbf8f1 57%,
            #f2e6d0 100%
        );

    overflow: hidden;
}

.company-v3 .container {
    position: relative;
    z-index: 2;

    width:
        min(
            1480px,
            calc(100% - 96px)
        );
}

/* ==========================================================
   LAYOUT
========================================================== */

.company-v3-layout {
    display: grid;

    grid-template-columns:
        minmax(255px, 0.27fr)
        minmax(0, 1fr);

    gap:
        clamp(
            50px,
            6vw,
            96px
        );

    align-items: start;
}

/* ==========================================================
   NAVIGATION
========================================================== */

.company-v3 .company-v3-nav {
    position: sticky;
    top: 112px;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.company-v3 .company-tab {
    position: relative;

    width: 100%;
    min-height: 104px;
    padding: 22px 42px 22px 0;

    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr);

    grid-template-rows:
        auto
        auto;

    gap: 5px 15px;

    align-items: center;

    text-align: left;

    color: var(--gray);
    background: transparent;

    border: 0;
    border-bottom:
        1px solid
        rgba(30, 27, 22, 0.13);

    border-radius: 0;

    box-shadow: none;

    transform: none;
}

.company-v3 .company-tab::before {
    content: "";

    position: absolute;
    left: 0;
    bottom: -1px;

    width: 0;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--gold-deep),
            var(--gold-light)
        );

    transition:
        width 0.55s var(--ease);
}

.company-v3 .company-tab::after {
    display: none;
}

.company-v3 .company-tab > span {
    grid-row: 1 / 3;

    color:
        rgba(
            169,
            128,
            57,
            0.7
        );

    font-size: 11px;
    font-weight: 700;
}

.company-v3 .company-tab strong {
    color: var(--ink-soft);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.company-v3 .company-tab small {
    color: var(--gray-light);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.company-v3 .company-tab i {
    position: absolute;
    top: 50%;
    right: 5px;

    color: var(--gold-deep);

    font-size: 14px;
    font-style: normal;

    opacity: 0;

    transform:
        translate(
            -9px,
            -50%
        );

    transition:
        opacity 0.35s ease,
        transform 0.45s var(--ease);
}

.company-v3 .company-tab:hover,
.company-v3 .company-tab.is-active {
    background: transparent;

    border-color:
        rgba(201, 164, 92, 0.35);

    box-shadow: none;

    transform: none;
}

.company-v3 .company-tab:hover::before,
.company-v3 .company-tab.is-active::before {
    width: 100%;
}

.company-v3 .company-tab:hover i,
.company-v3 .company-tab.is-active i {
    opacity: 1;

    transform:
        translate(
            0,
            -50%
        );
}

/* ==========================================================
   STAGE
========================================================== */

.company-v3-stage {
    min-width: 0;
    min-height: 620px;
}

.company-v3 .company-panel {
    width: 100%;
    min-height: 0;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    overflow: visible;
}

.company-v3 .company-panel::before {
    display: none;
}

.company-v3 .company-panel[hidden] {
    display: none !important;
}

.company-v3-panel-grid {
    display: grid;

    grid-template-columns:
        minmax(390px, 0.92fr)
        minmax(390px, 1.08fr);

    gap:
        clamp(
            48px,
            6vw,
            88px
        );

    align-items: center;
}

/* ==========================================================
   COPY
========================================================== */

.company-v3-copy {
    min-width: 0;
}

.company-v3-index {
    margin-bottom: 22px;

    color: var(--gold-deep);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.company-v3-copy > h3 {
    max-width: 650px;

    color: var(--ink);

    font-family: var(--font-display);

    font-size:
        clamp(
            37px,
            3.6vw,
            56px
        );

    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.05em;
}

.company-v3-message {
    max-width: 650px;
    margin-top: 30px;
}

.company-v3-message p {
    color: var(--gray);

    font-size: 13px;
    line-height: 2.05;
}

.company-v3-message p + p {
    margin-top: 13px;
}

.company-v3-signature {
    max-width: 650px;
    margin-top: 28px;
    padding-top: 22px;

    display: flex;
    align-items: flex-end;
    gap: 18px;

    border-top:
        1px solid
        var(--line);
}

.company-v3-signature span {
    color: var(--gray);

    font-size: 11px;
}

.company-v3-signature strong {
    color: var(--ink);

    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* ==========================================================
   REPRESENTATIVE PHOTO
========================================================== */

.company-v3-portrait {
    position: relative;

    width:
        min(
            100%,
            480px
        );

    min-height: 590px;
    margin-inline: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    isolation: isolate;
}

.company-v3-portrait figure {
    position: relative;
    z-index: 2;

    width: 78%;
    height: 490px;

    margin: 0;

    border-radius:
        48% 48% 28px 28px;

    box-shadow:
        0
        34px
        88px
        rgba(48, 37, 20, 0.17);

    overflow: hidden;
}

.company-v3-portrait figure::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            transparent 56%,
            rgba(30, 24, 15, 0.38) 100%
        );

    pointer-events: none;
}

.company-v3-portrait img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.company-v3-portrait-orbit {
    position: absolute;
    z-index: 1;

    border:
        1px solid
        rgba(201, 164, 92, 0.3);

    border-radius: 50%;
}

.company-v3-portrait-orbit-01 {
    width: 440px;
    height: 440px;

    animation:
        companyPortraitOrbit
        18s
        linear
        infinite;
}

.company-v3-portrait-orbit-02 {
    width: 350px;
    height: 520px;

    animation:
        companyPortraitOrbitReverse
        22s
        linear
        infinite;
}

.company-v3-portrait-label {
    position: absolute;
    right: 3%;
    bottom: 38px;
    z-index: 3;

    min-width: 210px;
    padding: 19px 23px;

    color: var(--ink);

    background:
        rgba(
            255,
            255,
            255,
            0.9
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.3);

    border-radius: 18px;

    box-shadow:
        0
        18px
        50px
        rgba(48, 37, 20, 0.12);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.company-v3-portrait-label span {
    display: block;
    margin-bottom: 6px;

    color: var(--gold-deep);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.company-v3-portrait-label strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

/* ==========================================================
   DIAGRAM COMMON
========================================================== */

.company-v3-diagram {
    position: relative;

    width:
        min(
            100%,
            510px
        );

    aspect-ratio: 1;

    margin-inline: auto;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(201, 164, 92, 0.15),
            transparent 57%
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.17);

    border-radius: 50%;

    box-shadow:
        inset
        0
        0
        90px
        rgba(201, 164, 92, 0.05),
        0
        30px
        90px
        rgba(48, 37, 20, 0.08);

    overflow: hidden;
}

.company-v3-diagram::before {
    content: "";

    position: absolute;
    inset: 8%;

    border:
        1px solid
        rgba(201, 164, 92, 0.13);

    border-radius: 50%;
}

.company-v3-diagram-svg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    transform: rotate(-28deg);
}

.company-v3-svg-ring,
.company-v3-svg-path,
.company-v3-history-path {
    fill: none;

    stroke:
        rgba(
            201,
            164,
            92,
            0.42
        );

    stroke-width: 1.2;

    stroke-dasharray: 12 11;

    transform-origin: center;
}

.company-v3-svg-ring-01 {
    animation:
        companyDiagramRotate
        26s
        linear
        infinite;
}

.company-v3-svg-ring-02 {
    animation:
        companyDiagramRotateReverse
        19s
        linear
        infinite;
}

.company-v3-svg-path {
    stroke-dasharray: 680;
    stroke-dashoffset: 680;

    animation:
        companyLineDraw
        4.6s
        var(--ease)
        infinite
        alternate;
}

/* ==========================================================
   PHILOSOPHY DIAGRAM
========================================================== */

.company-v3-core {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 176px;
    height: 176px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        rgba(
            255,
            255,
            255,
            0.91
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.38);

    border-radius: 50%;

    box-shadow:
        0
        20px
        58px
        rgba(48, 37, 20, 0.11);

    transform:
        translate(
            -50%,
            -50%
        );
}

.company-v3-core span {
    color: var(--gold-deep);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.company-v3-core strong {
    margin-top: 5px;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.company-v3-core small {
    margin-top: 6px;

    color: var(--gray-light);

    font-size: 6px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.company-v3-node {
    position: absolute;

    width: 122px;
    height: 122px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.3);

    border-radius: 50%;

    box-shadow:
        0
        16px
        46px
        rgba(48, 37, 20, 0.09);

    animation:
        companyNodeFloat
        3.6s
        ease-in-out
        infinite;
}

.company-v3-node span {
    margin-bottom: 5px;

    color: var(--gold-deep);

    font-size: 8px;
    font-weight: 700;
}

.company-v3-node strong {
    color: var(--ink);

    font-size: 12px;
    font-weight: 700;
}

.company-v3-node-01 {
    top: 6%;
    left: 50%;

    transform: translateX(-50%);
}

.company-v3-node-02 {
    right: 3%;
    bottom: 13%;

    animation-delay: 0.6s;
}

.company-v3-node-03 {
    left: 3%;
    bottom: 13%;

    animation-delay: 1.2s;
}

/* ==========================================================
   PRINCIPLES
========================================================== */

.company-v3-principles {
    margin-top: 29px;

    border-top:
        1px solid
        var(--line);
}

.company-v3-principles article {
    padding: 20px 0;

    display: grid;

    grid-template-columns:
        44px
        1fr;

    gap: 17px;

    border-bottom:
        1px solid
        var(--line);
}

.company-v3-principles article > span {
    color: var(--gold-deep);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.company-v3-principles strong {
    display: block;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.company-v3-principles p {
    margin-top: 6px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.9;
}

/* ==========================================================
   OVERVIEW DIAGRAM
========================================================== */

.company-v3-overview-core {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 190px;
    height: 190px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--ink);

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5ead7
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.4);

    border-radius: 42px;

    box-shadow:
        0
        25px
        65px
        rgba(48, 37, 20, 0.12);

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(45deg);
}

.company-v3-overview-core > * {
    transform: rotate(-45deg);
}

.company-v3-overview-core span {
    color: var(--gold-deep);

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.17em;
}

.company-v3-overview-core strong {
    margin-top: 5px;

    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
}

.company-v3-overview-core small {
    max-width: 105px;
    margin-top: 5px;

    color: var(--gray-light);

    font-size: 5px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.11em;
}

.company-v3-overview-item {
    position: absolute;

    width: 120px;
    min-height: 92px;
    padding: 17px 13px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.26);

    border-radius: 19px;

    box-shadow:
        0
        15px
        42px
        rgba(48, 37, 20, 0.08);

    animation:
        companyModuleFloat
        4s
        ease-in-out
        infinite;
}

.company-v3-overview-item span {
    color: var(--gold-deep);

    font-size: 7px;
    font-weight: 700;
}

.company-v3-overview-item strong {
    margin-top: 4px;

    color: var(--ink);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.company-v3-overview-item small {
    margin-top: 4px;

    color: var(--gray);

    font-size: 9px;
}

.company-v3-overview-item-01 {
    top: 7%;
    left: 50%;

    transform: translateX(-50%);
}

.company-v3-overview-item-02 {
    top: 50%;
    right: 4%;

    transform: translateY(-50%);

    animation-delay: 0.6s;
}

.company-v3-overview-item-03 {
    bottom: 7%;
    left: 50%;

    transform: translateX(-50%);

    animation-delay: 1.2s;
}

.company-v3-overview-item-04 {
    top: 50%;
    left: 4%;

    transform: translateY(-50%);

    animation-delay: 1.8s;
}

.company-v3-overview-line {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 28%;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            rgba(201, 164, 92, 0.14),
            rgba(201, 164, 92, 0.55)
        );

    transform-origin: left;
}

.company-v3-overview-line-01 {
    transform:
        rotate(-90deg);
}

.company-v3-overview-line-02 {
    transform:
        rotate(0);
}

.company-v3-overview-line-03 {
    transform:
        rotate(90deg);
}

.company-v3-overview-line-04 {
    transform:
        rotate(180deg);
}

/* ==========================================================
   COMPANY TABLE
========================================================== */

.company-v3-table {
    margin-top: 29px;

    border-top:
        1px solid
        var(--line);
}

.company-v3-table > div {
    display: grid;

    grid-template-columns:
        130px
        1fr;

    border-bottom:
        1px solid
        var(--line);
}

.company-v3-table dt,
.company-v3-table dd {
    padding: 20px 18px;
}

.company-v3-table dt {
    color: var(--ink);

    font-size: 11px;
    font-weight: 700;
}

.company-v3-table dd {
    color: var(--gray);

    border-left:
        1px solid
        var(--line);

    font-size: 12px;
    line-height: 1.9;
}

/* ==========================================================
   HISTORY DIAGRAM
========================================================== */

.company-v3-history-diagram p {
    position: absolute;
    top: 50%;
    left: 50%;

    color:
        rgba(
            169,
            128,
            57,
            0.08
        );

    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.02em;

    transform:
        translate(
            -50%,
            -50%
        );

    white-space: nowrap;
}

.company-v3-history-svg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;
}

.company-v3-history-path {
    stroke-width: 2;

    stroke-dasharray: 680;
    stroke-dashoffset: 680;

    animation:
        companyHistoryDraw
        4.8s
        var(--ease)
        infinite;
}

.company-v3-history-node {
    position: absolute;
    z-index: 2;

    width: 112px;
    height: 112px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: var(--ink);

    background:
        rgba(
            255,
            255,
            255,
            0.95
        );

    border:
        1px solid
        rgba(201, 164, 92, 0.4);

    border-radius: 50%;

    box-shadow:
        0
        16px
        44px
        rgba(48, 37, 20, 0.09);
}

.company-v3-history-node span {
    color: var(--gold-deep);

    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
}

.company-v3-history-node strong {
    margin-top: 3px;

    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.company-v3-history-node-01 {
    left: 7%;
    bottom: 5%;
}

.company-v3-history-node-02 {
    top: 2%;
    right: 4%;
}

.company-v3-history-light {
    position: absolute;
    top: 49%;
    left: 49%;

    width: 17px;
    height: 17px;

    background: var(--gold);

    border:
        4px solid
        var(--white);

    border-radius: 50%;

    box-shadow:
        0
        0
        0
        10px
        rgba(201, 164, 92, 0.11),
        0
        0
        35px
        rgba(201, 164, 92, 0.35);

    animation:
        companyHistoryPulse
        2.4s
        ease-in-out
        infinite;
}

.company-v3-history-list {
    margin-top: 29px;

    border-top:
        1px solid
        var(--line);
}

.company-v3-history-list article {
    padding: 23px 0;

    display: grid;

    grid-template-columns:
        76px
        1fr;

    gap: 22px;

    border-bottom:
        1px solid
        var(--line);
}

.company-v3-history-list article > span {
    color: var(--gold-deep);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.company-v3-history-list strong {
    color: var(--ink);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.company-v3-history-list p {
    margin-top: 7px;

    color: var(--gray);

    font-size: 12px;
    line-height: 1.9;
}

/* ==========================================================
   ANIMATIONS
========================================================== */

@keyframes companyPortraitOrbit {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes companyPortraitOrbitReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}

@keyframes companyDiagramRotate {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes companyDiagramRotateReverse {

    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }

}

@keyframes companyLineDraw {

    0% {
        stroke-dashoffset: 680;
    }

    100% {
        stroke-dashoffset: 0;
    }

}

@keyframes companyNodeFloat {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -7px;
    }

}

@keyframes companyModuleFloat {

    0%,
    100% {
        margin-top: 0;
    }

    50% {
        margin-top: -6px;
    }

}

@keyframes companyHistoryDraw {

    0% {
        stroke-dashoffset: 680;
    }

    45%,
    100% {
        stroke-dashoffset: 0;
    }

}

@keyframes companyHistoryPulse {

    0%,
    100% {
        transform: scale(0.9);
    }

    50% {
        transform: scale(1.15);
    }

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .company-v3-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-v3-layout {
        grid-template-columns: 1fr;

        gap: 36px;
    }

    .company-v3 .company-v3-nav {
        position: static;

        display: flex;
        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 8px;

        scroll-snap-type: x mandatory;
    }

    .company-v3 .company-tab {
        min-width: 245px;

        scroll-snap-align: start;
    }

}

@media (max-width: 820px) {

    .company-v3 {
        padding:
            78px
            0
            98px;
    }

    .company-v3 .container {
        width:
            calc(100% - 30px);
    }

    .company-v3-title-en {
        font-size:
            clamp(
                68px,
                20vw,
                102px
            );
    }

    .company-v3-header {
        margin-bottom: 42px;
    }

    .company-v3-panel-grid {
        grid-template-columns: 1fr;

        gap: 43px;
    }

    .company-v3-portrait {
        min-height: 510px;
    }

    .company-v3-portrait figure {
        width: 76%;
        height: 420px;
    }

    .company-v3-diagram {
        max-width: 480px;
    }

    .company-v3-copy > h3 {
        font-size: 35px;
    }

}

@media (max-width: 520px) {

    .company-v3-title-en {
        font-size:
            clamp(
                59px,
                19vw,
                78px
            );
    }

    .company-v3 .company-tab {
        min-width: 215px;
        min-height: 92px;
    }

    .company-v3-portrait {
        min-height: 440px;
    }

    .company-v3-portrait figure {
        width: 82%;
        height: 360px;
    }

    .company-v3-portrait-orbit-01 {
        width: 330px;
        height: 330px;
    }

    .company-v3-portrait-orbit-02 {
        width: 280px;
        height: 390px;
    }

    .company-v3-portrait-label {
        right: 0;
        bottom: 22px;

        min-width: 180px;
    }

    .company-v3-node {
        width: 92px;
        height: 92px;
    }

    .company-v3-node strong {
        font-size: 9px;
    }

    .company-v3-core {
        width: 132px;
        height: 132px;
    }

    .company-v3-overview-core {
        width: 145px;
        height: 145px;
    }

    .company-v3-overview-item {
        width: 92px;
        min-height: 75px;
    }

    .company-v3-history-node {
        width: 86px;
        height: 86px;
    }

    .company-v3-table > div {
        grid-template-columns: 1fr;
    }

    .company-v3-table dd {
        padding-top: 0;

        border-left: 0;
    }

}

@media (prefers-reduced-motion: reduce) {

    .company-v3-portrait-orbit,
    .company-v3-svg-ring,
    .company-v3-svg-path,
    .company-v3-node,
    .company-v3-overview-item,
    .company-v3-history-path,
    .company-v3-history-light {
        animation: none !important;
    }

}
/* ==========================================================
   OPENING FINAL REPAIR
   ドア演出は変更せず、ロゴ位置とヘッダーだけ修正
========================================================== */

/*
 * OP後の社名ロゴを画面中央へ戻す
 */

#opening .opening-logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    width:
        clamp(
            520px,
            42vw,
            720px
        ) !important;

    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;

    overflow: visible !important;

    transform:
        translate(
            -50%,
            -50%
        );

    transform-origin:
        center center !important;
}

/*
 * 過去に追加した画像の拡大・絶対配置を完全に解除
 */

#opening .opening-logo img {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: none !important;
    height: auto !important;

    margin: 0 !important;

    object-fit: contain !important;

    background: transparent !important;

    mix-blend-mode: normal !important;

    transform: none !important;
}

/*
 * ドア演出中はロゴを隠す
 */

#opening[data-state="playing"] .opening-logo {
    opacity: 0;
    visibility: hidden;
}

/*
 * 6秒後にロゴを表示
 * opacityはscript.jsによるスクロール演出を優先するため
 * !importantを付けない
 */

#opening.logo .opening-logo,
#opening[data-state="ready"] .opening-logo {
    opacity: 1;
    visibility: visible !important;
}

/*
 * SCROLLを中央下へ固定
 */

#opening .opening-scroll {
    position: absolute !important;
    left: 50% !important;
    bottom:
        clamp(
            34px,
            6vh,
            72px
        ) !important;

    margin: 0 !important;

    transform: translateX(-50%);

    transform-origin: center !important;
}

#opening.logo .opening-scroll,
#opening[data-state="ready"] .opening-scroll {
    display: flex !important;
    visibility: visible !important;
}

/*
 * ヘッダーをOP中から常に表示
 * 実際のIDである #site-header にも指定
 */

#site-header,
.header,
body.opening-active #site-header,
body.opening-active .header,
body.opening-ready #site-header,
body.opening-ready .header,
body.opening-finished #site-header,
body.opening-finished .header,
body.opening-transitioned #site-header,
body.opening-transitioned .header {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;

    z-index: 1000001 !important;

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    transform: translateY(0) !important;
}

/*
 * スマホのロゴサイズ
 */

@media (max-width: 820px) {

    #opening .opening-logo {
        width:
            min(
                88vw,
                570px
            ) !important;
    }

}
/* ==========================================================
   HEADER / OPENING POSITION
   FINAL SINGLE CONTROL

   今後の調整は、このブロックだけを使用
========================================================== */

:root {
    /* ヘッダー全体の縦幅 */
    --header-height: 80px;

    /* 左上ロゴ */
    --header-logo-width: 147px;
    --header-logo-x: -43px;
    --header-logo-y: 8px;

    /* 無料相談ボタン */
    --consult-button-width: 145px;
    --consult-button-height: 42px;
    --consult-button-x: 0px;
    --consult-button-y: 0px;

    /* 丸い矢印 */
    --consult-icon-size: 28px;

   :root {
    /* 矢印を囲む丸の大きさ */
    --consult-icon-size: 38px;

    /* ↗ 自体の大きさ */
    --consult-arrow-size: 16px;

    /* 丸ごとの位置 */
    --consult-icon-x: 0px;
    --consult-icon-y: 0px;
} 
}


/* ==========================================================
   HEADER HEIGHT
========================================================== */

#site-header.header {
    height: var(--header-height) !important;
    min-height: var(--header-height) !important;
    max-height: var(--header-height) !important;
}

#site-header.header > .header-inner,
#site-header.header.scrolled > .header-inner {
    width: 100% !important;

    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;

    padding: 0 24px !important;

    display: flex !important;
    align-items: center !important;

    box-sizing: border-box !important;
}


/* ==========================================================
   LEFT LOGO
========================================================== */

#site-header.header
> .header-inner
> a.logo {
    width: var(--header-logo-width) !important;
    min-width: var(--header-logo-width) !important;
    max-width: var(--header-logo-width) !important;

    height: 100% !important;

    flex:
        0
        0
        var(--header-logo-width) !important;

    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    transform:
        translate(
            var(--header-logo-x),
            var(--header-logo-y)
        ) !important;
}

#site-header.header
> .header-inner
> a.logo
> img,
#site-header.header.scrolled
> .header-inner
> a.logo
> img {
    display: block !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    object-fit: contain !important;

    transform: none !important;
}


/* ==========================================================
   NAVIGATION
========================================================== */

#site-header.header
> .header-inner
> .global-nav {
    margin-left: auto !important;
    margin-right: 24px !important;
}

#site-header.header .nav-list {
    gap: 42px !important;
}


/* ==========================================================
   CONSULTATION BUTTON
========================================================== */

#site-header.header
> .header-inner
> a.header-button {
    position: relative !important;

    width: var(--consult-button-width) !important;
    min-width: var(--consult-button-width) !important;
    max-width: var(--consult-button-width) !important;

    height: var(--consult-button-height) !important;
    min-height: var(--consult-button-height) !important;
    max-height: var(--consult-button-height) !important;

    flex:
        0
        0
        var(--consult-button-width) !important;

    align-self: center !important;

    margin: 0 !important;

    padding:
        0
        7px
        0
        15px !important;

    display: grid !important;

    grid-template-columns:
        minmax(0, 1fr)
        var(--consult-icon-size) !important;

    align-items: center !important;
    column-gap: 7px !important;

    color: #ffffff !important;

    background:
        linear-gradient(
            135deg,
            #c6a76a 0%,
            #ae8f54 100%
        ) !important;

    border: 0 !important;
    border-radius: 999px !important;

    opacity: 1 !important;
    visibility: visible !important;

    box-shadow:
        0
        14px
        34px
        rgba(198, 167, 106, 0.3) !important;

    box-sizing: border-box !important;

    transform:
        translate(
            var(--consult-button-x),
            var(--consult-button-y)
        ) !important;
}


/* 無料相談の文字 */

#site-header.header
> .header-inner
> a.header-button
> .header-button-text,
#site-header.header
> .header-inner
> a.header-button
> span:first-child {
    position: static !important;

    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    justify-self: center !important;
    align-self: center !important;

    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    transform: none !important;
}


/* 丸い矢印 */

#site-header.header
> .header-inner
> a.header-button
> .header-button-icon {
    position: static !important;

    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;

    width: var(--consult-icon-size) !important;
    min-width: var(--consult-icon-size) !important;
    max-width: var(--consult-icon-size) !important;

    height: var(--consult-icon-size) !important;
    min-height: var(--consult-icon-size) !important;
    max-height: var(--consult-icon-size) !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    justify-self: end !important;

    color: #ffffff !important;

    border:
        1px solid
        rgba(255, 255, 255, 0.78) !important;

    border-radius: 50% !important;

    font-size: 16px !important;
    line-height: 1 !important;

    box-sizing: border-box !important;

    transform: none !important;
}


/* ホバー */

#site-header.header
> .header-inner
> a.header-button:hover {
    background:
        linear-gradient(
            135deg,
            #c6a76a 0%,
            #ae8f54 100%
        ) !important;

    transform:
        translate(
            var(--consult-button-x),
            calc(var(--consult-button-y) - 2px)
        ) !important;
}


/* SERVICEメニューをヘッダー直下へ */

#site-header.header .mega-menu {
    top: var(--header-height) !important;
}


/* ==========================================================
   OPENING POSITION
   ドアの開き方・角度・速度は変更しない
========================================================== */

#opening .opening-logo {
    top: 45% !important;
    left: 50% !important;

    width:
        clamp(
            480px,
            38vw,
            650px
        ) !important;
}

#opening .door-scene {
    margin-top: 60px !important;
    margin-left: 0 !important;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1120px) {

    #company-overview .company-profile-v4 {
        grid-template-columns: 1fr;
    }

    .company-profile-v4-intro {
        min-height: 560px;
    }

}

@media (max-width: 720px) {

    #company-overview .company-profile-v4 {
        min-height: auto;
    }

    .company-profile-v4-intro {
        min-height: 520px;

        padding:
            39px
            27px;
    }

    .company-profile-v4-title {
        font-size: 52px;
    }

    .company-profile-v4-cards {
        grid-template-columns: 1fr;
    }

    .company-profile-card,
    .company-profile-card-wide,
    .company-profile-card-contact {
        grid-column: auto;
    }

    .company-profile-card-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-profile-card-contact
    .company-profile-card-value {
        padding-right: 0;
    }

}
/* ==========================================================
   COMPANY OVERVIEW CLEAN
   図・カード・罫線なし
========================================================== */

#company-overview.company-v3-panel {
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible;
}

.company-overview-clean {
    width: 100%;
    min-height: 620px;

    padding:
        clamp(
            58px,
            6vw,
            92px
        )
        clamp(
            34px,
            5vw,
            78px
        );

    display: grid;

    grid-template-columns:
        minmax(300px, 0.8fr)
        minmax(460px, 1.2fr);

    align-items: start;

    gap:
        clamp(
            70px,
            8vw,
            130px
        );
}


/* ==========================================================
   LEFT
========================================================== */

.company-overview-clean-head {
    position: sticky;
    top: 130px;
}

.company-overview-clean-en {
    display: block;

    margin-top: 42px;

    color: var(--gold-deep);

    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.26em;
}

.company-overview-clean-head h3 {
    margin-top: 15px;

    color: var(--ink);

    font-family: var(--font-display);

    font-size:
        clamp(
            58px,
            6vw,
            88px
        );

    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.07em;

    white-space: nowrap;
}

.company-overview-clean-lead {
    margin-top: 38px;

    color: var(--ink-soft);

    font-family: var(--font-display);

    font-size:
        clamp(
            23px,
            2.2vw,
            31px
        );

    font-weight: 700;
    line-height: 1.75;
    letter-spacing: -0.035em;
}

.company-overview-clean-description {
    max-width: 470px;

    margin-top: 27px;

    color: var(--gray);

    font-size: 14px;
    line-height: 2.15;
}


/* ==========================================================
   COMPANY INFORMATION
========================================================== */

.company-overview-clean-list {
    padding-top: 78px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        74px
        68px;
}

.company-overview-clean-item {
    position: relative;

    min-width: 0;

    padding-left: 22px;
}

.company-overview-clean-item::before {
    content: "";

    position: absolute;
    top: 8px;
    left: 0;

    width: 6px;
    height: 6px;

    background: var(--gold);

    border-radius: 50%;

    box-shadow:
        0
        0
        0
        7px
        rgba(201, 164, 92, 0.09);
}

.company-overview-clean-item dt {
    color: var(--ink);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}

.company-overview-clean-item dt span {
    display: block;

    margin-bottom: 10px;

    color: var(--gold-deep);

    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.22em;
}

.company-overview-clean-item dd {
    margin-top: 18px;

    color: var(--gray);

    font-size:
        clamp(
            17px,
            1.5vw,
            22px
        );

    font-weight: 500;
    line-height: 1.85;
}

.company-overview-clean-item-wide {
    grid-column:
        1 / -1;
}

.company-overview-clean-services {
    display: flex;
    flex-wrap: wrap;

    gap:
        14px
        30px;
}

.company-overview-clean-services span {
    position: relative;

    padding-left: 16px;

    color: var(--ink-soft);
}

.company-overview-clean-services span::before {
    content: "・";

    position: absolute;
    top: 0;
    left: 0;

    color: var(--gold-deep);
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .company-overview-clean {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .company-overview-clean-head {
        position: static;
    }

    .company-overview-clean-list {
        padding-top: 0;
    }

}

@media (max-width: 720px) {

    .company-overview-clean {
        min-height: auto;

        padding:
            48px
            4px;
    }

    .company-overview-clean-head h3 {
        font-size: 54px;

        white-space: normal;
    }

    .company-overview-clean-list {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .company-overview-clean-item-wide {
        grid-column: auto;
    }

    .company-overview-clean-services {
        flex-direction: column;

        gap: 9px;
    }

}
/* ==========================================================
   COMPANY V4
   参考レイアウト / 写真・図・カード・罫線なし
========================================================== */

.company-v4 {
    min-height: 100svh;

    padding:
        108px
        0
        136px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fbf8f1 58%,
            #f1e4cc 100%
        );

    overflow: hidden;
}

.company-v4 .container {
    position: relative;
    z-index: 2;

    width:
        min(
            1480px,
            calc(100% - 96px)
        );
}


/* ==========================================================
   HEADER
========================================================== */

.company-v4-header {
    margin-bottom: 80px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
}

.company-v4-header h2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-v4-title-en {
    color: var(--ink);

    font-family: var(--font-display);

    font-size:
        clamp(
            88px,
            9vw,
            146px
        );

    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.075em;
}

.company-v4-title-ja {
    margin-top: 28px;

    color: var(--ink);

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
}

.company-v4-header > p {
    max-width: 340px;
    margin-bottom: 2px;

    color: var(--gray);

    font-size: 14px;
    line-height: 2;
}


/* ==========================================================
   LAYOUT
========================================================== */

.company-v4-layout {
    display: grid;

    grid-template-columns:
        minmax(235px, 0.25fr)
        minmax(0, 1fr);

    gap:
        clamp(
            64px,
            8vw,
            132px
        );

    align-items: start;
}


/* ==========================================================
   LEFT NAVIGATION
========================================================== */

.company-v4 .company-v4-nav {
    position: sticky;
    top: 124px;

    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 15px;

    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.company-v4 .company-tab {
    position: relative;

    width: 100%;
    min-height: 88px;

    padding:
        16px
        38px
        16px
        0;

    display: grid;

    grid-template-columns:
        38px
        minmax(0, 1fr);

    align-items: center;
    gap: 17px;

    color: var(--gray);
    background: transparent;

    border: 0;
    border-radius: 0;

    box-shadow: none;

    text-align: left;

    transform: none;

    transition:
        color 0.35s ease,
        transform 0.5s var(--ease);
}

.company-v4 .company-tab::before,
.company-v4 .company-tab::after {
    display: none;
}

.company-v4-tab-number {
    color:
        rgba(
            169,
            128,
            57,
            0.55
        );

    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.company-v4-tab-copy {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.company-v4-tab-copy strong {
    color: var(--ink-soft);

    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}

.company-v4-tab-copy small {
    color: var(--gray-light);

    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.16em;
}

.company-v4 .company-tab i {
    position: absolute;
    top: 50%;
    right: 0;

    color: var(--gold-deep);

    font-size: 14px;
    font-style: normal;

    opacity: 0;

    transform:
        translate(
            -10px,
            -50%
        );

    transition:
        opacity 0.35s ease,
        transform 0.5s var(--ease);
}

.company-v4 .company-tab:hover,
.company-v4 .company-tab.is-active {
    color: var(--ink);

    background: transparent;

    border: 0;

    box-shadow: none;

    transform: translateX(9px);
}

.company-v4
.company-tab.is-active
.company-v4-tab-number {
    color: var(--gold-deep);
}

.company-v4
.company-tab.is-active
.company-v4-tab-copy strong {
    color: var(--ink);
}

.company-v4 .company-tab:hover i,
.company-v4 .company-tab.is-active i {
    opacity: 1;

    transform:
        translate(
            0,
            -50%
        );
}


/* ==========================================================
   RIGHT STAGE
========================================================== */

.company-v4-stage {
    min-width: 0;
    min-height: 620px;
}

.company-v4 .company-panel {
    width: 100%;
    min-height: 0;

    margin: 0;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible;
}

.company-v4 .company-panel::before,
.company-v4 .company-panel::after {
    display: none !important;
}

.company-v4 .company-panel[hidden] {
    display: none !important;
}

.company-v4-panel.is-active {
    animation:
        companyV4PanelIn
        0.72s
        var(--ease)
        both;
}

@keyframes companyV4PanelIn {

    from {
        opacity: 0;

        transform:
            translateX(24px);
    }

    to {
        opacity: 1;

        transform:
            translateX(0);
    }

}


/* ==========================================================
   PANEL HEADER
========================================================== */

.company-v4-panel-head {
    max-width: 910px;
    margin-bottom: 65px;
}

.company-v4-panel-index {
    margin-bottom: 22px;

    color: var(--gold-deep);

    font-size: 9px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.22em;
}

.company-v4-panel-head h3 {
    color: var(--ink);

    font-family: var(--font-display);

    font-size:
        clamp(
            48px,
            5vw,
            76px
        );

    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.055em;
}

.company-v4-panel-lead {
    max-width: 760px;
    margin-top: 29px;

    color: var(--gray);

    font-size: 15px;
    line-height: 2.1;
}


/* ==========================================================
   COMPANY PROFILE
========================================================== */

.company-v4-profile {
    max-width: 920px;

    display: flex;
    flex-direction: column;
    gap: 41px;
}

.company-v4-profile > div {
    display: grid;

    grid-template-columns:
        180px
        minmax(0, 1fr);

    align-items: start;

    gap:
        clamp(
            34px,
            5vw,
            86px
        );
}

.company-v4-profile dt {
    color: var(--ink);

    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}

.company-v4-profile dt span {
    display: block;

    margin-bottom: 8px;

    color: var(--gold-deep);

    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.company-v4-profile dd {
    color: var(--ink-soft);

    font-size:
        clamp(
            18px,
            1.65vw,
            24px
        );

    font-weight: 500;
    line-height: 1.8;
}

.company-v4-business-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}


/* ==========================================================
   PHILOSOPHY
========================================================== */

.company-v4-values {
    max-width: 980px;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap:
        clamp(
            34px,
            5vw,
            72px
        );
}

.company-v4-values article {
    position: relative;

    min-width: 0;
}

.company-v4-values article > span {
    display: block;
    margin-bottom: 24px;

    color:
        rgba(
            169,
            128,
            57,
            0.4
        );

    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.company-v4-values strong {
    display: block;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
}

.company-v4-values p {
    margin-top: 15px;

    color: var(--gray);

    font-size: 13px;
    line-height: 2;
}


/* ==========================================================
   HISTORY
========================================================== */

.company-v4-history {
    max-width: 900px;

    display: flex;
    flex-direction: column;
    gap: 55px;
}

.company-v4-history article {
    display: grid;

    grid-template-columns:
        115px
        minmax(0, 1fr);

    align-items: start;
    gap: 40px;
}

.company-v4-history-year {
    color: var(--gold-deep);

    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.company-v4-history strong {
    display: block;

    color: var(--ink);

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
}

.company-v4-history p {
    max-width: 650px;
    margin-top: 12px;

    color: var(--gray);

    font-size: 13px;
    line-height: 2;
}


/* ==========================================================
   TOP MESSAGE
========================================================== */

.company-v4-message-layout {
    max-width: 980px;

    display: grid;

    grid-template-columns:
        minmax(240px, 0.7fr)
        minmax(360px, 1.3fr);

    align-items: start;

    gap:
        clamp(
            48px,
            6vw,
            90px
        );
}

.company-v4-message-photo {
    width: 100%;
    max-width: 320px;
    height: 430px;

    margin: 0;

    overflow: hidden;
}

.company-v4-message-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center top;
}

.company-v4-message-copy {
    max-width: 650px;
}

.company-v4-message-copy > p {
    color: var(--gray);

    font-size: 14px;
    line-height: 2.1;
}

.company-v4-message-copy > p + p {
    margin-top: 18px;
}

.company-v4-signature {
    margin-top: 40px;

    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.company-v4-signature span {
    color: var(--gray);

    font-size: 11px;
}

.company-v4-signature strong {
    color: var(--ink);

    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.08em;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .company-v4-header {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 58px;
    }

    .company-v4-layout {
        grid-template-columns: 1fr;

        gap: 48px;
    }

    .company-v4 .company-v4-nav {
        position: static;

        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 8px;

        scroll-snap-type: x mandatory;
    }

    .company-v4 .company-tab {
        min-width: 245px;

        scroll-snap-align: start;
    }

}

@media (max-width: 820px) {

    .company-v4 {
        padding:
            86px
            0
            104px;
    }

    .company-v4 .container {
        width:
            calc(100% - 30px);
    }

    .company-v4-title-en {
        font-size:
            clamp(
                70px,
                20vw,
                104px
            );
    }

    .company-v4-panel-head {
        margin-bottom: 48px;
    }

    .company-v4-profile > div {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .company-v4-values {
        grid-template-columns: 1fr;

        gap: 48px;
    }

    .company-v4-history article {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .company-v4-message-layout {
        grid-template-columns: 1fr;
    }

    .company-v4-message-photo {
        max-width: 100%;
        height: 460px;
    }

}

@media (max-width: 520px) {

    .company-v4-title-en {
        font-size:
            clamp(
                60px,
                19vw,
                80px
            );
    }

    .company-v4 .company-tab {
        min-width: 220px;
        min-height: 84px;
    }

    .company-v4-panel-head h3 {
        font-size: 44px;
    }

    .company-v4-message-photo {
        height: 380px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .company-v4-panel.is-active {
        animation: none !important;
    }

}
/* ==========================================================
   COMPANY V4 COMPACT
   余白を詰めて読みやすくする
========================================================== */

/*
 * FLOWとCOMPANYの間にある
 * 大きな空白を短くする
 */

.flow {
    padding-bottom: 42px;
}


/*
 * COMPANY全体
 */

.company-v4 {
    min-height: auto;

    padding:
        44px
        0
        96px;
}


/*
 * Company見出し周辺
 */

.company-v4-header {
    display: block;

    margin-bottom: 42px;
}

.company-v4-title-en {
    font-size:
        clamp(
            76px,
            7.2vw,
            116px
        );

    line-height: 0.84;
}

.company-v4-title-ja {
    margin-top: 18px;
}


/*
 * 左メニューと右の内容を近づける
 */

.company-v4-layout {
    grid-template-columns:
        minmax(
            240px,
            280px
        )
        minmax(
            0,
            1fr
        );

    gap:
        clamp(
            36px,
            4.5vw,
            68px
        );
}


/*
 * 左メニューをコンパクトに
 */

.company-v4 .company-v4-nav {
    top: 104px;

    gap: 2px;
}

.company-v4 .company-tab {
    min-height: 74px;

    padding:
        11px
        34px
        11px
        0;

    grid-template-columns:
        32px
        minmax(
            0,
            1fr
        );

    gap: 13px;
}

.company-v4-tab-copy {
    gap: 4px;
}

.company-v4-tab-copy strong {
    font-size: 16px;
    line-height: 1.45;
}

.company-v4-tab-copy small {
    font-size: 7px;
}


/*
 * 右側の表示領域
 */

.company-v4-stage {
    width: 100%;
    max-width: 860px;

    min-height: 0;
}


/*
 * 会社概要の項目間隔
 */

.company-v4-profile {
    width: 100%;
    max-width: 760px;

    gap: 27px;
}

.company-v4-profile > div {
    grid-template-columns:
        140px
        minmax(
            0,
            1fr
        );

    align-items: baseline;

    gap:
        clamp(
            28px,
            3.6vw,
            54px
        );
}

.company-v4-profile dt {
    font-size: 14px;
    line-height: 1.5;
}

.company-v4-profile dt span {
    margin-bottom: 5px;

    font-size: 7px;
}

.company-v4-profile dd {
    font-size:
        clamp(
            18px,
            1.4vw,
            22px
        );

    line-height: 1.65;
}

.company-v4-business-list {
    gap: 0;
}


/*
 * タブ切り替え後の見出しも
 * 大きすぎないように調整
 */

.company-v4-panel-head {
    margin-bottom: 42px;
}

.company-v4-panel-head h3 {
    font-size:
        clamp(
            40px,
            4vw,
            60px
        );
}

.company-v4-panel-lead {
    margin-top: 20px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {

    .company-v4 {
        padding-top: 54px;
    }

    .company-v4-layout {
        grid-template-columns: 1fr;

        gap: 32px;
    }

    .company-v4-stage {
        max-width: none;
    }

}

@media (max-width: 820px) {

    .flow {
        padding-bottom: 30px;
    }

    .company-v4 {
        padding:
            48px
            0
            82px;
    }

    .company-v4-header {
        margin-bottom: 34px;
    }

    .company-v4-title-en {
        font-size:
            clamp(
                62px,
                18vw,
                88px
            );
    }

    .company-v4-profile > div {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .company-v4-profile {
        gap: 32px;
    }

}

/* ==========================================================
   HERO IMAGE FINAL
   写真を復元・カード非表示
========================================================== */

/* 左下の文字カードを非表示 */

.hero-data-card {
    display: none !important;
}


/* 写真エリアの幅を正常に戻す */

.hero-right {
    position: relative;

    width: 100% !important;
    min-width: 0 !important;

    justify-self: stretch !important;

    left: auto !important;
    right: auto !important;

    margin: 0 !important;
}


/* ==========================================================
   HERO WIDE SCREEN
   大きい画面だけ写真側を右へ広げる
========================================================== */

@media (min-width: 1600px) {

    .hero-container {
        width:
            min(
                1740px,
                calc(100% - 64px)
            ) !important;

        max-width: none !important;

        margin-left: auto !important;
        margin-right: 16px !important;
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(600px, 0.88fr);

        gap:
            clamp(
                46px,
                3.8vw,
                68px
            );
    }

}


/*
 * 通常サイズのPC
 */

@media (min-width: 1200px) and (max-width: 1599px) {

    .hero-container {
        width:
            min(
                var(--container),
                calc(100% - 96px)
            ) !important;

        margin-inline: auto !important;
    }

}
/* OPENING中央ロゴ：位置を変えず画像だけ拡大 */
@media (min-width: 821px) {

    #opening .opening-logo img {
        transform: scale(1.18) !important;
        transform-origin: 49% 48% !important;
    }

}
/* SERVICEカード右下の矢印を非表示 */
#service .service-arrow {
    display: none !important;
}
/* ==========================================================
   OPENING LOGO PURE FADE
   大きさ・位置・ぼかしなし
   opacityだけで滑らかに表示
========================================================== */

/* 過去の光・ぼかしレイヤーを完全に無効化 */

#opening .opening-logo::before,
#opening .opening-logo::after {
    content: none !important;
    display: none !important;
}


/* ロゴ画像の初期状態 */

#opening .opening-logo img {
    opacity: 0 !important;

    animation: none !important;
    filter: none !important;

    transition:
        opacity
        1.35s
        cubic-bezier(0.37, 0, 0.63, 1)
        !important;
}


/* ホワイトアウト後に、じゅわっと表示 */

#opening.logo .opening-logo img,
#opening[data-state="ready"] .opening-logo img {
    opacity: 1 !important;
}


/* SCROLLもキーフレームを使わずフェード */

#opening .opening-scroll > span,
#opening .opening-scroll .scroll-line {
    opacity: 0;

    animation: none !important;
    filter: none !important;

    transition:
        opacity
        0.8s
        ease
        0.45s;
}

#opening.logo .opening-scroll > span,
#opening.logo .opening-scroll .scroll-line,
#opening[data-state="ready"] .opening-scroll > span,
#opening[data-state="ready"] .opening-scroll .scroll-line {
    opacity: 1;
}