.ichipuras-page {
    /* 実体は base.css の --brand-*（ロゴの3面色） */
    --ip-orange:      var(--brand-orange);
    --ip-orange-lt:   var(--brand-orange-lt);
    --ip-orange-dk:   var(--brand-orange-dk);
    --ip-green:       var(--brand-green);
    --ip-green-lt:    var(--brand-green-lt);
    --ip-green-dk:    var(--brand-green-dk);
    --ip-orange-rgb:  var(--brand-orange-rgb);
    --ip-green-rgb:   var(--brand-green-rgb);
    /* ロゴの輪郭線と同じ濃紺。ダークセクションの地にも使う */
    --ip-ink:         #1F2022;

    /* 面と線。トップページの罫線トーンに合わせた薄さ */
    --ip-line:        rgba(16, 16, 16, 0.12);
    --ip-line-soft:   rgba(16, 16, 16, 0.08);
    --ip-muted:       rgba(16, 16, 16, 0.68);

    background: var(--cream);
}

/* ロゴを画像として置くときの共通指定 */
.ip-logo { display: block; width: 100%; height: auto; }

/* 全セクションをノイズキャンバス（z-index:1）より前に出す */
.ichipuras-page section {
    position: relative;
    z-index: 3;
}

/* SP だけで効かせたい改行 */
.ip-br-sp { display: none; }

/* ------------------------------------------------------------
   セクションの器（共通）
   ------------------------------------------------------------ */
.ip-section {
    background: transparent;
    padding: 0 0 128px;
}
.ip-section > .section-head { padding-top: 80px; }

.ip-inner {
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ------------------------------------------------------------
   セクションのリード（見出し＋補足）。全セクションで同じ組み方
   ------------------------------------------------------------ */
.ip-lead {
    max-width: 860px;
    margin: 40px auto 56px;
    text-align: center;
}
.ip-lead__title {
    font-family: var(--font-mincho);
    font-size: clamp(24px, 2.9vw, 40px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--black);
}
.ip-lead__desc {
    margin-top: 20px;
    color: var(--ip-muted);
}

/* ============================================================
   HERO
   ============================================================ */
.ip-hero {
    background: transparent;
    /* 装飾スクエアを内側に収める */
    overflow: hidden;
    padding: 172px 0 112px;
}

.ip-hero__inner {
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    position: relative;
    z-index: 2;
}

.ip-hero__text { flex: 1; min-width: 0; }

.ip-hero__label-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}
.ip-hero__label-line {
    width: 57px;
    height: 1px;
    background: var(--teal);
}

.ip-hero__name {
    margin: 24px 0 40px;
}
.ip-hero__name-jp {
    display: block;
    font-family: var(--font-mincho);
    font-size: clamp(42px, 5.8vw, 78px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--black);
}

/* 名前に添える一行。主役はあくまで名前なので、一段落として置く */
.ip-hero__catch {
    font-family: var(--font-mincho);
    font-size: clamp(19px, 2.2vw, 29px);
    font-weight: 700;
    line-height: 1.55;
    color: var(--ip-orange-dk);
}

.ip-hero__desc {
    margin-top: 28px;
    max-width: 620px;
    color: var(--ip-muted);
}

/* --- サービスロゴ ---------------------------------------- */
.ip-hero__visual {
    width: 360px;
    flex-shrink: 0;
}
/* ロゴの背後に、ロゴと同じ 30° のアイソメ格子を薄く敷く。
   中央から外へマスクでフェードさせ、線が枠で切れて見えないようにする */
.ip-hero__stage {
    position: relative;
    isolation: isolate;
}
.ip-hero__stage::before {
    content: '';
    position: absolute;
    inset: -14% -10% -6%;
    background-image:
        repeating-linear-gradient( 30deg, rgb(var(--ip-orange-rgb) / 0.2) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(-30deg, rgb(var(--ip-green-rgb)  / 0.2) 0 1px, transparent 1px 44px);
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
            mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
    z-index: -1;
}
.ip-hero__logo {
    position: relative;
    animation: ip-float 6s var(--ease) infinite;
}
/* 積み木が浮いて見えるよう、床に落ちる影を別要素で置く */
.ip-hero__shadow {
    display: block;
    width: 58%;
    height: 16px;
    margin: -4% auto 0;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(13, 12, 37, 0.22) 0%, rgba(13, 12, 37, 0) 70%);
    animation: ip-float-shadow 6s var(--ease) infinite;
}

@keyframes ip-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
@keyframes ip-float-shadow {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%      { transform: scale(0.88); opacity: 0.6; }
}
@media (prefers-reduced-motion: reduce) {
    .ip-hero__logo,
    .ip-hero__shadow { animation: none; }
}

