/* TOP page (/) — six blocks: hero, what we do, message sample, plans, FAQ, final CTA.
   Backgrounds alternate white and pale blue; the final CTA is the only dark block.
   Buttons are the site-wide orange primary and white secondary. */
.home-page {
  /* Colour comes from the brand tokens in site.css; do not add a page palette. */
  color: var(--text-body);
  background: var(--white);
}

/* Campaign: one slim line above the hero rather than a band that outweighs the headline. */
.home-campaign { background: var(--campaign-red); }
.home-campaign-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 48px; padding: 8px 20px; color: var(--white); font-weight: 700; text-align: center; }
.home-campaign-badge { padding: 2px 10px; border: 1px solid var(--white); border-radius: 999px; font-size: .8125rem; font-weight: 800; }
.home-campaign-arrow { display: inline-block; margin-left: .5em; transition: transform .2s ease; }
.home-campaign-link:hover .home-campaign-arrow { transform: translateX(4px); }
/* The same campaign as a band right after the hero, where it sat before the redesign. */
.home-campaign-band { padding: 28px 0; background: var(--white); }
.home-campaign-band-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; padding: 22px 32px; border-radius: 16px; color: var(--white); background: var(--campaign-red); box-shadow: 0 14px 30px rgba(217,45,32,.26); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.home-campaign-band-link:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(217,45,32,.34); }
.home-campaign-band-badge { padding: 3px 12px; border: 1px solid var(--white); border-radius: 999px; font-size: .875rem; font-weight: 800; }
.home-campaign-band-link strong { font-size: clamp(1.375rem,2.4vw,1.875rem); line-height: 1.35; }
/* Break between the phrases first; inside one only when it alone is wider than the band (enlarged text on 280px). */
.home-campaign-band-link strong span { display: inline-block; }
.home-campaign-band-link em { font-size: 1.3em; font-style: normal; }
.home-campaign-band-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 999px; color: var(--brand-navy-deep); background: var(--white); font-weight: 800; }

/* Hero: kicker, headline, lead, two buttons and the three facts on the left; on the right
   one picture of the four steps we take over (the visual below).
   Read in this order: h1 → consult button → kicker → lead → facts → note, so only the h1 is
   serif and large, the kicker is small blue text, the lead regular weight, the note muted.
   The background is CSS only: white behind the copy, pale blue, a soft ring and light orbs
   on the right behind the picture. */
.home-hero { position: relative; overflow: hidden; background:
  linear-gradient(180deg, rgba(255,255,255,0) 82%, var(--white) 100%),
  radial-gradient(circle at 94% 2%, rgba(142,175,227,.32) 0, rgba(142,175,227,.16) 150px, rgba(142,175,227,0) 260px),
  radial-gradient(ellipse 48% 62% at 74% 54%, rgba(18,101,232,.10) 0%, rgba(18,101,232,0) 72%),
  linear-gradient(105deg, var(--white) 0%, var(--white) 40%, var(--pale-blue-2) 60%, var(--pale-blue) 100%); }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
