@charset "UTF-8";

/* ==============================
   基本設定
============================== */

.sb-page {
    --sb-navy: #354b70;
    --sb-blue: #7189bb;
    --sb-ivory: #fbf8f2;
    --sb-pale: #eaf0f6;
    --sb-line: #cbd3df;
    --sb-text: #535e6e;
    --sb-gold: #e9ca88;
    --sb-serif: "Yu Mincho", "Hiragino Mincho ProN", serif;

    margin: 0;
    background: #fff;
    color: var(--sb-navy);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN",
        "Meiryo", sans-serif;
    -webkit-text-size-adjust: 100%;
}

.sb-page *,
.sb-page *::before,
.sb-page *::after {
    box-sizing: border-box;
}

.sb-page a {
    color: inherit;
}

.sb-page img {
    max-width: 100%;
    height: auto;
}

.sb-page :focus-visible {
    outline: 2px solid var(--sb-blue);
    outline-offset: 5px;
}

.sb-page main {
    overflow: clip;
}

.sb-page main h1,
.sb-page main h2,
.sb-page main h3,
.sb-page main p {
    margin: 0;
}

.sb-page main h2 {
    font-family: var(--sb-serif);
    font-size: clamp(27px, 2.7vw, 37px);
    font-weight: 500;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.sb-page main h2>span {
    display: block;
}

.sb-page main section[id] {
    scroll-margin-top: 110px;
}

.sb-container {
    width: min(1140px, calc(100% - 64px));
    margin-inline: auto;
}

.sb-section {
    padding-block: 95px;
}

.sb-eyebrow {
    font-size: 11px;
    line-height: 1.8;
    letter-spacing: 0.17em;
    font-weight: 500;
}

.sb-copy {
    color: var(--sb-text);
    font-size: 15px;
    line-height: 2.1;
    overflow-wrap: anywhere;
}

.sb-page main .sb-caption {
    margin-top: 25px;
    color: var(--sb-text);
    font-size: 12px;
    line-height: 1.9;
}

.sb-skip {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 10000;
    padding: 12px 20px;
    background: #fff;
    transform: translateY(-160%);
}

.sb-skip:focus {
    transform: translateY(0);
}

.sb-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 100%;
    min-height: 48px;
    padding-block: 12px;
    border-bottom: 1px solid var(--sb-blue);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}

.sb-text-link>span {
    flex: 0 0 auto;
    transition: transform 220ms ease;
}

.sb-sp-break {
    display: none;
}

@media (hover: hover) {
    .sb-text-link:hover>span {
        transform: translateX(5px);
    }
}

/* ==============================
   ヒーロー
============================== */

.sb-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 25px 0 75px;
    background: var(--sb-ivory);
}

.sb-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--sb-text);
    font-size: 11px;
    line-height: 1.8;
}

.sb-breadcrumb li+li::before {
    content: "/";
    margin-right: 12px;
    color: var(--sb-blue);
}

.sb-breadcrumb a {
    text-decoration: none;
}

.sb-hero-heading {
    padding-top: 75px;
}

.sb-page main .sb-hero h1 {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.8;
}

.sb-page main .sb-hero-message {
    margin-top: 35px;
    font-family: var(--sb-serif);
    font-size: clamp(34px, 4.1vw, 56px);
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.sb-hero-message>span {
    display: block;
}

.sb-accent {
    position: relative;
    display: inline-block;
    isolation: isolate;
}

.sb-accent::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    right: 0;
    bottom: 0.3em;
    height: 0.17em;
    background: var(--sb-gold);
    transform-origin: left;
    animation: sb-mark-in 1100ms 200ms ease both;
}

.sb-hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
}

.sb-round-link {
    display: flex;
    flex: 0 0 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 160px;
    height: 160px;
    border: 1px solid var(--sb-blue);
    border-radius: 50%;
    background: var(--sb-ivory);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.8;
    transition: color 250ms ease, background 250ms ease;
}

.sb-round-arrow {
    font-size: 22px;
    transition: transform 250ms ease;
}