/* --- 装飾スクエア（トップページのヒーローと同じ見立て） ---
   ロゴの積み木がこぼれてきたように、オレンジ→グリーンで並べる */
.ip-hero__squares {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.ip-hero__sq {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 8px;
}
.ip-hero__sq--1 { bottom: 104px; right: 292px; background: var(--brand-orange-lt); opacity: 0.30; }
.ip-hero__sq--2 { bottom: 48px;  right: 218px; background: var(--brand-orange);    opacity: 0.55; }
.ip-hero__sq--3 { bottom: 88px;  right: 132px; background: var(--brand-green-lt);  opacity: 0.75; }
.ip-hero__sq--4 { bottom: 26px;  right: 52px;  background: var(--brand-green);     opacity: 0.90; }

/* ============================================================
   OVERVIEW — 3ステップ
   ============================================================ */
/* パネルで囲わず、丸番号と矢印だけで「01 → 02 → 03」の流れを見せる */
.ip-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
    /* 丸番号の直径。矢印の位置もこの値から算出する */
    --ip-steps-node: 44px;
}
.ip-steps__item { position: relative; }

/* 丸番号。つなぎ線が透けないよう、地と同じ色で塗る */
.ip-steps__num {
    width: var(--ip-steps-node);
    height: var(--ip-steps-node);
    border-radius: 50%;
    border: 2px solid var(--ip-orange);
    background: var(--cream);
    display: grid;
    place-items: center;
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    color: var(--ip-orange);
    margin-bottom: 20px;
}
.ip-steps__item--goal .ip-steps__num {
    border-color: var(--ip-green);
    color: var(--ip-green);
}

/* 丸番号どうしを線と矢じりでつなぐ。最後の項目からは伸ばさない */
.ip-steps__item:not(:last-child)::before,
.ip-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--ip-steps-node) / 2);
}
/* つなぎ線：自分の丸の右端から、隣の丸の手前まで */
.ip-steps__item:not(:last-child)::before {
    left: var(--ip-steps-node);
    right: -56px;
    height: 1px;
    background: var(--ip-orange);
    opacity: 0.45;
    transform: translateY(-50%);
}
/* 矢じり：正方形の2辺だけを描いて45°倒す */
.ip-steps__item:not(:last-child)::after {
    right: -50px;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid var(--ip-orange);
    border-right: 1.5px solid var(--ip-orange);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.75;
}
/* 03（運営権の譲渡）へ向かう矢印だけグリーンにして、受け渡しを示す */
.ip-steps__item:nth-child(2)::before { background: var(--ip-green); }
.ip-steps__item:nth-child(2)::after {
    border-top-color: var(--ip-green);
    border-right-color: var(--ip-green);
}

.ip-steps__title {
    font-family: var(--font-mincho);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
    color: var(--black);
}
.ip-steps__desc { color: var(--ip-muted); }

/* 結論の一文。パネルを持たせず、地の上に直接置いて言い切る */
.ip-overview__punch {
    margin-top: 64px;
    text-align: center;
    font-family: var(--font-mincho);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.6;
    color: var(--black);
}
.ip-overview__punch em {
    font-style: normal;
    color: var(--ip-orange);
}

/* ============================================================
   MERIT — パートナーのメリット
   ============================================================ */
/* 面ではなく、余白と細い罫線だけで4項目を並べる */
.ip-merit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 72px;
}
.ip-merit__item {
    padding: 40px 0;
    border-top: 1px solid var(--ip-line);
}
/* 上段2つの罫線はセクションの区切りと重なるので、少し詰める */
.ip-merit__item:nth-child(-n+2) { padding-top: 32px; }

.ip-merit__num {
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--ip-orange);
    margin-bottom: 12px;
}
/* 04（運営権の譲渡）はいちぷら側からの受け渡しなのでグリーン */
.ip-merit__item--goal .ip-merit__num { color: var(--ip-green); }

.ip-merit__title {
    font-family: var(--font-mincho);
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 14px;
    color: var(--black);
}
.ip-merit__desc { color: var(--ip-muted); }

/* --- お願いすること（先に開示して対等さを担保する） --- */
.ip-terms {
    max-width: 900px;
    margin: 80px auto 0;
}
.ip-terms__title {
    font-family: var(--font-mincho);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--black);
}
.ip-terms__list li {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--ip-line-soft);
}
.ip-terms__list li:last-child { border-bottom: none; padding-bottom: 0; }
.ip-terms__key {
    flex: 0 0 360px;
    font-family: var(--font-mincho);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--black);
}
.ip-terms__val {
    font-family: var(--font-jp);
    font-size: 15px;
    line-height: 1.8;
    color: var(--ip-muted);
}

/* ============================================================
   WHY — いちぷらがやりたいこと（ページ唯一のダークセクション。
   トップページの Company ブロックと同じ地の色で揃えている）
   ============================================================ */
