/* ============================================================
   TOP PAGE
   ============================================================ */
.top-page { background: var(--cream); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    z-index: 2;
    padding-top: 295px;
    padding-bottom: 0;
    min-height: 1145px;
    overflow: hidden;
}

/* Three.js ノイズ背景キャンバス（ページ全体に固定） */
#bg-noise-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 背景画像エリア（opacity 20%） */
.hero__bg-img {
    position: absolute;
    top: 142px;
    left: 562px;
    width: 798px;
    height: 449px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}
.hero__bg-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse, #364457 0%, transparent 70%);
}

/* ロゴ + タグライン行 */
.hero__logo-bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 32px;
    padding-left: 380px;
    margin-bottom: 256px; /* 295 + 256 = 551 → +29でhero__main top≈580 */
}

/* ロゴ画像：浮遊アニメーション用 */
.hero__logo-img {
    display: inline-block;
    will-change: transform;
    flex-shrink: 0;
}
.hero__logo-placeholder {
    width: 96px;
    height: 55px;
    background: rgba(54, 68, 87, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
}
.hero__tagline {
    color: var(--black);
    font-weight: 300;
    font-size: 14px;
}

/* メインテキストブロック */
.hero__main {
    position: relative;
    z-index: 2;
    padding-left: 80px;
    width: 811px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__headline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 452px;
}

.hero__catch {
    color: var(--black);
    margin-bottom: 0;
}

.hero__title {
    color: var(--black);
    width: 100%;
}

.hero__body {
    color: var(--black);
    width: 100%;
}
.hero__body p { line-height: 1.8; margin-bottom: 0; }

/* 装飾スクエア（cream→navyへの遷移） */
.hero__squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}
/* Figma座標: top-867,left-1006 / top-937,left-1077 / top-994,left-988 /
              top-1036,left-901 / top-1073,left-1016 / top-1095,left-1126 */
.hero__sq {
    position: absolute;
    width: 57px;
    height: 57px;
    background: #364457;
    border-radius: 8px;
}
.hero__sq--1 { top: 867px;  left: 1006px; opacity: 0.30; }
.hero__sq--2 { top: 937px;  left: 1077px; opacity: 0.60; }
.hero__sq--3 { top: 994px;  left: 988px;  opacity: 0.80; }
.hero__sq--4 { top: 1036px; left: 901px;  opacity: 0.90; }
.hero__sq--5 { top: 1073px; left: 1016px; opacity: 0.95; }
.hero__sq--6 { top: 1095px; left: 1126px; opacity: 1.00; }

/* ============================================================
   BUSINESS
   ============================================================ */
.business {
    background: #364457;
    padding-bottom: 0;
    position: relative;
    z-index: 3;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

/* アーチのコーナー透明部分をネイビーで塗りつぶす */
.business::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: #364457;
    z-index: -1;
    pointer-events: none;
}

/* セクションヘッダー */
.business__head {
    padding-top: 64px;
}

/* カード群 */
.biz-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 80px;
    margin-top: 64px;
    margin-bottom: 64px;
}

/* ビジネスカード共通 */
.biz-card {
    position: relative;
    width: 100%;
    border-bottom: 2px solid #F5F0E8;
    overflow: hidden;
}
/* 左上の折り目 */
.biz-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 81px;
    height: 79px;
    background: url('../img/triangle.png') no-repeat left top;
    background-size: contain;
    z-index: 3;
}

.biz-card--it     { height: 810px; }
.biz-card--coffee {
    height: 576px;
    cursor: url('../img/view_detail_cursor.png'), pointer;
}
.biz-card--coffee .biz-card__bg-photo {
    transition: transform 0.6s ease;
}
.biz-card--coffee:hover .biz-card__bg-photo {
    transform: scale(1.06);
}
.biz-card--partner{ height: 576px; }

.biz-card__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.biz-card__bg-placeholder {
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: #2a3445;
}

/* カードヘッダーテキスト */
.biz-card__header {
    position: absolute;
    top: 70px;
    left: 68px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
}
.biz-card__desc { line-height: 0; width: 100% !important; max-width: 609px; }
.biz-card__desc p { line-height: 1.8; margin-bottom: 0; }