/* A faint ring behind the desk and one long curve through the right half. */
.home-hero::before { top: 50%; left: 74%; width: 620px; aspect-ratio: 1; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.95); background: radial-gradient(circle, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 70%); box-shadow: 0 0 0 1px rgba(18,101,232,.05); }
.home-hero::after { top: -70%; left: 48%; width: 120%; height: 240%; border: 1px solid rgba(18,101,232,.08); }
.home-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); grid-template-areas: "copy visual" "facts visual"; column-gap: 40px; padding: 56px 0 48px; }
.home-hero-copy { grid-area: copy; align-self: end; position: relative; z-index: 2; }
.home-hero-kicker { display: inline-block; margin: 0 0 20px; padding: 4px 16px; border: 1px solid var(--brand-blue); border-radius: 6px; color: var(--brand-blue); background: var(--white); font-size: .9375rem; font-weight: 700; line-height: 1.7; letter-spacing: .04em; }
.home-hero-copy h1 { margin: 0; color: var(--brand-navy-deep); font-family: var(--font-serif); font-size: clamp(2.125rem,3.4vw,2.75rem); font-weight: 700; line-height: 1.4; letter-spacing: -.04em; }
.home-hero-lead { margin: 20px 0 0; color: var(--text-body); font-size: 1.125rem; line-height: 1.9; text-wrap: pretty; }
/* One phrase per line as written; a phrase wider than the column wraps inside itself. */
.home-hero-lead span { display: block; }
@supports (word-break: auto-phrase) {
  .home-hero-lead { word-break: auto-phrase; }
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-hero-actions .button { min-width: 200px; border-radius: 999px; }

/* Visual: one generated picture of the four steps (research → writing → form sent → report)
   floating over a desk, cropped from the supplied artwork; the phone crop comes from a
   separate portrait version (<picture>). The step names are in the alt text. It reaches past
   the container to the window's right edge (--hero-bleed) and its left, top and bottom edges
   fade into the CSS background. width/height on img and source reserve the box before load. */
.home-hero-visual { --hero-bleed: max(20px, calc((100vw - var(--max)) / 2)); grid-area: visual; align-self: center; min-width: 0; margin-right: calc(-1 * var(--hero-bleed)); margin-left: -4%; }
.home-hero-visual picture { display: block; }
.home-hero-flow { display: block; width: min(100%, 920px); height: auto; margin-left: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%), linear-gradient(180deg, transparent 0%, black 8%, black 86%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, black 18%), linear-gradient(180deg, transparent 0%, black 8%, black 86%, transparent 100%); mask-composite: intersect; }
.home-facts svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.home-facts { grid-area: facts; align-self: start; position: relative; z-index: 2; margin-top: 32px; }
.home-facts ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(7,30,69,.07); }
.home-facts li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; }
.home-facts li + li { border-left: 1px solid var(--line); }
/* The blue figure leads; the plain phrase follows it smaller and lighter. Icons only on phones. */
.home-facts-icon { display: none; place-items: center; grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; color: var(--brand-blue); background: var(--pale-blue); }
.home-facts strong { color: var(--brand-blue); font-size: clamp(1rem,1.3vw,1.1875rem); font-weight: 800; line-height: 1.35; }
.home-facts strong + span { color: var(--text-body); font-size: .9375rem; font-weight: 500; line-height: 1.6; }
.home-facts p { margin: 10px 0 0; color: var(--muted); font-size: .875rem; }

/* Shared section type for the lower blocks. */
.home-page .section-title { color: var(--brand-navy-deep); font-size: clamp(2rem,3.4vw,3rem); line-height: 1.35; }
.home-page .section-lead { color: var(--text-body); }
.home-text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--brand-blue); font-weight: 800; }
.home-text-link span { transition: transform .2s ease; }
.home-text-link:hover span { transform: translateX(5px); }

/* What we do: three steps, then who does what once a reply arrives. */
.home-flow { background: var(--white); }
.home-flow-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin: 48px 0 0; padding: 0; list-style: none; }
.home-flow-steps li { min-width: 0; }
.home-flow-steps img { display: block; width: 100%; height: 170px; margin-bottom: 16px; object-fit: contain; object-position: left center; }
.home-flow-steps h3 { margin: 6px 0 8px; color: var(--brand-navy-deep); font-size: 1.25rem; }
.home-flow-steps p { margin: 0; line-height: 1.85; }
.home-handoff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.home-handoff > div { padding: 24px 28px; border-radius: 16px; background: var(--pale-blue); }
.home-handoff h3 { margin: 0 0 8px; color: var(--brand-navy-deep); font-size: 1.125rem; }
.home-handoff p { margin: 0; line-height: 1.8; }

