/*
 * Flower section stylesheet — edited by hand, not generated.
 * Concept: "贈る目的と条件を、静かに整える花の案内所"
 * Upscale, soft, calm, neutral information design — not an EC purchase LP.
 * No web fonts, no icon libraries, no CSS/JS frameworks (Phase 1D constraint).
 */

:root {
  --flower-bg: #FBF8F1;
  --flower-surface: #FFFFFF;
  --flower-surface-soft: #EEF3EC;

  --flower-text: #2F342F;
  --flower-text-muted: #667067;

  --flower-green: #2F5A45;
  --flower-green-hover: #274C3A;
  --flower-green-soft: #E5EEE7;

  --flower-border: #D8DED4;

  --flower-sage: #E8F0E7;
  --flower-sand: #F5EEDC;
  --flower-rose-soft: #F3E8E5;
  --flower-amber-soft: #F6E8C8;
  --flower-gray-soft: #F1F2F0;
  --flower-slate-soft: #E7ECF2;

  --flower-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --flower-radius: 8px;
  --flower-max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--flower-bg);
  color: var(--flower-text);
  font-family: var(--flower-font);
  line-height: 1.7;
}

a {
  color: var(--flower-green);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--flower-green);
  outline-offset: 2px;
}

.flower-header,
.flower-footer {
  background: var(--flower-surface);
  border-bottom: 1px solid var(--flower-border);
}

.flower-footer {
  border-top: 1px solid var(--flower-border);
  border-bottom: none;
  color: var(--flower-text-muted);
  font-size: 0.875rem;
}

.flower-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.flower-footer__operator,
.flower-footer__contact {
  margin: 0 0 0.35rem;
}

.flower-footer__contact {
  margin-bottom: 0;
}

.flower-header__inner,
.flower-footer__inner,
.flower-main {
  max-width: var(--flower-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.flower-header__inner > a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--flower-green);
  font-weight: 600;
  text-decoration: none;
}

.flower-header__inner > a:hover span {
  text-decoration: underline;
}

.flower-header__symbol {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
}

.flower-main {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

/* ---- Hero (Phase Visual Asset v0.1 — Flower Neutral Core) ----
   Decorative artwork only; site name/H1/description/CTA stay plain HTML
   text in .flower-hero__text (see HomePageRenderer). Mobile-first: text
   then artwork, stacked, with the artwork cropped (not the site's max
   content width) to its motif-heavy right portion so the source image's
   large transparent left margin doesn't read as empty vertical space.

   Hero Layout Polish v0.2: PM cross-page visual review found the Hero
   read as two disconnected pieces — a tall single-row CSS Grid overlap
   (text and artwork sharing one grid cell, art right-aligned via
   justify-self) let the artwork's own aspect-ratio-driven height (previously
   ~480px at 72% width) dictate the whole row's height, so text sat
   vertically centered in a row far taller than its own content and the
   artwork read as a large block underneath/behind it rather than a
   partner in one composition — plus made the Hero read as much taller
   than intended on desktop. Fixed by moving to a genuine 2-column grid
   (text | artwork, ~50:50, same row, gap instead of overlap) with the
   artwork capped to a moderate width/height so the row's height is driven
   by something close to the text block's own natural height, not the
   artwork's full aspect-ratio extent — this is the "content-driven, not
   viewport-driven" Hero height the artwork size itself was quietly
   fighting against under the old single-row overlap. On mobile, default
   browser margins on <h1>/<p> inside .flower-hero__text were removed in
   favor of an explicit small flex gap, and the artwork's own top margin
   tightened, so the text-to-artwork gap reads as normal in-page spacing
   rather than a second section starting.

   Hero Visual Update v3 (SOUGOU-FLOWER-VISUAL-P1A): v1's illustrated
   artwork (transparent background, needed object-fit:contain on desktop
   so the canvas wasn't stretched/cropped, plus a right-weighted mobile
   crop to hide its large empty left margin) is replaced by a photographic
   still life pre-cropped to exactly 3:2 at generation time (see
   scripts/generate-hero-v2-assets.ps1) — a full-bleed photo with no
   transparency, already matching the box's aspect ratio, so both
   breakpoints now use object-fit:cover with object-position:center
   (cover on an already-3:2 source inside a 3:2 box shows the whole
   image; no further crop actually occurs). Layout/grid/sizing rules
   themselves are otherwise unchanged from v0.2. */

.flower-hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.flower-hero__text {
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flower-hero__text h1,
.flower-hero__text p {
  margin: 0;
}

.flower-hero__art {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  margin: 1rem 0 0;
  border-radius: var(--flower-radius);
}

@media (min-width: 700px) {
  .flower-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }

  .flower-hero__text {
    grid-column: 1;
    grid-row: 1;
    gap: 0.75rem;
  }

  .flower-hero__art {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: 100%;
    max-width: 30rem;
    aspect-ratio: 3 / 2;
    max-height: 21rem;
    object-fit: cover;
    object-position: center;
    margin: 0;
    border-radius: var(--flower-radius);
  }
}

/* ---- Breadcrumb (Phase 3B condition pages) ---- */

.breadcrumb {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  color: var(--flower-text-muted);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "\203A";
  margin-right: 0.35rem;
  color: var(--flower-text-muted);
}

/* ---- Hero ---- */

.service-hero__name {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.4;
}

.service-hero__type {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--flower-green-soft);
  color: var(--flower-green);
  font-size: 0.8125rem;
  font-weight: 600;
}

.service-hero__summary {
  margin: 0 0 1.25rem;
  color: var(--flower-text-muted);
}

/* ---- Section headings ---- */

.flower-section {
  margin: 2rem 0;
}

.flower-section > h2 {
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--flower-border);
}