/* 製品サブカード群（ITカード内） */
.biz-products {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.biz-product {
    position: absolute;
    width: 33.2%;
    aspect-ratio: 425 / 527;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 2.5px rgba(255, 255, 255, 0.25);
}
.biz-product--vivaso {
    left: 7%;
    top: 229px;
    will-change: transform;
    transform-style: preserve-3d;
    cursor: pointer;
    /* ティルト中のbox-shadowを強化 */
    transition: box-shadow 0.3s;
}
.biz-product--vivaso:hover {
    box-shadow: 12px 18px 30px rgba(0, 0, 0, 0.35), 4px 4px 8px rgba(255, 255, 255, 0.15);
}

/* グレア（光反射）オーバーレイ — vivaso・ブログカード共通 */
.tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}
.biz-product--ocr    { left: 45.1%; top: 200px; }

.biz-product__img-area {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    overflow: hidden;
}
.biz-product__img-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(54, 68, 87, 0.85);
}

/* vivasoカード: 背景画像をFigma値で配置 */
.biz-product--vivaso .biz-product__img {
    position: absolute;
    width: 236.65%;
    height: 107.4%;
    left: -46.65%;
    top: -4.88%;
    max-width: none;
    object-fit: initial;
}

/* vivasoカード: PCモックアップ画像コンテナ */
.biz-product__vivaso-img-wrap {
    position: absolute;
    left: 13.2%;
    top: 11.4%;
    width: 65.2%;
    height: 37.4%;
    overflow: hidden;
    z-index: 1;
}
/* PC画像（コンテナ内パーセンテージ） */
.biz-product__vivaso-img {
    position: absolute;
    width: 166.59%;
    height: 108.13%;
    object-fit: contain;
}

/* vivasoカード: テキストボディをFigma値で配置 */
.biz-product--vivaso .biz-product__body {
    top: 57.9%;
    left: 4.7%;
    width: 90.6%;
    right: auto;
    bottom: auto;
}

.biz-product__body {
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    padding-bottom: clamp(8px, 1.5vw, 20px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 12px);
    z-index: 2;
}
.biz-product__body-inner {
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 1.5vw, 24px);
}
.biz-product__brand-name {
    font-family: var(--font-brand);
    font-size: clamp(14px, 1.75vw, 24px);
    font-weight: 700;
    color: #4E6079;
    text-align: center;
    line-height: 1;
}
.biz-product__link {
    align-self: flex-end;
}

/* カード内本文をカードサイズに追従させる */
.biz-product .t-body {
    font-size: clamp(11px, 1.2vw, 16px);
    line-height: 1.6;
}

/* コーヒーカード: ロゴ */
.biz-card__logo-area {
    position: absolute;
    left: 57.5%;
    top: 40%;
    width: 39.1%;
    aspect-ratio: 500 / 217;
    z-index: 2;
}
.biz-card__logo-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(245, 240, 232, 0.1);
    border-radius: 4px;
}

/* SP専用カーソルアイコン（PCでは非表示） */
.biz-card__coffee-cursor {
    display: none;
}

/* "View Detail" リンク */
.biz-card__link {
    position: absolute;
    bottom: 40px;
    right: 44px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

/* ============================================================
   COMPANY（Business section内）
   ============================================================ */
.company-ov {
    background: #1F2022;
    height: 725px;
    position: relative;
    overflow: hidden;
}

.company-ov__head {
    padding-top: 64px;
    align-items: center;
    padding-left: 180px;
    padding-right: 0;
}

.company-ov__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 80px;
    margin-top: 44px;
}

.company-ov__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-ov__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 694px;
}

.company-ov__logo-placeholder {
    width: 96px;
    height: 55px;
    background: rgba(245, 240, 232, 0.15);
    border-radius: 4px;
}