.sb-hero-words {
    position: absolute;
    z-index: -1;
    right: -25px;
    bottom: -25px;
    color: rgb(53 75 112 / 4%);
    font-size: clamp(70px, 10vw, 160px);
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

@media (hover: hover) {
    .sb-round-link:hover {
        color: #fff;
        background: var(--sb-navy);
    }

    .sb-round-link:hover .sb-round-arrow {
        transform: translateY(4px);
    }
}

@keyframes sb-mark-in {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ==============================
   見出し
============================== */

.sb-heading {
    margin-bottom: 42px;
}

.sb-page main .sb-heading h2 {
    margin-top: 22px;
}

.sb-page main .sb-heading>.sb-copy {
    margin-top: 22px;
}

.sb-heading-wide {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
}

/* ==============================
   相談目的：横長の行
============================== */

.sb-purpose-list {
    border-top: 1px solid var(--sb-line);
}

.sb-purpose-row {
    display: grid;
    grid-template-columns: 55px 200px minmax(0, 1fr) 100px;
    align-items: center;
    gap: 28px;
    padding: 32px 10px;
    border-bottom: 1px solid var(--sb-line);
}

.sb-purpose-number {
    font-family: var(--sb-serif);
    color: var(--sb-blue);
    font-size: 29px;
}

.sb-page main .sb-purpose-row h3 {
    font-family: var(--sb-serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.7;
}

.sb-purpose-row>p {
    color: var(--sb-text);
    font-size: 14px;
    line-height: 2;
}

.sb-purpose-tag {
    justify-self: end;
    padding: 6px 12px;
    border: 1px solid var(--sb-line);
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
}

/* ==============================
   相談する時期
============================== */

.sb-timing {
    padding-block: 60px;
    background: var(--sb-navy);
    color: #fff;
}

.sb-timing-inner {
    text-align: center;
}

.sb-page main .sb-timing h2 {
    margin: 20px 0;
}

.sb-timing .sb-eyebrow {
    color: var(--sb-gold);
}

.sb-timing .sb-copy {
    color: #e4e9f0;
}

.sb-timing .sb-text-link {
    margin-top: 20px;
    border-color: var(--sb-gold);
}

/* ==============================
   工程：PCは横方向
============================== */

.sb-process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 50px 0 0;
    padding: 0;
    list-style: none;
}

.sb-process>li {
    --sb-progress: 0;
    min-width: 0;
}

.sb-process-top {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--sb-line);
}

.sb-process-top::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--sb-blue);
    transform: scaleX(var(--sb-progress));
    transform-origin: left;
}

.sb-step-number {
    font-family: var(--sb-serif);
    color: var(--sb-blue);
    font-size: 41px;
    line-height: 1;
}

.sb-step-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sb-line);
    transition: background 250ms ease, box-shadow 250ms ease;
}

.is-active .sb-step-dot {
    background: #c6a15c;
    box-shadow: 0 0 0 5px rgb(233 202 136 / 25%);
}

.sb-page main .sb-process h3 {
    margin: 25px 0 15px;
    font-family: var(--sb-serif);
    font-size: 23px;
    font-weight: 500;
    line-height: 1.7;
}

.sb-process li>p {
    color: var(--sb-text);
    font-size: 14px;
    line-height: 2;
}

.sb-process small {
    display: block;
    margin-top: 22px;
    font-size: 11px;
    line-height: 1.8;
    color: var(--sb-navy);
}

/* ==============================
   確認する資料
============================== */

.sb-preparation {
    padding-block: 65px;
    background: var(--sb-pale);
}

.sb-page main .sb-preparation h2 {
    margin: 20px 0;
    font-size: 30px;
}

.sb-preparation>.sb-container>.sb-copy {
    max-width: 850px;
}

.sb-document-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 35px 0 0;
}

.sb-document-list>div {
    padding-left: 22px;
    border-left: 2px solid var(--sb-blue);
}

.sb-document-list dt {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.8;
}

.sb-document-list dd {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.9;
    color: var(--sb-text);
}

/* ==============================
   料金
============================== */

.sb-fee-board {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    border-top: 1px solid var(--sb-line);
    border-bottom: 1px solid var(--sb-line);
}

.sb-fee-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    padding-right: 55px;
}

.sb-fee-side>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 35px;
}

.sb-fee-side>div+div {
    border-top: 1px solid var(--sb-line);
}

.sb-fee-label {
    font-size: 15px;
    line-height: 1.8;
}

.sb-fee-small-value {
    font-family: var(--sb-serif);
    font-size: 34px;
    line-height: 1.5;
}

.sb-fee-main {
    padding: 40px 45px;
    background: var(--sb-ivory);
}

.sb-fee-amount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 15px;
    margin: 12px 0;
}

.sb-fee-prefix {
    font-size: 18px;
}

