/* 2026-09-11 Word改修指示に対応。既存CSSを維持し、変更箇所だけを調整。 */

/* ファーストビュー：長いリード文と4つの特徴を無理なく収める。 */
.hero__wrap { height: auto; min-height: 850px; padding-bottom: 64px; }
.hero__content { width: min(780px, 64%); margin-left: 5%; padding-top: 90px; }
.hero__content h2 { font-size: clamp(38px, 3.7vw, 60px); line-height: 1.55; letter-spacing: .1em; margin-bottom: 28px; }
.hero__lead { max-width: 700px; font-size: 16px; line-height: 1.9; margin-bottom: 28px; font-family: "Noto Sans JP", sans-serif; }
.hero__points { width: 100%; max-width: 720px; height: auto; margin-bottom: 32px; }
.hero__points li { height: auto; padding: 12px 10px; gap: 16px; justify-content: flex-start; }
.hero__points img, .hero__points li:last-child img { height: 58px; }
.hero__points span { font-size: 14px; line-height: 1.75; }

/* 選ばれる3つの理由：既存の交互配置・画像・配色を使用。 */
.lp-reasons .solution__head { padding-inline: 20px; }
.lp-reasons .solution__head h2 { font-size: clamp(26px, 3vw, 44px); line-height: 1.6; }
.lp-reasons .solution__head h2 span { font-size: 1.25em; }
.lp-reasons .solution__item-inner { width: 90%; max-width: 1300px; gap: 48px; }
.lp-reasons .solution__image { width: 43%; }
.lp-reasons .solution__image img { aspect-ratio: 1304 / 861; }
.lp-reasons .solution__content { width: 53%; }
.lp-reasons .solution__content h3 { width: auto; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.65; letter-spacing: .02em; padding-bottom: 24px; margin-bottom: 24px; }
/* 意味のまとまりを保ち、語尾だけの折り返しを防ぐ。 */
.lp-reason-phrase, .lp-case-heading-phrase { display: inline-block; white-space: nowrap; }
.lp-reasons .solution__content p { width: 100%; font-size: 16px; line-height: 1.95; }

