/**
 * CRMLP Supplemental Styles
 * campaign.css を基本とし、足りない部分を補完
 * 元ページ: app.kaigojob-academy.com/forms/school_007_crmlp/p01
 */

/* =====================================================
   Header (元ページの .header スタイルを再現)
   ===================================================== */

.crmlp-header {
    display: grid;
    height: 74px;
    place-items: center;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    background: linear-gradient(0deg, #F9FAFA 0%, #fff 60%);
}

.crmlp-header.fixed {
    background: hsla(0, 0%, 100%, 0.98);
    box-shadow: 0 1px 5px rgba(42, 56, 107, 0.15);
}

.crmlp-header__inner {
    align-items: center;
    display: flex;
    gap: 16px;
    font-size: 13px;
    font-weight: 500;
    justify-content: space-between;
    padding: 0 16px 0 8px;
    width: min(100%, 1080px);
}

.crmlp-header__logo {
    width: 90px;
    z-index: 9999;
}

.crmlp-header__logo img {
    width: 100%;
    height: auto;
}

.crmlp-header__nav {
    align-items: center;
    display: flex;
    gap: 24px;
}

.crmlp-header__list {
    align-items: center;
    display: flex;
    gap: 24px;
    line-height: 28px;
    margin: 0;
    padding: 0 0 2px;
    list-style: none;
}

.crmlp-header__list a {
    color: #142a77;
    text-decoration: none;
    font-weight: 500;
}

.crmlp-header__list a:hover {
    border-bottom: 1px solid #142a77;
    padding: 0 0 2px;
}

/* CTAボタン */
.crmlp-header__cv {
    align-items: center;
    background: #0dc569;
    border-radius: 9999px;
    box-shadow: 0 1px 8px #bbb;
    color: #fff !important;
    display: flex;
    font-weight: 500;
    justify-content: center;
    padding: 0 0 2px;
    white-space: nowrap;
    height: 48px;
    width: 220px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.crmlp-header__cv:hover {
    background: #fff;
    border: 1px solid #0dc569;
    color: #0dc569 !important;
}

/* SP用コンテナ */
.crmlp-header__sp {
    align-items: center;
    display: none;
    gap: 2vw;
}

/* ミニCTAボタン（SP用・固定時表示） */
.crmlp-header__cv--mini {
    display: none;
    align-items: center;
    background: #0dc569;
    border-radius: 9999px;
    box-shadow: 0 1px 8px #bbb;
    color: #fff !important;
    font-size: 12px;
    font-weight: 500;
    height: 36px;
    justify-content: center;
    line-height: 28px;
    text-decoration: none;
    width: 110px;
    transition: all 0.3s ease;
}

.crmlp-header__cv--mini:hover {
    background: #fff;
    border: 1px solid #0dc569;
    color: #0dc569 !important;
}

.crmlp-header.fixed .crmlp-header__cv--mini {
    display: flex;
}

/* ハンバーガーメニュー */
.crmlp-header__hamburger {
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    display: grid;
    height: 40px;
    padding: 0;
    place-items: center;
    position: relative;
    width: 40px;
    z-index: 9999;
}

.crmlp-header__hamburger span {
    width: 26px;
}

.crmlp-header__hamburger span,
.crmlp-header__hamburger span:after,
.crmlp-header__hamburger span:before {
    background-color: #adadad;
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    transition: 0.3s;
}

.crmlp-header__hamburger span:after,
.crmlp-header__hamburger span:before {
    transform-origin: center;
    width: 27px;
}

.crmlp-header__hamburger span:before {
    bottom: 9px;
}

.crmlp-header__hamburger span:after {
    top: 9px;
}

/* ハンバーガーメニュー開いた状態 */
.crmlp-header.opened .crmlp-header__nav {
    transform: translateX(0);
}

.crmlp-header.opened .crmlp-header__list {
    flex-direction: column;
    font-size: 20px;
    gap: 32px;
    letter-spacing: 2px;
    line-height: 38px;
    text-align: center;
}

.crmlp-header.opened .crmlp-header__cv {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 18px;
    height: 88px;
    justify-content: center;
    letter-spacing: 3px;
    max-width: 400px;
    width: 80%;
}

.crmlp-header.opened .crmlp-header__hamburger span {
    background-color: hsla(0, 0%, 68%, 0);
}

.crmlp-header.opened .crmlp-header__hamburger span:before {
    bottom: 0;
    transform: rotate(45deg);
}

.crmlp-header.opened .crmlp-header__hamburger span:after {
    top: 0;
    transform: rotate(-45deg);
}

/* =====================================================
   Main Content Adjustment
   ===================================================== */

body.crmlp-page {
    max-width: none !important;
    width: 100% !important;
    overflow-x: hidden;
}

.crmlp-main {
    padding-top: 0;
    max-width: none !important;
    width: 100% !important;
}

.crmlp-content {
    max-width: none !important;
    width: 100% !important;
}

/* セクション背景色を画面端まで広げる */
.crmlp-page .campaign-chp1,
.crmlp-page .campaign-chp2,
.crmlp-page .campaign-chp3,
.crmlp-page .campaign-chp4 {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* グラデーション背景 */
.crmlp-page .c-gradinet {
    background: linear-gradient(30deg, #e3f3fb 10%, #edf9e1 20%, #fff5db 25%, #edf9e1 60%, #e3f3fb);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* chp4 背景色 */
.crmlp-page .campaign-chp4 {
    background: #fffbed;
}

/* セクション内のコンテンツ幅を制限（元ページの .c-inner と同等） */
.crmlp-page .campaign-chp1-inner,
.crmlp-page .campaign-chp2-inner,
.crmlp-page .campaign-chp3-inner,
.crmlp-page .campaign-chp4-inner {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* btnform と campaign-faq のコンテンツ幅を制限 */
.crmlp-page .btnform {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.crmlp-page .btnform__inner,
.crmlp-page .campaign-faq {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* =====================================================
   WordPress wpautop対策
   空のリンクと余分なpタグを非表示
   ===================================================== */

/* 空のアンカーリンクを非表示 */
.campaign-chp1-anchor__link:empty {
    display: none !important;
}

/* コンテンツがない／無効なアンカーリンクを非表示（hrefがない／空の場合） */
.campaign-chp1-anchor__link:not([href]),
.campaign-chp1-anchor__link[href=""] {
    display: none !important;
}

/* wpautopが追加する余分なpタグを非表示 */
.campaign-chp1-anchor > p {
    display: none !important;
}

/* =====================================================
   Footer
   ===================================================== */

.crmlp-footer {
    background-color: transparent;
    padding: 16px;
    margin-top: 0;
}

.crmlp-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.crmlp-footer__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.crmlp-footer__logos li a {
    display: block;
}

.crmlp-footer__logos li img {
    display: block;
}

/* フッターロゴサイズ（オリジナルに合わせる） */
.crmlp-footer__logos li:nth-child(1) img {
    width: 90px;
    height: 42px;
}

.crmlp-footer__logos li:nth-child(2) img {
    width: 90px;
    height: 27px;
}

.crmlp-footer__logos li:nth-child(3) img {
    width: 60px;
    height: 60px;
}

.crmlp-footer__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.crmlp-footer__links li a {
    color: #2a386b;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.crmlp-footer__links li a:hover {
    color: #00a0e9;
    text-decoration: underline;
}

.crmlp-footer__copyright {
    color: #666;
    font-size: 12px;
    line-height: 1.8;
    margin: 0;
}

/* =====================================================
   Responsive - Mobile (SPモード)
   元ページのブレークポイント: 667px
   ===================================================== */
/* =====================================================
   Responsive - Header (ヘッダーのみ 1080px で切り替え)
   ===================================================== */
@media screen and (max-width: 1080px) {
    .crmlp-header {
        height: 60px;
    }

    .crmlp-header__nav {
        align-items: center;
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 48px;
        height: 100vh;
        height: 100dvh;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        transition: transform 0.4s ease-out;
        width: 100%;
        z-index: 999;
    }

    .crmlp-header__list {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .crmlp-header__cv {
        display: flex;
    }

    .crmlp-header__sp {
        display: flex;
    }
}

@media screen and (max-width: 667px) {
    .crmlp-footer__logos {
        flex-wrap: wrap;
        gap: 20px;
    }

    .crmlp-footer__links {
        flex-direction: column;
        gap: 10px;
    }

    .crmlp-footer__copyright {
        font-size: 11px;
    }

    /* モバイルでセクション内コンテンツ幅を調整 */
    .crmlp-page .campaign-inner {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* chp2は構造が異なるため、innerのパディングは不要 */
    .crmlp-page .campaign-chp2-inner {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* btnform と campaign-faq のモバイル用スタイル */
    .crmlp-page .btnform {
        max-width: 100vw !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .crmlp-page .btnform__inner {
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .crmlp-page .campaign-faq {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* =====================================================
   Btnform (CTAボタンセクション)
   ===================================================== */

.btnform__inner {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btnform__copy {
    align-items: flex-end;
    color: #142a77;
    display: flex;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 38px;
    margin: 0 auto;
    position: relative;
    text-align: center;
    width: fit-content;
}

.btnform__copy:after,
.btnform__copy:before {
    background: #142a77;
    content: '';
    display: block;
    height: 60px;
    width: 1px;
}

.btnform__copy:before {
    margin: 0 30px 0 0;
    transform: rotate(-30deg);
}

.btnform__copy:after {
    margin: 0 0 0 30px;
    transform: rotate(30deg);
}

.btnform__copy-br {
    display: inline-block;
    margin: 0 0 0 -0.3em;
}

.btnform__person {
    display: grid;
    gap: 56px;
    grid-template-columns: 1fr 1fr;
    margin: -4px auto 12px;
    list-style: none;
    padding: 0;
}

.btnform__person li {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.btnform__person img {
    width: 100px;
}

.btnform__person span {
    color: #142a77;
    font-size: 14px;
    font-weight: 500;
    line-height: 30px;
}

.btnform__button {
    background: #0dc569;
    border-radius: 9999px;
    box-shadow: 0 1px 8px #bbb;
    color: #fff;
    display: grid;
    font-size: 20px;
    font-weight: 500;
    height: 80px;
    letter-spacing: 3px;
    line-height: 32px;
    max-width: 426px;
    padding: 0 0 2px;
    place-items: center;
    text-align: center;
    text-decoration: none;
    width: 100%;
    transition: all 0.3s ease;
}

.btnform__button:hover {
    background: #fff;
    border: 1px solid #0dc569;
    color: #0dc569;
}

.btnform--1 {
    padding: 40px 0 104px;
}

.btnform--2,
.btnform--3 {
    padding: 40px 0 64px;
}

.btnform--4 {
    padding: 32px 0 64px;
}

.btnform--5 {
    padding: 40px 0 64px;
}

/* Btnform Responsive */
@media screen and (max-width: 667px) {
    .btnform__copy--tripple:after,
    .btnform__copy--tripple:before {
        height: 86px;
    }

    .btnform__copy-br {
        display: block;
        margin: 0;
    }

    .btnform {
        padding: 40px 0 56px !important;
    }
}

.crmlp-form {
  width: calc(100% - 32px);
}

.campaign-btnform__balloon {
  @media screen and (max-width: 667px) {
    width: calc(100% - 36px);
  }
}

.campaign-chp4 .campaign-btnform__balloon {
  @media screen and (max-width: 667px) {
    width: min(100%, 472px);
  }
}