.sb-fee-amount strong {
    font-family: var(--sb-serif);
    font-size: clamp(76px, 8vw, 110px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

.sb-fee-amount strong>span {
    font-size: 0.42em;
    margin-left: 6px;
}

.sb-fee-tax {
    font-size: 12px;
    line-height: 1.9;
    color: var(--sb-text);
}

.sb-page main .sb-fee-payment {
    margin-top: 23px;
    padding-top: 17px;
    border-top: 1px solid var(--sb-line);
    font-size: 14px;
    line-height: 1.8;
}

.sb-fee-notes {
    display: grid;
    gap: 12px;
    margin-top: 25px;
    max-width: 950px;
    font-size: 13px;
    line-height: 1.9;
    color: var(--sb-text);
}

/* ==============================
   FAQ
============================== */

.sb-faq-section {
    padding: 75px 0 90px;
    background: var(--sb-ivory);
}

.sb-faq {
    border-top: 1px solid var(--sb-line);
}

.sb-faq details {
    border-bottom: 1px solid var(--sb-line);
}

.sb-faq summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 20px;
    padding: 25px 10px;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.9;
}

.sb-faq summary::-webkit-details-marker {
    display: none;
}

.sb-faq summary i {
    position: relative;
    width: 16px;
    height: 16px;
}

.sb-faq summary i::before,
.sb-faq summary i::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 0;
    width: 16px;
    height: 1px;
    background: var(--sb-blue);
}

.sb-faq summary i::after {
    transform: rotate(90deg);
    transition: transform 200ms ease;
}

.sb-faq details[open] summary i::after {
    transform: rotate(0);
}

.sb-faq details>div {
    max-width: 950px;
    padding: 0 40px 25px 10px;
    color: var(--sb-text);
    font-size: 14px;
    line-height: 2;
}

/* ==============================
   お問い合わせ
============================== */

.sb-cta {
    padding-block: 80px;
}

.sb-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

.sb-page main .sb-cta h2 {
    margin: 20px 0;
    font-size: clamp(25px, 2.5vw, 33px);
}

.sb-cta-actions {
    flex-shrink: 0;
    text-align: center;
}

.sb-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    max-width: 100%;
    padding: 22px 28px;
    background: var(--sb-navy);
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
    transition: background 250ms ease;
}

.sb-button>span {
    flex: 0 0 auto;
}

.sb-back-link {
    display: block;
    width: fit-content;
    margin: 22px auto 0;
    font-size: 12px;
    text-underline-offset: 5px;
}

@media (hover: hover) {
    .sb-button:hover {
        background: #49638d;
    }
}

/* ==============================
   タブレット
============================== */

@media (max-width: 1050px) {
    .sb-purpose-row {
        grid-template-columns: 40px 170px minmax(0, 1fr) 90px;
        gap: 20px;
    }

    .sb-heading-wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .sb-process {
        gap: 20px;
    }

    .sb-page main .sb-process h3 {
        font-size: 21px;
    }

    .sb-fee-side {
        padding-right: 30px;
    }

    .sb-fee-main {
        padding-inline: 30px;
    }

    .sb-cta-inner {
        gap: 30px;
    }
}

@media (max-width: 900px) {
    .sb-section {
        padding-block: 70px;
    }

    .sb-hero-heading {
        padding-top: 50px;
    }

    .sb-purpose-row {
        grid-template-columns: 35px minmax(0, 1fr) auto;
        gap: 12px 20px;
    }

    .sb-purpose-row>p {
        grid-column: 2 / -1;
        grid-row: 2;
    }

    .sb-purpose-tag {
        grid-column: 3;
        grid-row: 1;
    }

    /* 2列にせず、工程順が分かる縦並びに */
    .sb-process {
        grid-template-columns: 1fr;
        gap: 35px;
        max-width: 650px;
        margin-inline: auto;
    }

    .sb-process-top {
        padding-bottom: 16px;
    }

    .sb-page main .sb-process h3 {
        margin-top: 20px;
        font-size: 25px;
    }

    .sb-process small {
        margin-top: 14px;
    }

    .sb-document-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .sb-fee-board {
        grid-template-columns: 1fr;
    }

    .sb-fee-side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 30px;
        padding-right: 0;
    }

    .sb-fee-side>div+div {
        border-top: 0;
    }

    .sb-fee-main {
        padding: 35px;
    }

    .sb-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .sb-cta-actions {
        text-align: left;
    }

    .sb-back-link {
        margin-left: 0;
    }
}

/* ==============================
   スマートフォン
============================== */