/* 単価表・歓迎する方。数値と説明はindex.htmlで編集できます。 */
.lp-section-inner { max-width: 1120px; }
.lp-rates { padding: 80px 0; background: #eff5fe; }
.lp-rates h2, .lp-welcome h2 { color: #051c45; text-align: center; font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.6; margin-bottom: 16px; }
.lp-rates h2 span { display: block; font-family: "Noto Sans JP", sans-serif; font-size: 16px; font-weight: 500; margin-top: 8px; }
.lp-rate-basis { font: 14px/1.8 "Noto Sans JP", sans-serif; color: #40516b; text-align: center; margin-bottom: 28px; }
.lp-rate-table { width: 100%; border-collapse: collapse; background: #fff; font: 16px/1.8 "Noto Sans JP", sans-serif; }
.lp-rate-table th, .lp-rate-table td { padding: 22px 28px; border: 1px solid #d6dfea; text-align: left; vertical-align: middle; }
.lp-rate-table thead th { background: #0e3988; color: #fff; font-weight: 500; }
.lp-rate-table tbody th { width: 72%; font-weight: 500; }
.lp-rate-table td { color: #0e3988; font-weight: 700; font-size: 22px; white-space: nowrap; }
.lp-note { margin-top: 18px; color: #40516b; font: 14px/1.85 "Noto Sans JP", sans-serif; }

/* 案件事例：既存の画像付きカードを、説明文が読める幅に展開。 */
.lp-cases .service__inner { max-width: 1320px; }
.lp-cases .service__wrap { padding: 80px 0; }
.lp-cases .service__body { display: block; }
.lp-cases .service__head { width: 100%; max-width: 1040px; margin-bottom: 40px; }
.lp-cases .service__head > p:first-child { margin-bottom: 24px; height: auto; padding-bottom: 14px; font-size: 24px; }
.lp-cases .service__head h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.6; margin-bottom: 24px; }
.lp-cases .service__head > p:last-child { font-size: 16px; line-height: 1.9; }
.lp-cases .service__cards-area { gap: 48px; width: 100%; }
.lp-cases .service__cards { order: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.lp-cases .service__card { flex-direction: column; border: 1px solid #dce3ec; background: #fff; }
.lp-cases .service__image { position: relative; flex-shrink: 0; width: 100%; height: 210px; margin: 0; }
.lp-case-status { position: absolute; top: 0; left: 0; display: inline-block; padding: 12px 22px; color: #fff; background: #0e3988; font: 700 14px/1.5 "Noto Sans JP", sans-serif; }
.lp-case-status--past { background: #40516b; }
.lp-cases .service__content { padding: 24px; }
.lp-cases .service__content .lp-case-theme { font-size: 14px; font-weight: 700; line-height: 1.8; color: #1b5da9; margin-bottom: 12px; }
.lp-cases .service__content h3 { font-size: 21px; line-height: 1.7; margin-bottom: 20px; }
.lp-case-facts { font: 15px/1.85 "Noto Sans JP", sans-serif; margin-bottom: 24px; }
.lp-case-facts > div { padding: 12px 0; border-top: 1px solid #dce3ec; }
.lp-case-facts > div:last-child { border-bottom: 1px solid #dce3ec; }
.lp-case-facts dt { color: #40516b; font-size: 14px; margin-bottom: 4px; }
.lp-case-facts dd { color: #051c45; }
.lp-cases .service__content h4 { color: #051c45; font: 700 16px/1.8 "Noto Sans JP", sans-serif; margin-bottom: 8px; }
.lp-cases .service__content p { font-size: 16px; line-height: 1.9; font-weight: 400; margin-bottom: 20px; }
.lp-cases .service__content p:last-child { margin-bottom: 0; }
.lp-cases .service__content .lp-case-list { display: block; list-style: disc; padding-left: 1.3em; margin: 0 0 24px; }
.lp-cases .service__content .lp-case-list li { display: list-item; white-space: normal; font: 16px/1.9 "Noto Sans JP", sans-serif; margin-bottom: 8px; }
.lp-experience, .lp-themes { width: 100%; }
.lp-experience { padding: 32px; background: #f7f7f9; }
.lp-experience h3, .lp-themes h3 { color: #051c45; font-size: 26px; font-weight: 600; line-height: 1.6; margin-bottom: 20px; }
.lp-experience ul { list-style: disc; padding-left: 1.3em; font: 16px/1.9 "Noto Sans JP", sans-serif; }
.lp-experience li + li { margin-top: 8px; }
.lp-cases .service__categories { margin: 0; gap: 16px; }
.lp-cases .service__category { flex: 0 1 calc((100% - 32px) / 3); min-height: 66px; height: auto; padding: 16px; font: 500 16px/1.65 "Noto Sans JP", sans-serif; word-break: normal; justify-content: center; text-align: center; }
.lp-cases .service__category:hover { background: #fff; color: #1b5da9; }

.lp-welcome { padding: 64px 0; background: #eff5fe; }
.lp-welcome h2 { margin-bottom: 28px; }
.lp-welcome ul { font: 16px/1.9 "Noto Sans JP", sans-serif; }
.lp-welcome li { position: relative; padding-left: 32px; }
.lp-welcome li + li { margin-top: 20px; }
.lp-welcome li::before { content: ""; position: absolute; width: 20px; height: 20px; left: 0; top: 6px; background: url('../images/check.webp') center / contain no-repeat; }

/* 4ステップ：説明文が増えても固定高で切れないようにする。 */
.lp-flow .flow__card { height: auto; min-height: 480px; }
.lp-flow .flow__card h3 { font-size: 22px; line-height: 1.65; }
.lp-flow .flow__card p:not(.flow__step) { font-size: 16px; line-height: 1.85; }
.lp-flow .flow__step { width: max-content; min-width: 80px; height: auto; padding: 8px 12px; font-size: 16px; line-height: 1.3; }
.lp-flow .lp-flow-caption { display: block; font-size: 15px; font-family: "Noto Sans JP", sans-serif; font-weight: 500; margin-top: 6px; }

@media (max-width: 1100px) and (min-width: 871px) {
    .lp-cases .service__content { padding: 18px; }
    .lp-cases .service__content h3 { font-size: 19px; }
    .lp-flow .flow__card { padding-inline: 18px; }
}

@media (max-width: 870px) {
    .hero__wrap { min-height: 0; padding-bottom: 24px; }
    .hero__content { width: 100%; margin: 0; padding: 32px 20px 0; }
    .hero__content h2 { font-size: clamp(30px, 6vw, 44px); line-height: 1.6; letter-spacing: .08em; margin-bottom: 24px; }
    .hero__lead { width: 100%; max-width: none; font-size: 16px; line-height: 1.9; margin-bottom: 28px; }
    .hero__image { opacity: .35; }
    .hero__points { max-width: none; margin-bottom: 24px; }
    .hero__points li { padding: 0; border-bottom: 0; }
    .lp-reasons .solution__item { overflow: visible; padding: 32px 0; }
    .lp-reasons .solution__item-inner, .lp-reasons .solution__item--reverse .solution__item-inner { width: 100%; min-width: 0; padding: 0 20px; flex-direction: column; gap: 24px; }
    .lp-reasons .solution__image { width: min(100%, 460px); align-self: center; }
    .lp-reasons .solution__content { width: 100%; }
    .lp-reasons .solution__content h3 { font-size: clamp(22px, 5.9vw, 24px); }
    .lp-reasons .solution__content p { font-size: 16px; }
    .lp-section-inner, .lp-cases .service__inner { width: calc(100% - 40px); }
    .lp-rates, .lp-welcome { padding: 48px 0; }
    .lp-rates h2 span { font-size: 14px; }
    .lp-rate-table th, .lp-rate-table td { padding: 16px 12px; font-size: 14px; }
    .lp-rate-table tbody th { width: 61%; }
    .lp-rate-table td { font-size: 16px; white-space: normal; }
    .lp-cases .service__wrap { padding: 48px 0; }
    .lp-cases .service__head h2 { font-size: clamp(23px, 6vw, 28px); line-height: 1.6; text-align: left; }
    .lp-cases .service__head > p:first-child { margin-inline: 0; }
    .lp-cases .service__cards { grid-template-columns: 1fr; gap: 28px; }
    .lp-cases .service__image { height: clamp(180px, 50vw, 300px); }
    .lp-cases .service__content { padding: 24px; }
    .lp-cases .service__content h3 { font-size: 22px; }
    .lp-cases .service__cards-area { gap: 36px; }
    .lp-experience { padding: 24px; }
    .lp-experience h3, .lp-themes h3 { font-size: 23px; }
    .lp-cases .service__category { flex-basis: calc((100% - 16px) / 2); font-size: 14px; padding: 14px 10px; }
    .lp-flow .flow__card { min-height: 0; align-items: flex-start; }
    .lp-flow .flow__card h3 { font-size: 20px; }
    .lp-flow .flow__card p:not(.flow__step) { font-size: 16px; }
}

@media (max-width: 479px) {
    .lp-cases .service__category { flex-basis: 100%; }
    .lp-cases .service__content { padding: 20px; }
    .lp-flow .flow__card { gap: 14px; padding: 22px 16px; }
    .lp-flow .flow__icon { width: 48px; height: 48px; flex-shrink: 0; }
    .lp-flow .flow__step { margin-bottom: 12px; }
}

/* JavaScriptで画面に入った要素だけ、一度だけ10pxのフェードイン。 */
.lp-reveal { opacity: 0; transform: translateY(10px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.65,.3,1); }
.lp-reveal.is-visible { opacity: 1; transform: none; }

/* CTAは文字・背景・アイコンを一緒に反転。サイズはホバーで変えない。 */
:is(.header__button, .hero__button, .support__button, .contact__submit, .footer__company-link, .mobile-menu__cta) {
    --cta-ink: #0e2e72;
    border: 2px solid var(--cta-ink);
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
    opacity: 1;
}
:is(.header__button, .hero__button--primary, .support__button, .contact__submit) { background: var(--cta-ink); color: #fff; }
.hero__button--outline, .mobile-menu__cta { background: #fff; color: var(--cta-ink); }
.footer__company-link { --cta-ink: #fff; border-color: #fff; background: #fff; color: #001125; }
:is(.header__button, .hero__button, .support__button, .contact__submit) svg [fill]:not([fill="none"]) { fill: currentColor; }
:is(.header__button, .hero__button, .support__button, .contact__submit) svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
:is(.header__button, .hero__button, .support__button, .contact__submit, .footer__company-link, .mobile-menu__cta):focus-visible { outline: 3px solid #5c9bdd; outline-offset: 4px; opacity: 1; }
:is(.header__button, .hero__button--primary, .support__button, .contact__submit):focus-visible { background: #fff; color: var(--cta-ink); }
:is(.hero__button--outline, .mobile-menu__cta):focus-visible { background: var(--cta-ink); color: #fff; }
.footer__company-link:focus-visible { background: #001125; color: #fff; }
@media (hover: hover) and (pointer: fine) {
    :is(.header__button, .hero__button--primary, .support__button, .contact__submit):hover { background: #fff; color: var(--cta-ink); opacity: 1; }
    :is(.hero__button--outline, .mobile-menu__cta):hover { background: var(--cta-ink); color: #fff; opacity: 1; }
    .footer__company-link:hover { background: #001125; color: #fff; opacity: 1; }
}

/* SPメニュー：閉じている間はフォーカスも移動しない。 */
.mobile-menu { visibility: hidden; top: var(--menu-top, 6rem); height: calc(100vh - var(--menu-top, 6rem)); height: calc(100dvh - var(--menu-top, 6rem)); overscroll-behavior: contain; }
#global-container.menu-open .mobile-menu { visibility: visible; }
.mobile-menu__btn { width: 44px; height: 44px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mobile-menu__btn span { transition: transform 240ms ease, opacity 160ms ease; }
#global-container.menu-open .mobile-menu__btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); transition-delay: 0s; }
#global-container.menu-open .mobile-menu__btn span:nth-child(2) { opacity: 0; transform: scaleX(0); transition-delay: 0s; }
#global-container.menu-open .mobile-menu__btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); transition-delay: 0s; }
.mobile-menu__btn:focus-visible, .mobile-menu__nav a:focus-visible { outline: 3px solid #5c9bdd; outline-offset: 3px; }
.mobile-menu__cta { display: flex; justify-content: center; align-items: center; min-height: 50px; padding: 14px 20px; margin: 4px 0 32px; font: 700 16px/1.5 "Noto Sans JP", sans-serif; border-color: #fff; }
.mobile-menu__nav a { height: auto; min-height: 50px; padding: 14px 24px 14px 0; font-size: 16px; line-height: 1.5; }
.mobile-menu__inner { max-width: 680px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.mobile-menu__bottom small, .mobile-menu__bottom a { font-size: 13px; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .mobile-menu, .mobile-menu__btn span,
    :is(.header__button, .hero__button, .support__button, .contact__submit, .footer__company-link, .mobile-menu__cta) { transition: none !important; }
}

@media print {
    .lp-reveal { opacity: 1 !important; transform: none !important; }
    .mobile-menu, .mobile-menu__btn { display: none !important; }
}

/* 2026-10-09：Wordの4バッジ復元。テキスト量が変わっても折り返せる。 */
.hero__points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.hero__points li { width: auto; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero__points span { overflow-wrap: anywhere; }
@media (min-width: 871px) and (max-width: 1100px) {
    .hero__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__points li:nth-child(2)::after { display: none; }
}
@media (max-width: 870px) {
    .hero__points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
    .hero__points li { padding: 16px 10px; }
    .hero__points li:nth-child(2)::after { display: none; }
    .hero__points li:nth-child(-n+2) { border-bottom: 1px solid #d6dfea; }
    .hero__points img, .hero__points li:last-child img { height: 48px; }
}

/* 2026-10-09：本文を読みやすく。画面幅と連動して本文を縮小しない。 */
:root { --lp-body-size: 18px; --lp-note-size: 15px; }
.hero__lead,
.worry__content p,
.solution__head p,
.lp-reasons .solution__content p,
.lp-cases .service__head > p:last-child,
.lp-cases .service__content p:not(.lp-case-theme),
.lp-cases .service__content .lp-case-list li,
.lp-experience ul, .lp-welcome ul,
.strategy__txt, .strategy__quality-list,
.strategy__promise > p:not(.strategy__pill),
.strategy__card-block p,
.flow__head p, .lp-flow .flow__card p:not(.flow__step),
.faq__head p, .faq__question, .faq__answer p,
.support__content p, .contact__head p {
    font-size: var(--lp-body-size);
    line-height: 1.85;
}
.lp-case-facts { font-size: var(--lp-body-size); line-height: 1.8; }
.lp-case-facts dt, .lp-note, .lp-rate-basis,
.lp-flow .lp-flow-caption, .strategy__card-block p:last-child {
    font-size: var(--lp-note-size);
    line-height: 1.8;
}
.lp-rate-table th { font-size: var(--lp-body-size); }
.hero__points span { font-size: 16px; }
.contact__label, .contact__input, .contact__textarea { font-size: 16px; line-height: 1.7; }
.contact__example, .contact__file-text, .contact__file-note { font-size: 14px; line-height: 1.7; }
.contact__file { flex-wrap: wrap; }
.contact__file-btn { flex-shrink: 0; min-width: 126px; min-height: 36px; font-size: 14px; }
.contact__file-note { flex: 1 1 150px; min-width: 150px; }
.support__content p { width: auto; }
.strategy__card-block p { min-width: 0; }
.strategy__card-block p br { display: none; }

/* お困り事：文言は維持し、4枚のタイトルを2行に揃える。 */
.worry__wrap { max-width: 1320px; }
.worry__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.worry__card { display: flex; flex-direction: column; min-width: 0; }
.worry__content { flex: 1; width: 100%; min-height: 250px; padding: 28px 18px; }
.worry__content h3 { margin-bottom: 18px; font-size: clamp(20px, 1.6vw, 22px); line-height: 1.6; min-height: 3.2em; text-wrap: balance; line-break: strict; }
.worry__title-line { display: block; white-space: nowrap; }
.worry__content p { text-wrap: pretty; }
@media (min-width: 1200px) and (max-width: 1279px) {
    .worry__content { padding-inline: 12px; }
}
@media (min-width: 871px) and (max-width: 1199px) {
    .worry__wrap { max-width: 900px; }
    .worry__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 90px; }
    .worry__content { min-height: 210px; }
}
@media (max-width: 870px) {
    :root { --lp-body-size: 17px; }
    .worry__wrap { width: 100%; padding-inline: 20px; }
    .worry__cards { grid-template-columns: 1fr; gap: 32px; }
    .worry__card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; align-items: center; }
    .worry__icon { width: 48px; }
    .worry__content { width: 100%; min-height: 0; padding: 22px 16px; }
    .worry__content h3 { font-size: clamp(18px, 4.88vw, 19px); min-height: 0; text-align: left; }
    .lp-rate-table th { font-size: 16px; }
    .lp-rate-table td { font-size: 18px; }
    .lp-cases .service__content .lp-case-list li { overflow-wrap: anywhere; }
}

/* SP_READABLE_BREAKS：本文・金額・専門用語を意味の途中で折り返さない。 */
.strategy__card-block .strategy__result-copy { flex: 1; min-width: 0; }
.contact__file { height: auto; min-height: 68px; }
@media (max-width: 870px) {
    .hero__lead .hero__lead-paragraph { display: block; }
    .hero__lead .hero__lead-paragraph + .hero__lead-paragraph { margin-top: 12px; }
    .hero__lead .sp-nowrap { display: inline-block; white-space: nowrap; }
    .hero__points .hero__point-label { width: 100%; overflow-wrap: normal; }
    .hero__points .hero__badge-line { display: block; white-space: nowrap; overflow-wrap: normal; }
    .sp-phrase { display: inline-block; white-space: nowrap; }
    .lp-rate-table tbody th { width: auto; }
    .lp-rate-table thead th:last-child { width: 1%; white-space: nowrap; }
    .lp-rate-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
    .strategy__promise > .strategy__intro-heading,
    .strategy__promise > .strategy__intro-copy {
        width: calc(100% - 40px); max-width: 640px; margin-inline: auto;
        text-align: left; line-height: 1.9; text-wrap: pretty;
    }
    .strategy__promise > .strategy__intro-heading { font-size: 18px; margin-bottom: 18px; }
    .strategy__intro-heading .pc-break { display: none; }
    .strategy__card-block .strategy__result-copy { text-wrap: pretty; }
    .lp-cases .service__category { font-size: 18px; line-height: 1.7; text-wrap: balance; }
    .contact__file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 16px; }
    .contact__file-text { width: auto; margin: 0; }
    .contact__file-btn { margin: 0; width: auto; padding: 6px 12px; height: auto; }
    .contact__file-note { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 0; white-space: normal; overflow-wrap: anywhere; }
}

/* PC_READABLE_BREAKS：文言・文字サイズを維持し、単語の途中で改行しない。 */
@media (min-width: 871px) {
    .hero__lead .sp-nowrap { display: inline-block; white-space: nowrap; }
    .worry__content .pc-copy-line { display: block; }
    .worry__content .pc-nowrap { display: inline-block; white-space: nowrap; }
}

/* CASE_READABLE_BREAKS：span内の語句をまとめ、差し替え時にも自然に折り返す。 */
.lp-phrase { display: inline-block; white-space: nowrap; }
.lp-phrase-group { display: inline-block; max-width: 100%; }
.lp-cases .service__content h3 { text-wrap: balance; }
.lp-cases .service__category { font-size: 18px; line-height: 1.7; text-wrap: balance; }

/* FLOW_MOTION：一度だけ順に表示。追加ライブラリや常時動く処理は不要。 */
.lp-flow .flow__card.lp-reveal { transition-delay: var(--flow-delay, 0ms); }
.lp-flow .flow__card.lp-reveal .flow__arrow path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 600ms ease;
    transition-delay: calc(var(--flow-delay, 0ms) + 240ms);
}
.lp-flow .flow__card.is-visible .flow__arrow path { stroke-dashoffset: 0; }
@media (max-width: 870px) {
    .lp-flow .flow__card.lp-reveal { --flow-delay: 0ms !important; }
}
@media (prefers-reduced-motion: reduce), print {
    .lp-flow .flow__card.lp-reveal .flow__arrow path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
        transition: none;
    }
}
