/* ==========================================================================
   HALUHANA GROUP — Static Desktop Implementation
   ----------------------------------------------------------------------
   Scaling philosophy (revised):

   The reference PC design is a 1920px canvas, but the information that
   matters lives in a fixed ~1200px safe area (label 200px + main 890px +
   aside 110px) centered on the page. That 1200px zone — and every font
   size / component size within it — is NOT proportionally scaled down as
   the viewport narrows. Instead:

     1920px → ~1200px viewport:
       - the 1200px content zone stays a fixed size (px / rem)
       - only the OUTER MARGINS shrink (flex space, via minmax(0,1fr))
       - background/decorative elements (hero-bg-shape, hero-lines, the
         scattered circle/plus/triangle/equals marks) are fixed-size and
         anchored to the page edge, so they get naturally cropped by the
         section's overflow:hidden as the viewport narrows — they never
         shrink themselves
       - text sizes are literal px, never viewport-relative

     below ~1200px:
       - out of scope for this pass; layout will overflow rather than
         reflow until a dedicated responsive pass is done later
   ========================================================================== */

:root {
  --black: #000000;
  --footer-bg: #1a1a1a;
  --gray-bg: #e6e6e6;
  --rule: rgba(0, 0, 0, 0.12);
  --rule-dark: rgba(255, 255, 255, 0.16);
  --white: #ffffff;

  /* fixed content-zone column widths (measured from the 1920px reference) */
  --col-label: 200px;
  --col-main: 890px;
  --col-aside: 110px;
  --content-width: 1200px; /* 200 + 890 + 110 */

  /* brand accent colors, sampled from reference/05-group.jpg + 02-business.jpg */
  --c-hitosora: #ffff00;
  --c-ennichi: #fe1d25;
  --c-minafriend: #f7941d;
  --c-nakano: #28abe3;
  --c-aretha: #8cc63e;
  --c-hgi: #009345;
  --c-jgc: #ff7bac;
  --c-bloomuuu: #5e4d91;
  --c-dapoer: #c69b6e;
  --c-firstlounge: #2f7f7c;
  --c-street: #e6e6e6;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--white);
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==========================================================================
   Page canvas — 1920px is the design canvas, not a scaling reference.
   On viewports wider than 1920px the canvas simply stays 1920px and
   centers; it is never stretched larger.
   ========================================================================== */

.page {
  position: relative;
  background: var(--white);
}

/* ==========================================================================
   Layout grid
   1200px content zone (label 200 / main 890 / aside 110) stays fixed.
   Only the two outer margin tracks are flexible, so they are what
   shrinks first as the viewport narrows from 1920px toward 1200px.
   ========================================================================== */

.grid {
  display: grid;
  max-width: 1920px;
  margin-inline: auto;
  grid-template-columns:
    minmax(0, 1fr)
    var(--col-label)
    var(--col-main)
    var(--col-aside)
    minmax(0, 1fr);
}

.col-label   { grid-column: 2 / 3; }
.col-main    { grid-column: 3 / 4; }
.col-content { grid-column: 2 / 5; }
.col-wide    { grid-column: 2 / 5; }
.col-full    { grid-column: 1 / 6; }

/* ==========================================================================
   Type helpers — fixed px, matched 1:1 to the reference measurements.
   These never shrink with viewport width.
   ========================================================================== */

.eyebrow-vertical {
  writing-mode: vertical-rl;
  text-orientation: sideways;
  transform: rotate(180deg);
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--black);
  align-self: start;
  justify-self: start;
}

.eyebrow-vertical.on-dark { color: var(--white); }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  font-weight: 500;
}

/* ==========================================================================
   Decorative symbols (circles / plus / triangle / equals)
   Recreated in CSS per implementation.md — fixed size, fixed position,
   anchored to the section's left or right edge (whichever they're closer
   to in the reference). They do not move or shrink with viewport width;
   as the section narrows they are simply cropped by its overflow:hidden,
   exactly like hero-lines.svg and hero-bg-shape.svg.
   ========================================================================== */

.deco { position: absolute; pointer-events: none; }

.deco-circle {
  border-radius: 50%;
  border: 1.4px solid currentColor;
}

.deco-plus {
  font-size: 20px;
  line-height: 1;
  color: currentColor;
  font-weight: 300;
}

.deco-tri {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 12px solid currentColor;
}

.deco-eq {
  font-size: 18px;
  color: currentColor;
  font-weight: 400;
}

/* ==========================================================================
   Header / Navigation (static flow — not fixed per implementation instructions)
   ========================================================================== */

.site-header {
  padding-top: 40px;
  padding-bottom: 28px;
  align-items: center;
}