@media (max-width: 600px) {
    .sb-container {
        width: calc(100% - 40px);
    }

    .sb-section {
        padding-block: 55px;
    }

    .sb-page main section[id] {
        scroll-margin-top: 90px;
    }

    .sb-page main h2 {
        font-size: 25px;
        letter-spacing: 0.02em;
    }

    .sb-copy {
        font-size: 14px;
        line-height: 2;
    }

    .sb-sp-break {
        display: block;
    }

    .sb-hero {
        padding: 18px 0 45px;
    }

    .sb-breadcrumb ol {
        font-size: 10px;
        gap: 4px 8px;
    }

    .sb-breadcrumb li+li::before {
        margin-right: 8px;
    }

    .sb-hero-heading {
        padding-top: 40px;
    }

    .sb-page main .sb-hero h1 {
        font-size: 16px;
    }

    .sb-page main .sb-hero-message {
        margin-top: 28px;
        font-size: clamp(24px, 6.5vw, 36px);
        letter-spacing: 0;
        line-height: 1.9;
    }

    .sb-hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
        margin-top: 28px;
    }

    .sb-hero-bottom .sb-copy br {
        display: none;
    }

    .sb-round-link {
        flex-basis: auto;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        height: auto;
        padding: 18px 0;
        border: 0;
        border-top: 1px solid var(--sb-line);
        border-bottom: 1px solid var(--sb-line);
        border-radius: 0;
        background: transparent;
        text-align: left;
    }

    .sb-round-link br {
        display: none;
    }

    .sb-hero-words {
        font-size: 70px;
        bottom: -8px;
    }

    .sb-heading {
        margin-bottom: 30px;
    }

    .sb-purpose-row {
        grid-template-columns: 27px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 25px 0;
    }

    .sb-purpose-number {
        font-size: 23px;
    }

    .sb-page main .sb-purpose-row h3 {
        font-size: 22px;
    }

    .sb-purpose-tag {
        padding: 4px 8px;
        font-size: 10px;
    }

    .sb-purpose-row>p {
        font-size: 14px;
    }

    .sb-timing {
        padding-block: 45px;
    }

    .sb-timing .sb-copy br {
        display: none;
    }

    .sb-process {
        margin-top: 35px;
    }

    .sb-step-number {
        font-size: 35px;
    }

    .sb-page main .sb-process h3 {
        font-size: 23px;
    }

    .sb-preparation {
        padding-block: 50px;
    }

    .sb-page main .sb-preparation h2 {
        font-size: 25px;
    }

    .sb-document-list {
        margin-top: 28px;
    }

    .sb-document-list>div {
        padding-left: 18px;
    }

    .sb-fee-side {
        gap: 0;
    }

    .sb-fee-side>div {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 25px 15px 25px 0;
    }

    .sb-fee-side>div+div {
        padding-left: 20px;
        border-left: 1px solid var(--sb-line);
    }

    .sb-fee-label {
        font-size: 13px;
    }

    .sb-fee-small-value {
        font-size: 29px;
    }

    .sb-fee-main {
        padding: 28px 23px;
    }

    .sb-fee-prefix {
        font-size: 16px;
    }

    .sb-fee-amount {
        gap: 10px;
    }

    .sb-fee-amount strong {
        font-size: clamp(65px, 20vw, 90px);
    }

    .sb-faq-section {
        padding-block: 55px;
    }

    .sb-faq summary {
        padding: 22px 0;
        gap: 15px;
        font-size: 14px;
    }

    .sb-faq details>div {
        padding: 0 24px 24px 0;
    }

    .sb-cta {
        padding-block: 55px;
    }

    .sb-page main .sb-cta h2 {
        font-size: 24px;
        letter-spacing: 0;
    }

    .sb-cta-actions {
        width: 100%;
    }

    .sb-button {
        width: 100%;
        padding: 20px 22px;
        gap: 15px;
    }

    .sb-back-link {
        margin-inline: auto;
    }
}

/* 動きを控える設定に対応 */
@media (prefers-reduced-motion: reduce) {

    .sb-page *,
    .sb-page *::before,
    .sb-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   助成金ページ：スマホの改行調整
======================================== */

/* PCでは追加したspanで強制改行しない */
.sb-page main .sb-mobile-line {
    display: inline;
}

/* FAQの質問文の幅を確保 */
.sb-faq summary>span {
    min-width: 0;
}

@media (max-width: 600px) {

    /* スマホでは意味の区切りで改行 */
    .sb-page main .sb-mobile-line {
        display: block;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-break: strict;
    }

    /* 冒頭のメッセージ */
    .sb-page main .sb-hero-message {
        font-size: clamp(23px, 6.2vw, 32px);
        line-height: 1.85;
        letter-spacing: 0;
    }

    /* 支援の流れの見出し */
    .sb-page main #sb-process-title {
        font-size: clamp(22px, 5.8vw, 25px);
        line-height: 1.8;
        letter-spacing: 0;
    }

    /* FAQ */
    .sb-faq summary {
        gap: 12px;
        line-height: 1.9;
        letter-spacing: 0;
    }
}