@charset "UTF-8";

.home-page { margin: -42px -20px; background: #fff; }
.home-page__inner { overflow: hidden; }
.home-hero { position: relative; overflow: hidden; background: linear-gradient(115deg, #f6fbff 0%, #eef7ff 52%, #e4f1fc 100%); }
.home-hero::before { display: none; }
.home-hero__background { position: relative; z-index: 0; isolation: isolate; padding: clamp(72px, 9vw, 122px) 24px clamp(62px, 8vw, 104px); }
.home-hero__container, .home-section__container, .home-cta__container { width: min(100%, var(--content-width)); margin: 0 auto; }
.home-hero__container { position: relative; z-index: 2; }
.home-hero__content { position: relative; max-width: 600px; }

/* ヒーローのアートワーク（PC=横長を全面背景に / モバイル=縦長をテキスト下へブロック配置） */
.home-hero__art { position: absolute; inset: 0; z-index: 0; margin: 0; display: block; overflow: hidden; }
.home-hero__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 82% top; }
.home-hero__background::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, rgba(241,248,255,.99) 0%, rgba(241,248,255,.96) 36%, rgba(241,248,255,.78) 52%, rgba(241,248,255,.22) 64%, rgba(241,248,255,0) 74%);
}
.home-hero__label, .home-section__eyebrow { width: fit-content; margin: 0 0 17px; padding: 6px 13px; color: var(--primary); background: rgba(255,255,255,.78); border: 1px solid #d8e9fc; border-radius: 999px; font-size: .73rem; font-weight: 800; letter-spacing: .1em; }
.home-section__eyebrow { margin-inline: auto; }
.home-hero__heading h1 { max-width: 600px; margin: 0 0 22px; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.34; letter-spacing: -.03em; }
.home-hero__heading h1 span { display: block; }
.home-hero__heading-accent { color: var(--primary); }
.home-hero__description { max-width: 610px; color: #4b647b; font-size: clamp(1rem, 1.5vw, 1.12rem); }
.home-hero__actions, .home-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 20px; }
.home-hero__actions a { min-width: 190px; }
.home-hero__primary-action, .home-hero__secondary-action { display: flex; }
.home-hero__note { display: inline-flex; align-items: center; gap: 8px; color: #53708b; font-size: .84rem; font-weight: 600; }
.home-hero__note::before { content: "✓"; width: 22px; height: 22px; display: grid; place-items: center; color: var(--primary); background: #fff; border-radius: 50%; font-weight: 900; }

.home-section { padding: clamp(72px, 9vw, 118px) 24px; scroll-margin-top: calc(var(--header-height) + 14px); }
.home-cta { scroll-margin-top: calc(var(--header-height) + 14px); }
.home-section--features { background: #fff; }
.home-section--flow, .home-section--plans, .home-section--alt { background: var(--primary-pale); }
.home-section--management { background: #fff; }
.home-section--faq { background: linear-gradient(180deg,#fff,#f7fbff); }
.home-section__header { max-width: 800px; margin: 0 auto 46px; text-align: center; }
.home-section__title h2 { margin: 0 0 13px; font-size: clamp(1.7rem, 3.1vw, 2.5rem); letter-spacing: -.035em; }
.home-section__lead { color: var(--muted); font-size: 1rem; }
.section-note { max-width: 820px; margin: 26px auto 0; color: var(--muted); font-size: .85rem; text-align: center; }

.feature-grid, .plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.feature-card, .plan-card, .faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.feature-card:hover, .plan-card:hover { border-color: #bad2ee; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card__inner { height: 100%; padding: 30px; }
.feature-card__number { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; color: var(--primary); background: var(--primary-soft); border-radius: 50%; font-weight: 800; }
.feature-card__icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 20px; color: var(--primary); background: var(--primary-soft); border-radius: 12px; }
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__content h3 { margin: 0 0 10px; font-size: 1.12rem; }
.feature-card__content p { margin: 0; color: var(--muted); font-size: .94rem; }

/* テキスト＋画像の左右分割（悩み／解決セクション） */
.home-section--split { position: relative; overflow: hidden; }
#problems { padding-bottom: clamp(38px, 6vw, 64px); }
#solution { padding-top: clamp(38px, 6vw, 64px); }
.split-layout { display: flex; align-items: center; gap: 48px; min-height: 380px; }
.split-layout__body { flex: 1 1 420px; max-width: 540px; padding: 32px 0; }
.split-layout__title { margin: 0 0 20px; font-size: clamp(1.55rem, 2.8vw, 2.2rem); letter-spacing: -.035em; }
.split-layout__lead { margin: 0 0 22px; color: var(--muted); font-size: 1.02rem; }
.split-layout__cta { margin: 0; }
.split-layout__figure { flex: 1 1 420px; align-self: stretch; margin: 8px 0; background: #eef4fb; border-radius: var(--radius-lg); overflow: hidden; }
.split-layout__figure img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.split-layout--reverse { flex-direction: row-reverse; }
/* セクション見出し代わりに使う場合（下に一覧が続く）は余白を追加 */
.split-layout--intro { margin-bottom: 46px; }

/* 悩みリスト */
.problem-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.problem-list li { position: relative; padding: 14px 18px 14px 46px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--navy); font-weight: 600; box-shadow: var(--shadow-xs); }
.problem-list li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border: 2px solid #b7cde6; border-radius: 5px; }
.problem-solution { margin: 20px 0 0; padding: 16px 20px; background: var(--primary-soft); border: 1px solid #bcd6f7; border-radius: var(--radius-md); color: var(--navy); font-weight: 800; }

/* お客様の予約 補足チップ */
.flow-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.flow-notes li { padding: 8px 16px; background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: .87rem; font-weight: 700; color: var(--navy); }
.flow-notes li::before { content: "✓ "; color: var(--primary); font-weight: 900; }

/* 対応業種 */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.industry-grid li { padding: 18px 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); text-align: center; color: var(--navy); font-weight: 700; }

/* 汎用: 見出し+本文カード（選ばれる理由・安心安全） */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 940px; margin: 0 auto; padding: 0; list-style: none; }
.info-grid li { padding: 22px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.info-grid h3 { margin: 0 0 6px; font-size: 1.04rem; }
.info-grid p { margin: 0; color: var(--muted); font-size: .93rem; }

/* 導入ステップ（縦・自動採番） */
.onboarding-list { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: ob; }
.onboarding-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.onboarding-list li::before { counter-increment: ob; content: counter(ob); width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; font-weight: 800; }
.onboarding-list h3 { margin: 2px 0 4px; font-size: 1.02rem; }
.onboarding-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.onboarding-note { text-align: center; margin: 20px 0 0; color: var(--muted); font-weight: 600; }

/* 料金 比較表 */
.plan-compare { max-width: 900px; margin: 40px auto 0; }
.plan-compare table { background: #fff; }
.plan-compare th[scope="col"], .plan-compare td { text-align: center; }
.plan-compare th[scope="row"] { color: var(--navy); background: #fff; font-size: .82rem; text-transform: none; letter-spacing: 0; white-space: normal; }
.mark { font-weight: 800; font-size: .82rem; }
.mark--yes { color: var(--success); }
.mark--no { color: var(--subtle); }
.mark--ask { color: var(--muted); }

.flow-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 52px; counter-reset: flow; }
.flow-item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 26px 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.flow-item:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -37px; color: var(--primary); font-size: 1.5rem; font-weight: 800; transform: translateY(-50%); }
.flow-item__marker { width: 54px; height: 54px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 12px; font-size: .7rem; font-weight: 800; }
.flow-item__title h3 { margin: 1px 0 6px; }
.flow-item__text p { margin: 0; color: var(--muted); }

.management-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.management-list__item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--navy); background: #f7fbff; border: 1px solid #e1edf8; border-radius: 10px; font-weight: 700; }
.management-list__item::before { content: "✓"; width: 24px; height: 24px; display: grid; flex: 0 0 auto; place-items: center; color: var(--primary); background: #e4efff; border-radius: 50%; font-size: .78rem; }

.plan-card { position: relative; min-height: 410px; padding: 31px; display: flex; flex-direction: column; }
.plan-card--recommended { border: 2px solid var(--primary); box-shadow: var(--shadow-md); }
.plan-card__badge { position: absolute; top: -15px; right: 22px; padding: 5px 14px; color: #fff; background: var(--primary); border-radius: 999px; font-size: .74rem; font-weight: 800; }
.plan-card__name { color: var(--navy); font-size: 1.25rem; font-weight: 800; }
.plan-card__price { min-height: 60px; display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.plan-card__price strong { color: var(--navy); font-size: 2.35rem; letter-spacing: -.05em; }
.plan-card__price span { color: var(--muted); }
.plan-card__body { flex: 1; }
.plan-card__description { min-height: 55px; margin: 14px 0; color: var(--muted); }
.plan-card__body ul { padding: 0; list-style: none; }
.plan-card__body li { position: relative; padding: 8px 0 8px 27px; color: var(--navy); }
.plan-card__body li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.plan-card__footer { margin-top: 20px; }
.plan-card__footer a { width: 100%; }

.faq-list { max-width: 820px; display: grid; gap: 12px; margin: 0 auto; padding: 0; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item > summary { list-style: none; display: block; cursor: pointer; padding: 18px 52px 18px 24px; position: relative; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item__question h3 { margin: 0; display: flex; gap: 12px; font-size: 1rem; line-height: 1.5; }
.faq-item__question h3::before { content: "Q"; color: var(--primary); font-weight: 900; flex: 0 0 auto; }
.faq-item > summary::after { content: ""; position: absolute; right: 24px; top: 23px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform var(--transition); }
.faq-item[open] > summary::after { transform: translateY(3px) rotate(-135deg); }
.faq-item > summary:focus-visible { outline: 3px solid rgba(37,99,235,.42); outline-offset: -3px; }
.faq-item__answer { padding: 0 24px 20px 48px; color: var(--muted); }
.faq-item__answer p { margin: 0; }

.home-cta { padding: 22px 24px 90px; background: linear-gradient(180deg,#f7fbff,#fff); }
.home-cta__background { max-width: 1180px; margin: auto; padding: clamp(50px,7vw,80px) 24px; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(125deg,#0f2a44,#154c83 65%,#2563eb); color: #fff; box-shadow: var(--shadow-md); }
.home-cta__content { max-width: 760px; margin: auto; text-align: center; }
.home-cta__heading h2 { margin: 0 0 12px; color: #fff; font-size: clamp(1.55rem, 3.2vw, 2.3rem); letter-spacing: -.03em; }
.home-cta__text { color: #dbeafe; }
.home-cta__actions { justify-content: center; }
.home-cta .secondary-button { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.home-cta .secondary-button:hover { background: rgba(255,255,255,.1); }

@media (max-width: 980px) {
    .info-grid { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 900px) {
    .home-hero__background { isolation: auto; padding-bottom: clamp(24px, 6vw, 44px); }
    .home-hero__background::after { display: none; }
    .home-hero__container { z-index: auto; }
    .home-hero__content { max-width: 560px; margin-inline: auto; text-align: center; }
    .home-hero__label { margin-inline: auto; }
    .home-hero__heading h1, .home-hero__description { margin-inline: auto; }
    .home-hero__actions { justify-content: center; }
    .home-hero__note { width: 100%; max-width: 360px; justify-content: center; }
    .home-hero__note span { min-width: 0; flex: 1; text-align: left; overflow-wrap: anywhere; }
    .home-hero__art { position: static; inset: auto; width: 100%; max-width: 520px; margin: clamp(6px, 2vw, 18px) auto 0; }
    .home-hero__art img { height: auto; aspect-ratio: 3 / 4; object-position: center 92%; }
    .feature-grid, .plan-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
    .plan-card { min-height: auto; }
    .management-list, .industry-grid { grid-template-columns: repeat(2, 1fr); max-width: 620px; }
    .split-layout { display: flex; flex-direction: column; min-height: 0; }
    .split-layout--reverse { flex-direction: column-reverse; }
    .split-layout__body { max-width: 640px; margin: 0 auto; padding: 0; }
    .split-layout__title, .split-layout__lead, .split-layout__cta { text-align: center; }
    .split-layout__figure { position: static; inset: auto; width: 100%; max-width: 560px; margin: 26px auto 0; }
    .split-layout__figure img { height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); border: 1px solid #cfe0f2; box-shadow: 0 18px 44px rgba(15,42,68,.13); }
}

@media (max-width: 700px) {
    .home-page { margin: -26px -14px; }
    .home-hero__background { padding: 52px 16px 20px; }
    .home-hero__heading h1 { max-width: 100%; font-size: clamp(1.55rem, 6.2vw, 2rem); line-height: 1.22; overflow-wrap: anywhere; word-break: normal; }
    .home-hero__art { width: calc(100% + 32px); max-width: none; margin-inline: -16px; }
    .home-hero__art img { aspect-ratio: 4 / 5; }
    .home-hero__note { font-size: .77rem; }
    .home-hero__actions { display: grid; }
    .home-hero__primary-action, .home-hero__secondary-action, .home-hero__actions a { width: 100%; }
    .home-section { padding: 62px 16px; }
    .home-section__header { margin-bottom: 34px; }
    .flow-list { grid-template-columns: 1fr; gap: 16px; }
    .flow-item:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -21px; transform: translateX(50%); }
    .feature-card__inner, .plan-card { padding: 24px; }
    .management-list, .industry-grid { grid-template-columns: 1fr; }
    .problem-list li { padding-right: 16px; }
    .onboarding-list li { padding: 18px; gap: 13px; }
    .home-cta { padding: 14px 14px 58px; }
    .home-cta__background { padding: 44px 18px; border-radius: 16px; }
    .home-cta__actions { display: grid; }
}