.flower-section--muted {
  opacity: 0.96;
}

.flower-section--muted > h2 {
  font-size: 1rem;
  color: var(--flower-text-muted);
}

.flower-section__intro {
  margin: 0 0 1rem;
  color: var(--flower-text-muted);
  font-size: 0.9375rem;
}

.flower-section__group {
  margin: 0 0 1.5rem;
}

.flower-section__group:last-child {
  margin-bottom: 0;
}

.flower-section__group > h3 {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--flower-text-muted);
}

/* ---- Quick facts ---- */

.quick-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.fact-item {
  background: var(--flower-surface);
  border: 1px solid var(--flower-border);
  border-radius: var(--flower-radius);
  padding: 0.85rem 1rem;
}

.fact-item__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--flower-text-muted);
  margin-bottom: 0.35rem;
}

.fact-item__note {
  margin: 0.4rem 0 0;
  font-size: 0.875rem;
  color: var(--flower-text-muted);
  line-height: 1.6;
}

/* ---- Status badge ---- */

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  background: var(--flower-gray-soft);
  color: var(--flower-text);
}

.status-badge--confirmed {
  background: var(--flower-sage);
  color: var(--flower-green);
}

.status-badge--conditional {
  background: var(--flower-sand);
  color: #6B5A2A;
}

.status-badge--not_verified {
  background: var(--flower-gray-soft);
  color: var(--flower-text-muted);
}

.status-badge--not_offered {
  background: var(--flower-rose-soft);
  color: #7A5B57;
}

.status-badge--unresolved {
  background: var(--flower-amber-soft);
  color: #7A5F1E;
}

.status-badge--not_applicable {
  background: var(--flower-gray-soft);
  color: var(--flower-text-muted);
}

.status-badge--field_absent {
  background: var(--flower-slate-soft);
  color: #4F6478;
}

/* ---- Fact rows (corporate etc.) ---- */

.fact-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--flower-border);
  align-items: start;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row__term {
  color: var(--flower-text-muted);
  font-size: 0.875rem;
}

.fact-row__detail {
  min-width: 0;
}

/* ---- Related facts container (e.g. stand + collection) ---- */

.related-facts {
  border: 1px solid var(--flower-border);
  border-radius: var(--flower-radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: var(--flower-surface);
}

.related-facts > h3,
.related-facts > h4 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

/* ---- Service-specific highlight blocks (e-gift etc.) ---- */

.highlight-block {
  border: 1px solid var(--flower-border);
  border-radius: var(--flower-radius);
  padding: 1rem 1.1rem;
  margin: 0 0 1rem;
  background: var(--flower-surface-soft);
}

.highlight-block > h3,
.highlight-block > h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.highlight-block__flow {
  margin: 0.6rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
}

.highlight-block__flow-step {
  background: var(--flower-surface);
  border: 1px solid var(--flower-border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.highlight-block__flow-arrow {
  color: var(--flower-text-muted);
}

.highlight-block ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

/* ---- Taxonomy chips ---- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--flower-surface);
  border: 1px solid var(--flower-border);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.875rem;
}

/* ---- Generic fact list (used by several sections) ---- */

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fact-list__item {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--flower-border);
}

.fact-list__item:last-child {
  border-bottom: none;
}

.fact-list__note {
  margin: 0.3rem 0 0;
  color: var(--flower-text-muted);
  font-size: 0.9375rem;
}

/* ---- Short source link on individual facts ---- */

.source-link {
  margin-left: 0.35rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

/* ---- Official sources (collapsed by default via <details>) ---- */

.sources-details > summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}

.sources-details__title {
  font-weight: 600;
}

.sources-details__meta {
  color: var(--flower-text-muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

.sources-list {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sources-list__item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--flower-border);
  font-size: 0.9375rem;
}

.sources-list__item:last-child {
  border-bottom: none;
}

.sources-list__date {
  color: var(--flower-text-muted);
  font-size: 0.8125rem;
}

/* ---- CTA ---- */

.cta {
  margin: 1.25rem 0;
}

.cta__button {
  display: inline-block;
  background: var(--flower-green);
  color: #FFFFFF;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: var(--flower-radius);
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: none;
}

.cta__button:hover,
.cta__button:focus-visible {
  background: var(--flower-green-hover);
  color: #FFFFFF;
}

/* ---- Affiliate CTA (Phase 2B) ----
   Deliberately more muted than .cta__button (outline, not filled) so it
   reads as a secondary, clearly-labeled option next to the official CTA —
   never a competing or louder call to action. */

.cta--affiliate {
  margin-top: 0.5rem;
}

.ad-label {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--flower-gray-soft);
  color: var(--flower-text-muted);
  vertical-align: middle;
}

.affiliate-cta__button {
  display: inline-block;
  background: var(--flower-surface);
  color: var(--flower-green);
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--flower-green);
  border-radius: var(--flower-radius);
  font-size: 0.875rem;
  font-weight: 600;
  vertical-align: middle;
}

.affiliate-cta__button:hover,
.affiliate-cta__button:focus-visible {
  background: var(--flower-green-soft);
}

/* ---- Responsive ---- */

@media (min-width: 600px) {
  .fact-row {
    grid-template-columns: 10rem 1fr;
  }
}

@media (min-width: 700px) {
  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .fact-row {
    grid-template-columns: 1fr;
  }

  .fact-row__term {
    font-weight: 600;
  }

  .highlight-block__flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .highlight-block__flow-arrow {
    transform: rotate(90deg);
    display: inline-block;
  }
}

/* No layout in this stylesheet ever introduces horizontal scroll for its own
   content (quick-facts, fact-row, tables-as-rows) — everything collapses to a
   single column instead. */