.logo-text {
  font-size: 16px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-text strong {
  font-weight: 800;
}

.logo-text span {
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  justify-self: end;
  align-self: center;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

/* ==========================================================================
   HERO / VISION
   All measurements below are read directly off reference/01-hero-vision.jpg
   at the 1920px baseline (pixel-measured, not estimated).
   ========================================================================== */

.hero-vision {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* fixed-size decorative layer, anchored to the right edge of the section —
   allowed to be cropped on the left as the section narrows.
   Measured: displayed at native SVG size (860x1579.65), flush to the
   section's top-right corner. Its bottom runs well past the section's
   own height (1190px) and is cropped by overflow:hidden — by design. */
.hero-bg-shape {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 860px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

/* Anchor layer: shares the same column grid as the content (label/main/
   aside), purely so hero-lines can be pinned to the main column (the same
   column HALUHANA lives in) instead of the viewport edge. Transparent,
   full-bleed over the hero, never intercepts clicks. */
.hero-lines-anchor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* The curve cluster's left edge is pinned to the main column's start line —
   the same grid line HALUHANA's text block starts from — so it tracks
   HALUHANA (not the viewport edge) as the margins grow/shrink.
   Vertical size/position is native and NEVER scales (scaleY is always 1):
   only the width (and therefore only the horizontal stretch, via
   preserveAspectRatio="none" on the svg below) grows past 1920px viewport,
   so the right end is always pushed off-screen without ever distorting
   the curves' height, Y position or crossing points. */
.hero-lines {
  position: absolute;
  grid-column: 3 / 4;
  top: -60px;
  left: 0;
  color: var(--black);
  pointer-events: none;
}

/* width stays at the native 1437px for any viewport ≤1920px (identical to
   the reference at 1920px); beyond 1920px it grows 1:1 with the extra
   viewport width so the right end keeps clearing the screen. Height is a
   fixed 820px (native) at all times — never "auto", never scaled. */
.hero-lines svg {
  display: block;
  width: calc(1437px + max(0px, 100vw - 1920px));
  height: 820px;
}

.hero-lines svg path {
  stroke: currentColor;
}

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-top {
  position: relative;
  z-index: 2;
  /* places the logo-mark / HALUHANA top edge at y≈260px from the page top,
     i.e. ~173px below the header row */
  padding-top: 173px;
}

/* logo-mark: measured 200x200, flush to the label column's left edge,
   top-aligned with HALUHANA's cap-height */
.hero-mark {
  width: 200px;
  height: 200px;
  grid-column: 2 / 3;
  align-self: start;
}

/* extra inset so the main column reads as a clearly separate band from the
   label column (logo-mark / GROW CONNECT CREATE / OUR VISION) — a visible
   blank gutter, not just the font's natural side-bearing */
.hero-wordblock {
  grid-column: 3 / 5;
  padding-left: 48px;
}

/* HALUHANA: measured cap-height 105px → font-size 144px. */
.hero-word {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 144px;
  line-height: 0.82;
  letter-spacing: -0.01em;
  margin: 8px 0 0;
}

/* black tagline bar: measured 839x69, matching HALUHANA's width exactly,
   with a uniform 6px inset on all sides around the white text */
.hero-tagline {
  background: var(--black);
  color: var(--white);
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 58px;
  line-height: 1;
  padding: 6px 6px;
  margin-top: 16px;
}

/* GROW / CONNECT / CREATE: measured cap-height ~31px → font-size ~40px,
   tight line-height (measured line pitch ≈ font-size). Starts 51px below
   the logo-mark, left-aligned with it. */
.hero-links {
  grid-column: 2 / 3;
  padding-top: 45px;
}

.hero-links p {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 1.02;
  margin: 0;
}

/* intro paragraph: same left inset as HALUHANA so both share one main-column
   baseline, clearly separated from the label column. */
.hero-intro {
  grid-column: 3 / 5;
  padding-top: 48px;
  padding-left: 48px;
}

.hero-intro p {
  font-size: 17px;
  line-height: 2;
  margin: 0;
  max-width: 660px;
}

/* VISION block: measured gap from the intro paragraph to the heading is
   ~104px on the main column. Needs its own stacking context (z-index)
   so hero-bg-shape — which runs taller than the hero section and bleeds
   down into this block — never paints above the heading/body text. */
.vision-block {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 230px;
}

.vision-label {
  grid-column: 2 / 3;
  justify-self: end;
  align-self: start;
  /* reference reads top-to-bottom without the extra flip used elsewhere;
     scoped to this element only so OUR BUSINESS / FUTURE / COMPANY labels
     (sharing .eyebrow-vertical) are not affected */
  transform: none;
}

.vision-body {
  grid-column: 3 / 5;
  padding-left: 48px;
}

/* VISION heading — dedicated class (kept separate from the shared
   .section-heading used by BUSINESS/FUTURE so those sections are not
   affected). */
.vision-heading {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 58px;
  line-height: 1.12;
  margin: 0 0 40px;
  max-width: 900px;
}

/* VISION body copy — dedicated class. */
.vision-copy {
  font-size: 17px;
  line-height: 2;
  margin: 0;
  max-width: 870px;
}

.section-heading {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.45;
  margin: 0 0 28px;
}

.section-body {
  font-size: 16px;
  line-height: 1.95;
  margin: 0;
  max-width: 760px;
}

/* ==========================================================================
   BUSINESS
   ========================================================================== */

.business {
  background: var(--white);
}

.business-intro {
  background: var(--black);
  color: var(--white);
  padding-top: 64px;
  padding-bottom: 64px;
}

.business-intro .section-heading,
.business-intro .section-body {
  color: var(--white);
}

.business-list {
  border-top: 1px solid var(--rule);
}

.business-item {
  border-bottom: 1px solid var(--rule);
  padding-top: 56px;
  padding-bottom: 56px;
}

.business-num {
  grid-column: 2 / 3;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 2px solid var(--black);
  display: inline-block;
  padding-bottom: 6px;
  width: fit-content;
  align-self: start;
}

.business-body {
  grid-column: 3 / 5;
}

.business-cat {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 30px;
}

.business-headline {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.business-copy {
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 30px;
  max-width: 700px;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

.brand-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}

.brand-list li:not(.brand-sep)::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 9px;
  background: var(--swatch, var(--black));
}

.brand-sep {
  color: var(--rule);
  font-size: 15px;
}

/* ==========================================================================
   OUR CONNECTION
   ========================================================================== */

.connection {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  padding-bottom: 56px;
}

.connection-wave {
  position: absolute;
  top: 30px;
  left: 0;
  width: 1920px;
  max-width: none;
  height: auto;
  color: rgba(255, 255, 255, 0.5);
  z-index: 0;
  pointer-events: none;
}

.connection-head {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-bottom: 56px;
}

.connection-head .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.connection-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 46px;
  margin: 0 0 26px;
}

.connection-sub {
  font-size: 15px;
  line-height: 1.9;
  margin: 0 auto;
  max-width: 760px;
}

.connection-steps {
  position: relative;
  z-index: 1;
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 16px;
}

.connection-steps li {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.connection-steps .en {
  display: block;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
}

.connection-steps .ja {
  display: block;
  font-size: 13px;
  opacity: 0.85;
}

/* ==========================================================================
   FUTURE
   ========================================================================== */

.future {
  background: var(--white);
  padding-top: 90px;
  padding-bottom: 90px;
}

.future-head {
  padding-bottom: 60px;
}

.future-grid {
  grid-column: 1 / 6;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  row-gap: 20px;
}

.future-item-tag {
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 24px;
  padding: 32px 28px;
  margin-bottom: 24px;
}

.future-item-tag .n {
  margin-right: 10px;
}

.future-item-desc {
  font-size: 15px;
  line-height: 1.85;
  margin: 0;
  padding: 0 28px;
}

/* ==========================================================================
   GROUP COMPANIES & PROJECTS
   ========================================================================== */

.group {
  background: var(--white);
  padding-top: 90px;
  padding-bottom: 100px;
}

.group-head {
  text-align: center;
  padding-bottom: 70px;
}

.group-head .eyebrow {
  display: block;
  margin-bottom: 20px;
}

.group-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 40px;
  margin: 0 0 26px;
}

.group-sub {
  font-size: 15px;
  line-height: 1.9;
  margin: 0 auto;
  max-width: 760px;
}

.group-grid {
  grid-column: 2 / 5;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 60px;
  row-gap: 56px;
}

.company-card .swatch {
  width: 40px;
  height: 4px;
  background: var(--swatch, var(--black));
  margin-bottom: 18px;
}

.company-card h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 16px;
}

.company-card p {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 14px;
}

.company-card p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   MESSAGE
   ========================================================================== */

.message {
  background: var(--white);
  padding-top: 110px;
  padding-bottom: 110px;
  text-align: center;
}

.message-inner {
  grid-column: 2 / 5;
}

.message .eyebrow {
  display: block;
  margin-bottom: 24px;
}

.message-title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 38px;
  line-height: 1.5;
  margin: 0 auto 40px;
  max-width: 900px;
}

.message-body {
  max-width: 820px;
  margin: 0 auto;
}

.message-body p {
  font-size: 16px;
  line-height: 2.05;
  margin: 0 0 30px;
}

.message-statement {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.75;
  margin: 56px auto 30px;
  max-width: 820px;
}

.message-sign {
  margin-top: 50px;
  font-size: 15px;
  line-height: 1.8;
}

/* ==========================================================================
   COMPANY
   ========================================================================== */

.company {
  background: var(--black);
  color: var(--white);
  padding-top: 96px;
  padding-bottom: 64px;
}

.company-brand {
  grid-column: 2 / 5;
  text-align: center;
  padding-bottom: 70px;
}

.company-mark {
  width: 508px;
  height: auto;
  margin: 0 auto;
}

.company-table-label {
  grid-column: 2 / 3;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.company-table-label .eyebrow-vertical {
  align-self: stretch;
}

.company-rule {
  width: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.company-table {
  grid-column: 3 / 5;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.company-table .row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px 0;
}

.company-table dt {
  font-size: 14px;
  opacity: 0.85;
}

.company-table dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

/* ==========================================================================
   CONTACT (small entry point — no dedicated section/form per brief)
   ========================================================================== */

.contact-strip {
  background: var(--black);
  color: var(--white);
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-strip-inner {
  grid-column: 2 / 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-strip-label {
  font-size: 16px;
  font-weight: 500;
}

.contact-strip-link {
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid var(--white);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--white);
  padding-top: 26px;
  padding-bottom: 26px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