/* Why we write each message: what the research found, next to the message it produced. */
.sample-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: 24px; }
.source-card, .message-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.source-card { padding: 28px; }
.message-card { overflow: hidden; }
.message-bar { display: flex; justify-content: space-between; gap: 18px; padding: 16px 22px; color: var(--on-ink); background: var(--ink); font-size: .8rem; }
.message-body { padding: 30px; }
.source-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.source-row:last-child { border: 0; }
.source-row small { display: block; color: var(--muted); }
.source-row strong { display: block; margin-top: 5px; }
/* The fictional setting of the sample is a note, not part of the lead. */
.home-sample-note { margin: 28px 0 0; color: var(--muted); font-size: .875rem; }
.home-sample-note + .sample-shell { margin-top: 12px; }

/* Plans: the three prices at a glance; conditions stay on /pricing/. */
.home-plans { background: var(--white); }
.home-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 40px; }
.home-plan { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); text-align: center; }
.home-plan.is-recommended { border: 2px solid var(--brand-blue); }
.home-plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 999px; color: var(--on-brand-blue); background: var(--brand-blue); font-size: .8125rem; font-weight: 800; white-space: nowrap; }
.home-plan h3 { margin: 0; color: var(--brand-navy-deep); font-size: 1.25rem; }
.home-plan-count { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
.home-plan-price { margin: 12px 0 0; color: var(--brand-navy-deep); font-weight: 700; }
.home-plan-price strong { font-size: 2.25rem; letter-spacing: -.02em; }
.home-plan-price small { display: block; color: var(--muted); font-size: .875rem; font-weight: 500; }
.home-plan-note { margin: 20px 0 0; color: var(--muted); font-size: 1rem; }

.home-faq { background: var(--pale-blue); }

/* The final CTA is the shared .final-cta (site.css) with a narrower lead and, side by
   side, a text column that may grow past its share (1fr rather than minmax(0,1fr),
   which differs only with enlarged text). */
@media not all and (max-width: 1024px) {
  .home-cta { grid-template-columns: 1fr auto; }
}
.home-cta p { max-width: 620px; }

@media (max-width: 1024px) {
  /* Tablets: one column, so the picture is wide enough for the text inside it to be read. */
  .home-hero-inner { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "visual" "facts"; }
  .home-hero-visual { margin: 24px 0 0; }
  .home-hero-flow { width: min(100%, 640px); margin-inline: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%), linear-gradient(180deg, transparent 0%, black 8%, black 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%), linear-gradient(180deg, transparent 0%, black 8%, black 86%, transparent 100%); }
  .home-flow-steps { gap: 20px; }
  .home-flow-steps img { height: 130px; }
  .home-page .section-title .heading-line { white-space: normal; }
}