.ip-why {
    background: var(--ip-ink);
    color: var(--cream);
    padding: 0 0 128px;
    overflow: hidden;
}
.ip-why > .section-head { padding-top: 80px; }

/* 背面にサービスロゴを大きく沈める */
.ip-why::after {
    content: '';
    position: absolute;
    right: -110px;
    bottom: -110px;
    width: 440px;
    aspect-ratio: 1;
    background: url("../img/1%2B.svg") no-repeat center / contain;
    opacity: 0.07;
    pointer-events: none;
}
.ip-why .ip-inner { position: relative; z-index: 1; }

.ip-why__head {
    max-width: 860px;
    margin: 80px auto 64px;
    text-align: center;
}
.ip-why__en {
    font-family: var(--font-en);
    font-size: clamp(40px, 5.4vw, 76px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ip-green-lt);
}
.ip-why__title {
    font-family: var(--font-mincho);
    font-size: clamp(24px, 2.9vw, 40px);
    font-weight: 700;
    line-height: 1.45;
    margin: 24px 0 24px;
}
.ip-why__desc { color: rgba(245, 240, 232, 0.78); }

/* 3つの問い。左のグリーンの罫線で「いちぷら側の発言」だと示す */
.ip-why__qa {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.ip-why__qa-item {
    border-left: 2px solid rgb(var(--ip-green-rgb) / 0.7);
    padding: 4px 0 4px 24px;
}
.ip-why__q {
    font-family: var(--font-mincho);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 14px;
}
.ip-why__a { color: rgba(245, 240, 232, 0.75); }

/* ============================================================
   WANTED — 求める人物像 ＋ 審査で見る3つ
   ============================================================ */
/* --- 審査で見る3つ（ベン図） --- */
.ip-venn {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 64px;
    align-items: center;
    max-width: 900px;
    margin: 24px auto 0;
}
.ip-venn svg { width: 100%; height: auto; }
.ip-venn__c {
    fill-opacity: 0.3;
    stroke-width: 1.5;
}
.ip-venn__c--1 { fill: var(--ip-orange); stroke: var(--ip-orange); }
.ip-venn__c--2 { fill: #8A8A8A;          stroke: #8A8A8A; }
.ip-venn__c--3 { fill: var(--ip-green);  stroke: var(--ip-green); }
.ip-venn__plus {
    text-anchor: middle;
    font-family: var(--font-mincho);
    font-size: 34px;
    font-weight: 700;
    fill: var(--white);
}
.ip-venn__title {
    font-family: var(--font-mincho);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 12px;
    color: var(--black);
}
.ip-venn__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ip-line-soft);
}
.ip-venn__list li:last-child { border-bottom: none; padding-bottom: 0; }
.ip-venn__num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    display: grid;
    place-items: center;
    font-family: var(--font-en);
    font-size: 15px;
    font-weight: 700;
}
.ip-venn__text {
    font-family: var(--font-mincho);
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

/* ============================================================
   ROLES — 役割分担
   ============================================================ */
.ip-roles__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}
/* 面で囲わず、上の色罫線だけでどちら側の役割かを示す */
.ip-roles__col { padding-top: 26px; }
.ip-roles__col--you { border-top: 2px solid var(--ip-orange); }
.ip-roles__col--us  { border-top: 2px solid var(--ip-green); }

.ip-roles__col-title {
    font-family: var(--font-mincho);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--black);
}
/* 「＋」の位置にサービスロゴを置く */
.ip-roles__plus {
    align-self: center;
    width: 124px;
    flex-shrink: 0;
}
.ip-roles__sub + .ip-roles__sub { margin-top: 28px; }
.ip-roles__sub-title {
    font-family: var(--font-jp);
    font-size: 13px;
    color: var(--teal);
    margin-bottom: 6px;
}
.ip-roles__list li {
    position: relative;
    padding: 13px 0 13px 24px;
    font-family: var(--font-jp);
    font-size: 16px;
    border-bottom: 1px solid var(--ip-line-soft);
}
.ip-roles__list li:last-child { border-bottom: none; }
.ip-roles__list li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

/* ============================================================
   PROOF — 自社事業
   ============================================================ */
/* vivaso の1件だけを、オーダースーツの現場写真とともに見せる */
.ip-proof__item {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.ip-proof__visual {
    overflow: hidden;
    border-radius: 4px;
}
.ip-proof__visual img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
}
.ip-proof__cat {
    font-family: var(--font-jp);
    font-size: 13px;
    color: var(--teal);
    margin-bottom: 12px;
}
.ip-proof__title {
    font-family: var(--font-brand);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    color: var(--black);
}
.ip-proof__desc { color: var(--ip-muted); }
.ip-proof__link {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--font-jp);
    font-size: 14px;
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s var(--ease);
}
.ip-proof__link:hover { opacity: 0.6; }