/* 会社情報テーブル */
.company-table {
    display: flex;
    flex-direction: column;
    gap: 44px;
    width: 100%;
}
.company-table__row {
    display: flex;
    align-items: center;
    gap: 40px;
}
.company-table__row dt {
    color: #fff;
    width: 120px;
    flex-shrink: 0;
}
.company-table__line {
    width: 120px;
    height: 1px;
    background: rgba(245, 240, 232, 0.3);
    flex-shrink: 0;
}
.company-table__row dd {
    color: #fff;
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-section {
    background: var(--cream);
    padding-bottom: 120px;
}

.blog-section__head {
    padding-top: 64px;
}

/* 3列 stagger レイアウト */
.blog-cols {
    display: flex;
    gap: 100px;           /* col間: 1000-360-540=100px */
    align-items: flex-start;
    padding: 0 80px;
    margin-top: 179px;    /* blog section top-64 + ghost≈180px = first card top 243 */
}

.blog-col {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}
/* col2: +98px, col3: +252px stagger */
.blog-col--mid  { margin-top: 98px;  }
.blog-col--last { margin-top: 252px; }

/* ブログカード：ティルト用の基本スタイル */
.blog-card {
    position: relative;
    will-change: transform;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}
.blog-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.blog-card__link { display: block; text-decoration: none; color: inherit; }

.blog-card__thumb {
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    background: #D9D9D9;
    margin-bottom: 12px;
}
.blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #D9D9D9;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

/* カテゴリタグ */
.blog-card__cat-wrap { display: flex; }
.blog-card__cat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 12px;
    color: #F5F0E8;
    background: #364457;
    font-family: var(--font-jp);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
}
/* 特定カテゴリはteal */
.blog-card__cat--column,
.blog-card__cat--vivaso { background: var(--teal); }

.blog-card__title {
    color: var(--black);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* View More */
.blog-section__more {
    display: flex;
    justify-content: flex-end;
    padding-right: 80px;
    margin-top: 60px;
}
.blog-section__more-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--black);
    transition: gap 0.3s;
}
.blog-section__more-link:hover { gap: 24px; }

.blog-section__empty {
    padding: 60px 80px;
    color: rgba(16, 16, 16, 0.45);
}

/* ============================================================
   実画像スタイル（imgフォルダ画像置き換え後）
   ============================================================ */

