/* freee連携 説明ページ (/freeerenkei) */
html { scroll-behavior: smooth; }

.fl {
    --fl-blue: #2864F0;
    --fl-blue-light: #EBF3FF;
    --fl-gray-bg: #F2F2F2;
    --fl-gray-border: #ACACAC;
    --fl-text: #1A1A1C;
    --fl-text-sub: #5A5A5A;
    --fl-grad: linear-gradient(90deg, #E60000 0%, #A50082 100%);
    color: var(--fl-text);
    font-family: "Noto Sans JP", "ヒラギノ角ゴシック", "メイリオ", sans-serif;
    line-height: 1.7;
    font-weight: 350;
    overflow-x: hidden;
}
.fl img { max-width: 100%; }
.fl a:hover { text-decoration: none; }

.fl-container {
    width: calc(100% - 80px);
    max-width: 1200px;
    margin: 0 auto;
}
@media screen and (min-width: 1440px) {
    .fl-container { max-width: 1140px; }
}

/* 見出し */
.fl-h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.fl-h2::after {
    content: "";
    display: block;
    width: 104px;
    height: 8px;
    margin: 8px auto 0;
    background: var(--fl-grad);
}
.fl-lead { margin: 24px 0 0; text-align: center; font-size: 16px; }

/* ボタン */
.fl-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 56px;
    padding: 0 30px;
    border: 1px solid #F7D54D;
    border-radius: 8px;
    background: linear-gradient(90deg, #F7D54D 52%, #EB9042 100%);
    color: #333;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
}
.fl-btn-cta small { font-size: 14px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.fl-kv-btns .fl-btn-cta { color: #000; line-height: 1.2; }
.fl-kv-btns .fl-btn-cta:hover { color: #000; }
.fl-btn-cta:hover { color: #333; opacity: .6; }
.fl-btn-sub {
    min-width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 56px;
    padding: 0 22px;
    border: 1px solid var(--fl-gray-border);
    border-radius: 8px;
    background: #fff;
    color: var(--fl-text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}
.fl-btn-sub:hover { color: var(--fl-text); opacity: .6; }
.fl-btn-sub::after {
    content: "";
    width: 6px;
    height: 6px;
    margin: -4px 0 0 4px;
    border-right: 2px solid #E60000;
    border-bottom: 2px solid #E60000;
    transform: rotate(45deg);
}

/* KV */
.fl-kv {
    position: relative;
    height: 482px;
    overflow: hidden;
    background: linear-gradient(90deg, #FDFDFD 0%, #F2F2F2 100%);
}
.fl-kv-inner {
    position: relative;
    width: calc(100% - 80px);
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}
.fl-kv-copy { position: absolute; z-index: 1; top: 108px; left: 0; width: 660px; }
.fl-kv-h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .03em;
}
.fl-kv-list { display: flex; gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.fl-kv-list li {
    width: 296px;
    display: flex;
    gap: 8px;
    color: #E60000;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.36;
}
.fl-kv-list li::before {
    content: "";
    flex: none;
    width: 8px;
    height: 14px;
    margin: 5px 6px 0 4px;
    border-right: 3px solid #E60000;
    border-bottom: 3px solid #E60000;
    transform: rotate(40deg);
}
.fl-kv-btns { display: flex; gap: 12px; margin-top: 32px; }
.fl .fl-kv-picture {
    position: absolute;
    z-index: 0;
    top: -135px;
    left: calc(50% - 97px);
    width: 797px;
    max-width: none;
}
@media screen and (min-width: 1440px) {
    .fl-kv-inner { max-width: 1366px; }
    .fl .fl-kv-picture { top: -190px; left: calc(50% + 807px - 917px); width: 917px; }
}

/* おすすめ */
.fl-recommend { padding: 80px 0 80px; background: #fff; }
.fl-title-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.fl-title-logo img { width: 576px; height: auto; }
.fl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 64px 0 0; padding: 0; list-style: none; }
.fl-card {
    position: relative;
    padding: 25px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #E60012 70%, #A50082 100%) border-box;
    background-origin: padding-box, border-box;
}
.fl-card { min-height: 306px; }
.fl-card-check {
    display: block;
    width: 40px;
    height: 40px;
    margin: 8px auto 8px;
}
.fl-card-title { margin: 16px 0 24px; font-size: 24px; font-weight: 700; line-height: 1.5; text-align: center; }
.fl-card-text { margin: 0; font-size: 16px; line-height: 1.7; }
.fl-nowrap { white-space: nowrap; }
.fl-caption { margin: 24px 0 0; color: var(--fl-text-sub); font-size: 16px; line-height: 1.7; }

/* 可能性 */
.fl-benefit { padding: 80px 0 80px; background: var(--fl-gray-bg); }
.fl-panel { margin-top: 24px; background: #fff; border-top: 8px solid transparent; border-image: var(--fl-grad) 1; padding: 40px; }
.fl-points { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fl-point { padding: 0 32px; }
.fl-point-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    background: var(--fl-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.fl-point-title {
    margin: 8px 0 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #E60012;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.fl-point-text { margin: 15px 0 0; font-size: 16px; }

.fl-mech { position: relative; margin-top: 72px; padding: 34px 0 9px; border: 1px solid var(--fl-gray-border); border-radius: 16px; }
.fl-mech-head {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 35px;
    background: #fff;
}
.fl .fl-mech-head img { display: block; width: 576px; max-width: none; height: auto; }
.fl-mech-title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; text-align: center; }
.fl-mech-lead { margin: 35px 32px 0; font-size: 16px; }
.fl-mech-img { display: block; width: 902px; max-width: calc(100% - 64px); height: auto; margin: 33px auto 0; }
.fl-arrow { display: block; width: 44px; height: 28px; margin: 40px auto; }

.fl-effect { display: flex; gap: 40px; align-items: flex-start; }
.fl-effect-body { flex: 0 0 535px; max-width: 535px; }
.fl-effect-title { margin: 0; color: #E60000; font-size: 24px; font-weight: 700; line-height: 1.5; }
.fl-effect-text { margin: 24px 0 0; font-size: 16px; }
.fl-effect-note { margin: 24px 0 0; color: var(--fl-text-sub); font-size: 16px; }
.fl-effect-photo { flex: 1; min-width: 0; }
.fl-effect-photo img { display: block; width: 485px; max-width: 100%; height: auto; margin-left: auto; }

.fl-about { margin-top: 48px; border: 1px solid var(--fl-blue); border-radius: 14px; overflow: hidden; background: var(--fl-blue-light); }
.fl-about-title { margin: 0; padding: 16px 8px; color: var(--fl-blue); font-size: 24px; font-weight: 700; line-height: 1.5; text-align: center; }
.fl-about-body { display: flex; gap: 32px; align-items: center; margin: 0 1px 1px; padding: 24px 32px; background: #fff; }
.fl-about-logo { flex: none; display: flex; align-items: center; justify-content: center; width: 300px; height: 184px; border: 1px solid #DCDCDC; background: #fff; }
.fl-about-logo img { width: 239px; height: auto; }
.fl-about-text p { margin: 0; font-size: 16px; }
.fl-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    color: #E60000;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .04em;
}
.fl-ext-link:hover { color: #E60000; text-decoration: underline !important; }
.fl-ext-link img { width: 20px; height: 20px; }

/* CTA帯 */
.fl-band { padding: 48px 0 57px; background: linear-gradient(90deg, #E60000 32%, #A50082 100%); color: #fff; text-align: center; }
.fl-band-title { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.5; }
.fl-band-sub { margin: 8px 0 0; font-size: 24px; font-weight: 700; line-height: 1.5; }
.fl-band-btns { display: flex; justify-content: center; gap: 40px; margin-top: 32px; }
.fl-band .fl-btn-cta { width: 328px; }
.fl-band .fl-btn-sub { border-color: #E60000; border-radius: 8px; color: #E60000; font-size: 16px; width: 226px; padding: 0; }

/* 連携方法の流れ */
.fl-flow { padding: 80px 0 64px; background: #fff; scroll-margin-top: 100px; }
.fl-flow-body { margin-top: 72px; }
.fl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fl-step {
    position: relative;
    border: 4px solid transparent;
    border-radius: 20px;
    background: linear-gradient(#fff, #fff) padding-box, var(--fl-grad) border-box;
    background-origin: padding-box, border-box;
    overflow: visible;
}
.fl-step-no {
    position: absolute;
    top: -26px;
    left: 50%;
    width: 52px;
    height: 52px;
    margin-left: -26px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E60000 32%, #A50081 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 52px;
    text-align: center;
}
.fl-step { min-height: 307px; }
.fl-step-head { display: flex; align-items: flex-start; justify-content: center; box-sizing: border-box; min-height: 108px; padding: 32px 16px 16px; border-radius: 16px 16px 0 0; background: var(--fl-gray-bg); }
.fl-step-title { margin: 0; color: #212529; font-size: 22px; font-weight: 700; line-height: 1.36; text-align: center; }
.fl-step-text { margin: 0; padding: 16px 16px 24px; color: #000; font-size: 16px; line-height: 1.7; }
.fl-step-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: -8px;
    padding: 0 16px 24px;
    color: #E60000;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.2;
}
.fl-step-link::after {
    content: "";
    flex: none;
    width: 20px;
    height: 20px;
    background: url("../freee_lp/img/link_chevron.svg") center / 6.13px 9.41px no-repeat;
    transform: rotate(90deg);
}
.fl-step-link:hover { color: #E60000; opacity: .6; }
.fl-flow-bar { display: flex; margin-top: 24px; height: 54px; font-size: 20px; font-weight: 700; line-height: 1.5; text-align: center; }
.fl-flow-bar > span { display: flex; align-items: center; justify-content: center; }
.fl-flow-bar-biz { flex: 0 0 51.8%; position: relative; padding-right: 32px; background: var(--fl-grad); color: #fff; }
.fl-flow-bar-biz::after {
    content: "";
    position: absolute;
    top: 0;
    right: -16px;
    border-top: 27px solid transparent;
    border-bottom: 27px solid transparent;
    border-left: 16px solid #A50082;
}
.fl-flow-bar-freee { flex: 1; background: var(--fl-blue-light); color: var(--fl-blue); }

.fl-related { margin-top: 24px; padding: 24px; border: 1px solid var(--fl-gray-border); border-radius: 8px; }
.fl-related-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 20px; font-weight: 700; line-height: 1.5; }
.fl-related-title::before {
    content: "";
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1A1C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.fl-related-list { margin: 0; padding: 0; list-style: none; }
.fl-related-list li { margin-bottom: 8px; }
.fl-related-list li:last-child { margin-bottom: 0; }
.fl-related-list a {
    position: relative;
    display: block;
    padding-left: 24px;
    color: #E60000;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
    line-height: 1.2;
}
.fl-related-list a::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--fl-text);
}
.fl-related-list a:hover { color: #E60000; opacity: .6; }
.fl-related-list a img { display: inline-block; width: 20px; height: 20px; margin: -2px 0 0 4px; vertical-align: middle; }

/* 同意選択 */
.fl-consent { padding: 0 0 80px; background: #fff; scroll-margin-top: 100px; }
.fl-consent-title { display: flex; align-items: center; gap: 24px; margin: 0; font-size: 24px; font-weight: 700; line-height: 1.5; text-align: center; }
.fl-consent-title::before, .fl-consent-title::after { content: ""; flex: 1; height: 1.5px; background: #ACACAC; }
.fl-consent-lead { margin: 32px 0 0; font-size: 16px; }
.fl-consent-lead-em { color: #E60000; }
.fl-consent-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 24px 0 0; padding: 0; list-style: none; }
.fl-consent-head { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; }
.fl-consent-no {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E60000;
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}
.fl-consent-cond { margin: 4px 0 0; color: var(--fl-text-sub); font-size: 14px; line-height: 1.7; }
.fl-consent-img { display: block; width: 100%; height: auto; margin-top: 16px; background: var(--fl-gray-bg); }
.fl-consent-text { margin: 16px 0 0; font-size: 16px; }

/* プレスリリース */
.fl-press { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 88px; padding: 24px 80px; background: var(--fl-gray-bg); color: var(--fl-text); font-size: 16px; }
.fl-press:hover { color: var(--fl-text); text-decoration: underline !important; }
.fl-press img { width: 20px; height: 20px; flex: none; }

/* ページトップ: 紹介ページと同じ位置 (ab_new_style_v2.css の .back-top) */

@media screen and (max-width: 1023px) {
    .fl-steps { grid-template-columns: repeat(2, 1fr); }
    .fl-consent-list { gap: 24px; }
    .fl-effect { flex-direction: column; }
    .fl-effect-body { flex: none; max-width: none; }
    .fl-effect-photo img { margin: 0 auto; }
}

@media screen and (max-width: 767px) {
    .fl-container { width: calc(100% - 32px); }
    .fl-h2 { font-size: 32px; }

    .fl-kv { height: 526px; background: #fff url('../freee_lp/img/hero_bg_sp.png') center top / 390px 526px no-repeat; }
    .fl-kv-inner { width: 100%; }
    .fl-kv-copy { top: 40px; left: 0; width: 100%; padding: 0 16px; text-align: center; }
    .fl-kv-h1 { font-size: 24px; letter-spacing: .06em; }
    .fl-kv-list li { width: auto; }
    .fl-kv-list { display: block; width: 220px; margin: 16px auto 0; text-align: left; }
    .fl-kv-list li { font-size: 16px; line-height: 1.7; }
    .fl-kv-list li::before { width: 6px; height: 11px; margin: 3px 4px 0 6px; }
    .fl .fl-kv-picture { top: 87px; left: 50%; width: 397px; transform: translateX(-50%); }
    .fl-kv-btns { position: absolute; z-index: 1; top: 346px; left: 0; width: 100%; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 0 16px; }
    .fl-kv-btns .fl-btn-cta { width: 100%; max-width: 328px; height: 48px; padding: 0 20px; font-size: 16px; }
    .fl-kv-btns .fl-btn-sub { height: 48px; padding: 0 20px; font-size: 16px; }
    .fl-kv-btns .fl-btn-cta, .fl-kv-btns .fl-btn-sub { border-radius: 5.7px; }
    .fl-kv-btns .fl-btn-cta, .fl-kv-btns .fl-btn-cta:hover { color: #333; }
    .fl-kv-btns .fl-btn-sub { letter-spacing: .03em; }
    .fl-ext-link { font-weight: 700; letter-spacing: .03em; }

    .fl-recommend { padding: 24px 0; }
    .fl-title-logo { margin-bottom: 4px; }
    .fl-title-logo img { width: 347px; }
    .fl-cards { grid-template-columns: 1fr; gap: 8px; margin-top: 40px; }
    .fl-card { min-height: 0; padding: 16px; }
    .fl-card-check { width: 28px; height: 28px; margin: 0 auto 8px; }
    .fl-card-title { margin: 0 0 8px; font-size: 20px; }
    .fl-caption { margin-top: 16px; font-size: 12px; font-weight: 400; line-height: 1.5; }

    .fl-benefit { padding: 64px 0; }
    .fl-lead { margin-top: 24px; }
    .fl-panel { padding: 24px 16px 40px; }
    .fl-points { grid-template-columns: 1fr; gap: 24px; }
    .fl-point { padding: 0 8px; }
    .fl-point-title { font-size: 20px; }
    .fl-mech { margin-top: 80px; padding: 5px 0 8px; }
    .fl-mech-head { top: -24px; padding: 0 16px; }
    .fl .fl-mech-head img { width: 276px; }
    .fl-mech-title { font-size: 20px; }
    .fl-mech-lead { margin: 24px 16px 0; font-size: 14px; }
    .fl-mech-img { width: 308px; max-width: calc(100% - 16px); margin-top: 33px; }
    .fl-arrow { width: 41px; height: 28px; margin: 0 auto 13px; }
    .fl-effect { gap: 24px; }
    .fl-effect-photo { order: -1; width: 100%; }
    .fl-effect-photo img { width: 310px; height: 224px; object-fit: cover; }
    .fl-effect-body { padding: 0 8px; }
    .fl-effect-title { font-size: 24px; text-align: center; }
    .fl-effect-note { margin-top: 22px; font-size: 12px; font-weight: 400; line-height: 1.5; }
    .fl-about { margin-top: 16px; }
    .fl-about-title { font-size: 18px; line-height: 1.5; }
    .fl-about-body { flex-direction: column; gap: 16px; padding: 24px; }
    .fl-about-logo { width: 100%; height: 128px; }
    .fl-ext-link { display: flex; justify-content: center; width: fit-content; margin: 16px auto 0; }

    .fl-band { padding: 48px 0; }
    .fl-band .fl-container { width: 369px; max-width: 100%; }
    .fl-band-title { font-size: 28px; }
    .fl-band-sub { font-size: 18px; }
    .fl-band-btns { flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
    .fl-band .fl-btn-cta { width: 100%; max-width: 328px; font-size: 18px; padding: 0 16px; }

    .fl-flow { padding: 64px 0; }
    .fl-flow-body { display: grid; grid-template-columns: 38px 1fr; column-gap: 16px; margin-top: 63px; }
    .fl-steps { display: block; grid-column: 2; grid-row: 1; margin: 0; }
    .fl-step { margin-bottom: 24px; }
    .fl-step:last-child { margin-bottom: 0; }
    .fl-step { border-width: 6px; }
    .fl-step-no { top: -18px; width: 32px; height: 32px; margin-left: -16px; font-size: 16px; line-height: 32px; }
    .fl-step-head { min-height: 82px; padding: 16px 16px 12px; }
    .fl-step-title { font-size: 18px; line-height: 1.5; }
    .fl-step-text { padding: 12px; font-size: 14px; }
    .fl-step-link { display: none; }
    .fl-flow-bar { grid-column: 1; grid-row: 1; flex-direction: column; height: auto; margin: 0; font-size: 16px; line-height: 1.13; }
    .fl-flow-bar-biz { padding-right: 0; }
    .fl-flow-bar > span { flex: 1; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0; line-height: 1.13; }
    .fl-flow-bar-biz::after { top: auto; right: 0; bottom: -16px; border-top: 16px solid #A50082; border-right: 19px solid transparent; border-bottom: 0; border-left: 19px solid transparent; }
    .fl-related { margin-top: 28px; padding: 16px; }
    .fl-related-title { font-size: 18px; }
    .fl-related-list a { font-size: 14px; line-height: 1.2; letter-spacing: 0; }
    .fl-related-list li { margin-bottom: 7px; }
    .fl-related-list a img { width: 12px; height: 12px; margin: -2px -6px 0 1px; }
    .fl-kv-btns .fl-btn-sub, .fl-band .fl-btn-sub { min-width: 218px; }

    .fl-consent { padding-bottom: 64px; }
    .fl-consent-title { font-size: 20px; gap: 8px; }
    .fl-consent-lead { margin-top: 24px; font-size: 14px; }
    .fl-consent-list { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
    .fl-consent-head { font-size: 16px; line-height: 1.7; }
    .fl-consent-cond { margin-top: 0; }
    .fl-consent-text { font-size: 14px; }

    .fl-press { display: block; min-height: 0; padding: 24px; font-size: 14px; font-weight: 500; line-height: 1.2; }
    .fl-press span { line-height: 1.2; }
    .fl-press img { display: inline-block; margin: -2px 0 0 4px; vertical-align: middle; }
    .fl-recommend .fl-container, .fl-consent .fl-container { width: calc(100% - 48px); }
    .fl-step { min-height: 0; }
}