/* ============================================================
   LAST MESSAGE
   ============================================================ */
.ip-last {
    background: transparent;
    padding: 0 0 112px;
    text-align: center;
}
.ip-last__inner {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}
/* 締めはロゴで着地させる */
.ip-last__logo {
    width: 108px;
    margin: 0 auto 28px;
}
.ip-last__title {
    font-family: var(--font-mincho);
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 16px;
    color: var(--black);
}
.ip-last__desc { color: var(--ip-muted); }

/* ============================================================
   TB（〜1024px）
   ============================================================ */
@media (max-width: 1024px) {
    .ip-hero { padding: 150px 0 120px; }
    .ip-hero__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 40px;
    }
    .ip-hero__visual { width: 260px; }
    /* 縦積みではロゴの下にスクエアが重なるので、左下に逃がす */
    .ip-hero__sq { width: 36px; height: 36px; }
    .ip-hero__sq--1 { bottom: 84px; right: auto; left: 8px;   }
    .ip-hero__sq--2 { bottom: 40px; right: auto; left: 66px;  }
    .ip-hero__sq--3 { bottom: 72px; right: auto; left: 128px; }
    .ip-hero__sq--4 { bottom: 24px; right: auto; left: 190px; }

    .ip-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    /* 縦積みでは線を消し、丸番号の真下に下向きの矢じりだけを置く */
    .ip-steps__item:not(:last-child)::before { display: none; }
    .ip-steps__item:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -30px;
        left: calc(var(--ip-steps-node) / 2 - 4px);
        transform: rotate(135deg);
    }

    .ip-why__qa { grid-template-columns: 1fr; gap: 28px; }

    .ip-venn {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ip-venn__visual { max-width: 300px; margin: 0 auto; }

    .ip-proof__item { gap: 40px; }

    .ip-terms__key { flex: 0 0 240px; }
}

/* ============================================================
   SP（〜768px）
   ============================================================ */
@media (max-width: 768px) {
    .ip-br-sp { display: inline; }

    .ip-hero { padding: 120px 0 96px; }
    .ip-hero__name { margin: 18px 0 16px; }
    /* 縦積みではロゴだけ中央に置く（テキストは左揃えのまま） */
    .ip-hero__visual {
        width: 200px;
        margin-inline: auto;
    }
    .ip-hero__desc { margin-top: 24px; }

    .ip-hero__sq { width: 28px; height: 28px; }
    .ip-hero__sq--1 { bottom: 60px; left: 8px;   }
    .ip-hero__sq--2 { bottom: 26px; left: 50px;  }
    .ip-hero__sq--3 { bottom: 52px; left: 92px;  }
    .ip-hero__sq--4 { bottom: 18px; left: 134px; }

    .ip-section { padding-bottom: 80px; }
    .ip-section > .section-head,
    .ip-why > .section-head { padding-top: 56px; padding-bottom: 80px;}
    .ip-why { padding-bottom: 80px; }
    .ip-why::after { width: 220px; opacity: 0.06; }
    .ip-why__head { margin: 24px auto 40px; }

    .ip-lead { margin: 32px auto 36px; }

    /* すべて縦積み */
    .ip-merit__grid,
    .ip-roles__grid,
    .ip-proof__item {
        grid-template-columns: 1fr;
    }
    .ip-merit__grid { column-gap: 0; }
    .ip-merit__item { padding: 28px 0; }
    .ip-merit__item:nth-child(2) { padding-top: 28px; }

    .ip-roles__grid { gap: 32px; }
    .ip-proof__item { gap: 28px; }
    .ip-proof__visual img { max-height: 260px; }

    .ip-overview__punch { margin-top: 48px; }

    .ip-terms { margin-top: 48px; }
    .ip-terms__list li {
        flex-direction: column;
        gap: 8px;
        padding: 16px 0;
    }
    .ip-terms__key { flex: none; font-size: 16px; }

    .ip-venn { margin-top: 32px; }
    .ip-venn__visual { max-width: 260px; }

    /* 縦積みでは2カラムの間で中央に置く */
    .ip-roles__plus {
        width: 72px;
        margin: 0 auto;
    }

    .ip-last { padding-bottom: 72px; }
    .ip-last__logo { width: 84px; }

    /* 画面幅が狭いと中央揃えは行頭が揃わず読みにくいので、
       テキストはすべて左揃えに戻す（ロゴなどのビジュアルは中央のまま） */
    .ip-lead,
    .ip-overview__punch,
    .ip-terms__title,
    .ip-why__head,
    .ip-roles__col-title,
    .ip-last {
        text-align: left;
    }
}