/* ヒーロー背景写真 */
.hero__bg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ヒーローロゴ */
.hero__logo-photo {
    width: 96px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ビジネスカード背景写真（opacity はラッパー .biz-card__bg が管理） */
.biz-card__bg-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* 製品サブカード画像 */
.biz-product__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* コーヒーロゴ */
.biz-card__logo-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 会社概要ロゴ */
.company-ov__logo-photo {
    width: 96px;
    height: auto;
    object-fit: contain;
}

/* SP専用改行：PCでは非表示 */
.sp-br { display: none; }

/* ============================================================
   SP（〜768px）
   ============================================================ */
@media (max-width: 768px) {

    /* SP専用改行を表示 */
    .sp-br { display: inline; }

    /* hero headline フォントサイズ（Figma SP値） */
    .hero__catch { font-size: 16px; }
    .hero__title  { font-size: 44px; }

    /* ───── HERO ───── */
    .hero {
        padding-top: 120px;
        padding-bottom: 360px; /* 装飾スクエアを収めるための余白 */
        min-height: auto;
    }

    /* ロゴ＋タグライン：縦並び・中央揃え */
    .hero__logo-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 16px;
        margin-bottom: 120px;
    }

    /* テキストブロック：全幅 */
    .hero__main {
        padding-left: 16px;
        padding-right: 16px;
        width: 100%;
    }

    .hero__headline {
        width: 100%;
    }

    .hero__squares {
        top: -128px;
    }

    /* 装飾スクエア：Figma SP座標（bottom起点）に再配置 */
    .hero__sq--1 { top: auto; bottom: 285px; left: 198px; opacity: 0.30; }
    .hero__sq--2 { top: auto; bottom: 215px; left: 269px; opacity: 0.60; }
    .hero__sq--3 { top: auto; bottom: 158px; left: 180px; opacity: 0.80; }
    .hero__sq--4 { top: auto; bottom: 116px; left:  93px; opacity: 0.90; }
    .hero__sq--5 { top: auto; bottom:  79px; left: 208px; opacity: 0.95; }
    .hero__sq--6 { top: auto; bottom:  57px; left: 318px; opacity: 1.00;
                   border-radius: 8px 8px 0 0; }


    .business {
        margin-top: -190px;
    }
    /* ───── BUSINESS カード群 ───── */
    .biz-cards {
        padding: 0 16px;
        margin-top: 40px;
    }

    /* 折り目（左上三角）を非表示 */
    .biz-card::before {
        display: none;
    }

    /* 説明文：幅制限を解除 */
    .biz-card__desc {
        max-width: 100%;
    }

    /* ── IT ソリューションカード ── */
    .biz-card--it {
        height: auto;
    }

    /* 背景画像を上部 255px に限定 */
    .biz-card--it .biz-card__bg {
        bottom: auto;
        height: 255px;
    }

    /* ヘッダーテキスト：画像上にオーバーレイ */
    .biz-card--it .biz-card__header {
        top: 24px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }

    /* 製品カード群：画像エリアの下に通常フローで配置 */
    .biz-products {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 255px;
        padding: 16px;
    }

    /* 背景画像を疑似要素に分離してopacityを子要素に影響させない */
    .biz-products::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('../img/suit_bg.jpeg') center center / cover no-repeat;
        opacity: 0.3;
        pointer-events: none;
        z-index: 0;
    }

    .biz-products > * {
        position: relative;
        z-index: 1;
    }

    /* vivaso カード：Figma SP（暗背景＋縦並び） */
    .biz-product--vivaso {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        background: #121827;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 24px 16px;
        box-shadow: none;
        border-radius: 0;
    }

    /* 背景カード画像（vivaso_card.png）は非表示 */
    .biz-product--vivaso .biz-product__img-area {
        display: none;
    }

    /* PCモックアップ画像：通常フローに戻す */
    .biz-product--vivaso .biz-product__vivaso-img-wrap {
        position: relative;
        left: auto;
        top: auto;
        width: 187px;
        height: 133px;
        overflow: hidden;
        flex-shrink: 0;
    }
    .biz-product--vivaso .biz-product__vivaso-img {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* テキストボディ：通常フローに戻す */
    .biz-product--vivaso .biz-product__body {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        right: auto;
        width: 100%;
        padding-bottom: 0;
    }

    /* ── コーヒーカード ── */
    .biz-card--coffee {
        height: auto;
        min-height: 440px;
    }

    .biz-card--coffee .biz-card__header {
        top: 24px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }

    /* コーヒーロゴ：中央下部に配置 */
    .biz-card__logo-area {
        left: 50%;
        right: auto;
        top: auto;
        bottom: 72px;
        transform: translateX(-50%);
        width: 160px;
    }

    /* SP専用カーソルアイコン */
    .biz-card__coffee-cursor {
        display: block;
        position: absolute;
        right: 16px;
        bottom: 24px;
        z-index: 2;
    }

    /* View Detail リンク */
    .biz-card__link {
        right: 16px;
        bottom: 24px;
    }

    /* ── パートナーカード ── */
    .biz-card--partner {
        height: auto;
        min-height: 420px;
    }

    .biz-card--partner .biz-card__header {
        top: 24px;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
    }

    /* ───── COMPANY ───── */
    .company-table__row dt {
        text-align: left;
    }

    .company-ov {
        height: auto;
        padding-bottom: 0;
    }

    .blog-section {
        padding-top: 44px;
    }

    .company-ov__head {
        padding-left: 0;
    }

    .company-ov__inner {
        flex-direction: column;
        padding: 0 16px;
        gap: 12px;
        margin: 32px 0 48px 0;
    }

    .company-ov__left .t-catch {
        font-size: 16px;
    }

    .company-ov__left .t-h2 {
        font-size: 48px;
    }

    .company-ov__right {
        width: 100%;
    }

    .company-ov__logo-photo {
        width: 96px;
        height: 55px;
        object-fit: contain;
    }

    .company-table {
        gap: 24px;
    }

    /* 区切り線を非表示、ラベルと値を縦並び */
    .company-table__row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .company-table__line {
        display: none;
    }

    /* ───── BLOG ───── */
    .blog-section__head {
        padding-top: 24px;
    }

    .blog-cols {
        flex-direction: column;
        padding: 0 16px;
        gap: 32px;
        margin-top: 48px;
    }

    .blog-col {
        flex: none;
        width: 100%;
        gap: 32px;
    }

    /* stagger オフセットをリセット */
    .blog-col--mid,
    .blog-col--last {
        margin-top: 0;
    }

    .blog-section__more {
        padding-right: 16px;
    }

    .blog-section__empty {
        padding: 40px 16px;
    }
}