@media (max-width: 768px) {
  .home-campaign-link { font-size: .9375rem; }
  .home-campaign-band { padding: 20px 0; }
  .home-campaign-band-link { padding: 22px 20px; }
  /* Phones: one column in the order copy → two stacked buttons → steps picture → facts → note,
     with type sized for the phone rather than the desktop sizes scaled down, and a plainer
     background: white fading to pale blue, no ring or curve. */
  .home-hero { background:
    radial-gradient(ellipse 110% 32% at 50% 58%, rgba(18,101,232,.08) 0%, rgba(18,101,232,0) 70%),
    linear-gradient(180deg, var(--white) 0%, var(--white) 38%, var(--pale-blue-2) 62%, var(--pale-blue) 100%); }
  .home-hero::before, .home-hero::after { display: none; }
  .home-hero-inner { padding: 32px 0 28px; }
  .home-hero-kicker { margin-bottom: 14px; padding: 3px 12px; font-size: .875rem; }
  .home-hero-copy h1 { font-size: clamp(1.5rem,7.6vw,2.5rem); line-height: 1.45; letter-spacing: -.03em; }
  .home-hero-lead { margin-top: 14px; font-size: 1rem; line-height: 1.85; }
  /* Phrases move to the next line whole (site.css makes .heading-line inline on phones);
     one wider than the screen still wraps inside itself, so enlarged text cannot overflow. */
  .home-hero-copy h1 .heading-line, .home-hero-lead span { display: inline-block; white-space: normal; }
  .home-hero-actions { flex-direction: column; gap: 10px; margin-top: 24px; }
  .home-hero-actions .button { width: 100%; min-width: 0; }
  /* The portrait picture, edge to edge, its top fading into the background under the buttons. */
  .home-hero-visual { margin: 20px -20px 0; }
  .home-hero-flow { width: 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, black 14%, black 88%, transparent 100%); }
  /* Facts: three separate low cards, icon beside the blue figure and its phrase. */
  .home-facts { margin-top: 24px; }
  .home-facts ul { grid-template-columns: minmax(0,1fr); gap: 10px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .home-facts li { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 0 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 8px 20px rgba(7,30,69,.06); }
  .home-facts-icon { display: grid; }
  .home-facts strong { font-size: 1.25rem; }
  .home-flow-steps { grid-template-columns: minmax(0,1fr); margin-top: 28px; }
  .home-flow-steps li { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: start; gap: 2px 16px; }
  .home-flow-steps img { grid-row: 1 / 4; width: 72px; height: 72px; margin: 0; }
  .home-flow-steps h3 { margin: 2px 0 4px; font-size: 1.125rem; }
  .home-handoff { grid-template-columns: minmax(0,1fr); margin-top: 28px; }
  .home-handoff > div { padding: 20px; }
  .sample-shell { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .source-card, .message-body { padding: 22px; }
  .message-bar { flex-wrap: wrap; gap: 6px 12px; padding: 14px 20px; font-size: .875rem; }
  .message-body > p:first-child { margin-top: 0; }
  .message-body > p:last-child { margin-bottom: 0; }
  .home-plan-grid { grid-template-columns: minmax(0,1fr); gap: 20px; margin-top: 28px; }
  .home-plan { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 2px 12px; padding: 20px; text-align: left; }
  .home-plan-count { margin: 0; }
  .home-plan-price { grid-column: 2; grid-row: 1 / 3; margin: 0; text-align: right; }
  .home-plan-price strong { font-size: 1.75rem; }
  .home-plan-badge { left: 20px; transform: none; }
  .home-text-link { min-height: 44px; }
  .home-page .section-title, .home-cta h2 { font-size: clamp(1.625rem, 6.6vw, 2.25rem); line-height: 1.5; letter-spacing: -.025em; }
  .home-cta { gap: 24px; }
  .home-cta h2 br { display: none; }
}

/* Phones held sideways are only 375-430px tall: shrink the headline to two lines,
   drop the artwork and tighten the spacing so the consultation button is on the first screen. */
@media (max-height: 480px) and (orientation: landscape) {
  .home-campaign-link { min-height: 40px; padding-block: 6px; }
  .home-hero-inner { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "facts"; padding: 20px 0 24px; }
  .home-hero-copy h1 { font-size: 2rem; line-height: 1.3; }
  .home-hero-kicker { margin-bottom: 8px; padding: 1px 10px; font-size: .8125rem; }
  .home-hero-lead { margin-top: 10px; font-size: 1rem; line-height: 1.8; }
  .home-page .home-hero-lead span { display: inline; }
  /* .home-page keeps these ahead of the 768px rules above, whatever the order. */
  .home-page .home-hero-actions { flex-direction: row; margin-top: 18px; }
  .home-page .home-hero-actions .button { width: auto; min-height: 44px; }
  .home-hero-visual { display: none; }
  .home-facts { margin-top: 20px; }
}
/* The campaign line already says キャンペーン; drop the badge where it would push the line to four rows. */
@media (max-width: 359px) {
  .home-campaign-badge { display: none; }
  /* Keeps お問い合わせはこちら on one line on a 280px cover screen. */
  .home-campaign-band-link { padding-inline: 16px; }
  .home-campaign-band-cta { padding-inline: 12px; font-size: 1rem; }
}
