/* ============================================================
   DESIGN G — SPLIT
   Fixed full-height left sidebar (brand fill) + scrolling right
   column. All rules scoped under .G. Brand colours come from the
   theme tokens only (var(--brand) / var(--accent) …) so the colour
   switcher re-skins this design too.
   ============================================================ */

.G { background: var(--page-bg); color: var(--text); }
.G { --side-w: 300px; }

/* shared placeholder fill helpers (kept scoped) */
.G .ph-img { object-fit: cover; }

/* ---- reusable bits ---------------------------------------- */
.G .G-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 14px; letter-spacing: .22em;
  color: var(--accent); text-transform: uppercase;
}
.G .G-eyebrow .bar { width: 30px; height: 1px; background: var(--accent); }
.G .G-eyebrow.light { color: var(--accent-2); }
.G .G-eyebrow.light .bar { background: var(--accent-2); }

.G .G-ar {
  width: 30px; height: 1px; background: currentColor; position: relative;
  display: inline-block; transition: width .3s;
}
.G .G-ar::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px; border-top: 1px solid currentColor;
  border-right: 1px solid currentColor; transform: rotate(45deg);
}

.G .G-textlink {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 22px;
  font-size: 13.5px; letter-spacing: .08em; color: var(--brand);
}
.G .G-textlink:hover .G-ar { width: 44px; }

.G .G-sec-head { margin-bottom: 40px; }
.G .G-sec-head h2 {
  font-family: var(--serif-jp); font-weight: 600; font-size: 30px;
  letter-spacing: .04em; color: var(--text); margin-top: 14px;
}

/* ============================================================
   SIDEBAR (fixed, full height)
   ============================================================ */
.G-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w);
  z-index: 100; background: var(--brand); color: var(--on-brand);
  display: flex; flex-direction: column;
  padding: 90px 30px 32px;               /* 90px top clears the control bar */
  overflow-y: auto;
  border-right: 1px solid color-mix(in srgb, var(--brand-ink) 60%, transparent);
}

/* brand */
.G-side-top { flex: 0 0 auto; }
.G-brand { display: flex; align-items: center; gap: 14px; }
.G-brand-name {
  font-family: var(--serif-jp); font-weight: 600; font-size: 20px;
  letter-spacing: .05em; line-height: 1.15; color: var(--on-brand);
}
.G-brand-name small {
  display: block; font-family: var(--display); font-size: 9.5px;
  letter-spacing: .4em; color: var(--accent-2); margin-top: 5px; font-weight: 500;
}

/* vertical nav — centred in the remaining space */
.G-nav {
  flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center;
  gap: 4px; margin: 40px 0;
}
.G-nav-link {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 12px; border-radius: 6px;
  color: color-mix(in srgb, var(--on-brand) 88%, transparent);
  transition: background .25s, color .25s, padding-left .25s;
  position: relative;
}
.G-nav-no {
  font-family: var(--display); font-size: 13px; letter-spacing: .12em;
  color: var(--accent-2); min-width: 22px;
}
.G-nav-txt { display: flex; flex-direction: column; gap: 3px; }
.G-nav-txt .jp {
  font-family: var(--serif-jp); font-size: 17px; font-weight: 500; letter-spacing: .05em;
}
.G-nav-txt .en {
  font-family: var(--display); font-size: 10.5px; letter-spacing: .22em;
  color: color-mix(in srgb, var(--on-brand) 58%, transparent); text-transform: uppercase;
}
.G-nav-link:hover {
  background: rgba(255,255,255,.07); padding-left: 18px; color: #fff;
}

/* bottom contact block */
.G-side-btm { flex: 0 0 auto; }
.G-tel {
  display: flex; align-items: center; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16);
}
.G-tel-txt { display: flex; flex-direction: column; }
.G-tel .num {
  font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: .04em;
  color: var(--on-brand);
}
.G-tel .hrs {
  font-size: 10.5px; letter-spacing: .06em;
  color: color-mix(in srgb, var(--on-brand) 62%, transparent); margin-top: 3px;
}
.G-social { display: flex; gap: 10px; margin: 20px 0 22px; }
.G-social a {
  width: 34px; height: 34px; border-radius: 7px; display: grid; place-items: center;
  transition: transform .25s, filter .25s;
}
.G-social .fb { background: #2b4a8b; }
.G-social .ln { background: #16b400; }
.G-social a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.G-addr {
  font-size: 11px; line-height: 1.9; letter-spacing: .04em;
  color: color-mix(in srgb, var(--on-brand) 66%, transparent);
}

/* ============================================================
   RIGHT COLUMN
   ============================================================ */
.G-main { margin-left: var(--side-w); min-height: 100vh; }

/* ---- hero ---- */
.G-hero { position: relative; height: 580px; overflow: hidden; color: #fff; }
.G-hero .ph { position: absolute; inset: 0; }
.G-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    color-mix(in srgb, var(--brand-ink) 88%, transparent) 0%,
    color-mix(in srgb, var(--brand-ink) 60%, transparent) 46%,
    color-mix(in srgb, var(--brand-ink) 18%, transparent) 100%);
}
.G-hero-inner {
  position: relative; height: 100%; max-width: 760px;
  padding: 0 64px; display: flex; flex-direction: column; justify-content: center;
}
.G-hero-en {
  font-family: var(--display); font-size: 13px; letter-spacing: .34em;
  color: var(--accent-2); margin-bottom: 26px;
}
.G-hero h1 {
  font-family: var(--serif-jp); font-weight: 500; font-size: 44px; line-height: 1.5;
  letter-spacing: .03em; text-shadow: 0 2px 26px rgba(0,0,0,.4);
}
.G-hero-lead {
  margin-top: 26px; font-size: 14.5px; line-height: 2; letter-spacing: .04em;
  color: rgba(255,255,255,.9);
}
.G-scroll {
  position: absolute; right: 30px; bottom: 0; display: flex; flex-direction: column;
  align-items: center; gap: 14px; writing-mode: vertical-rl;
  font-family: var(--display); font-size: 12px; letter-spacing: .4em; color: rgba(255,255,255,.8);
}
.G-scroll::after { content: ""; width: 1px; height: 64px; background: linear-gradient(rgba(255,255,255,.7), transparent); }

/* ---- about ---- */
.G-about {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
  padding: 96px 64px;
}
.G-about-fig { position: relative; height: 360px; overflow: hidden; }
.G-about-fig::before {
  content: ""; position: absolute; left: -18px; top: -18px; width: 90px; height: 90px;
  border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); z-index: 2;
}
.G-about-fig .ph { position: absolute; inset: 0; }
.G-about-txt h2 {
  font-family: var(--serif-jp); font-weight: 600; font-size: 30px; line-height: 1.6;
  letter-spacing: .04em; color: var(--text); margin-top: 16px;
}
.G-about-txt p {
  margin-top: 26px; font-size: 14.5px; line-height: 2.1; color: var(--text-soft);
}

/* ---- service (stacked rows) ---- */
.G-serv { padding: 30px 64px 96px; background: var(--surface); }
.G-serv-list { border-top: 1px solid var(--line); }
.G-serv-row {
  display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 30px;
  padding: 34px 8px; border-bottom: 1px solid var(--line);
  color: var(--text); transition: background .3s, padding-left .3s;
}
.G-serv-no {
  font-family: var(--display); font-size: 52px; font-weight: 400; line-height: 1;
  color: var(--accent);
}
.G-serv-body { display: flex; flex-direction: column; gap: 6px; }
.G-serv-body .jp {
  font-family: var(--serif-jp); font-size: 22px; font-weight: 600; letter-spacing: .03em;
}
.G-serv-body .en {
  font-family: var(--display); font-size: 12px; letter-spacing: .2em;
  color: var(--text-soft); text-transform: uppercase;
}
.G-serv-body .p {
  margin-top: 8px; font-size: 13.5px; line-height: 1.9; color: var(--text-soft); max-width: 640px;
}
.G-serv-row .G-ar { color: var(--brand); justify-self: end; }
.G-serv-row:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); padding-left: 16px; }
.G-serv-row:hover .G-ar { width: 44px; }

/* ---- news ---- */
.G-news { padding: 90px 64px; }
.G-news-list { border-top: 1px solid var(--line); }
.G-news-row {
  display: flex; align-items: center; gap: 34px; padding: 22px 6px;
  border-bottom: 1px solid var(--line); transition: background .25s;
}
.G-news-row .date {
  font-family: var(--display); font-size: 16px; letter-spacing: .05em;
  color: var(--text-soft); min-width: 92px;
}
.G-news-row .ttl { font-size: 14.5px; color: var(--text); flex: 1; }
.G-news-row .chev { color: var(--brand-line); transition: transform .25s, color .25s; }
.G-news-row:hover { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.G-news-row:hover .chev { transform: translateX(4px); color: var(--brand); }
.G-news-more { margin-top: 32px; }

/* ---- contact band ---- */
.G-contact {
  position: relative; overflow: hidden; padding: 84px 64px; color: #fff;
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
}
.G-contact-head h2 {
  font-family: var(--serif-jp); font-weight: 600; font-size: 28px; letter-spacing: .04em;
  margin-top: 14px; color: #fff;
}
.G-contact-head p {
  margin-top: 18px; font-size: 13.5px; line-height: 1.9; letter-spacing: .04em;
  color: rgba(255,255,255,.82);
}
.G-contact-actions {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.G-cbtn {
  display: flex; align-items: center; gap: 16px; padding: 28px 30px;
  border: 1px solid rgba(255,255,255,.32); transition: background .3s, border-color .3s;
}
.G-cbtn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }
.G-cbtn-ic { display: inline-flex; color: var(--accent-2); }
.G-cbtn .txt { display: flex; flex-direction: column; gap: 4px; }
.G-cbtn .big {
  font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: .04em; color: #fff;
}
.G-cbtn .lab { font-size: 15px; letter-spacing: .06em; color: #fff; }
.G-cbtn .sub { font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.G-cbtn.form { justify-content: flex-start; }
.G-cbtn.form .G-ar.light { color: #fff; margin-left: auto; }

/* footer sits inside the right column via shared <Footer variant="B"> */
.G .ft-wrap { max-width: 960px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .G { --side-w: 260px; }
  .G-hero-inner, .G-about, .G-serv, .G-news, .G-contact { padding-left: 48px; padding-right: 48px; }
  .G-hero h1 { font-size: 38px; }
  .G-about { gap: 40px; }
}

/* collapse the fixed sidebar into a static top header */
@media (max-width: 980px) {
  .G-side {
    position: static; width: 100%; height: auto; bottom: auto;
    flex-direction: column; padding: 88px 24px 22px; overflow: visible;
    border-right: none; border-bottom: 1px solid color-mix(in srgb, var(--brand-ink) 55%, transparent);
  }
  .G-nav {
    flex-direction: row; flex-wrap: wrap; justify-content: flex-start;
    gap: 6px 4px; margin: 22px 0 20px;
  }
  .G-nav-link { padding: 8px 12px; }
  .G-nav-link:hover { padding-left: 12px; }
  .G-nav-txt { flex-direction: row; align-items: baseline; gap: 8px; }
  .G-nav-txt .jp { font-size: 15px; }
  .G-nav-txt .en { display: none; }
  .G-side-btm {
    display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px;
  }
  .G-tel { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); width: 100%; }
  .G-tel-txt { flex-direction: row; align-items: baseline; gap: 12px; }
  .G-social { margin: 0; }
  .G-addr { flex: 1 1 auto; }
  .G-addr br { display: none; }

  .G-main { margin-left: 0; }
  .G-hero { height: 460px; }
  .G-hero-inner { max-width: none; }
  .G-about { grid-template-columns: 1fr; gap: 30px; }
  .G-about-fig { height: 280px; }
  .G-contact-actions { grid-template-columns: 1fr; }
}

/* phone: single column, no horizontal scroll */
@media (max-width: 720px) {
  .G-side { padding: 84px 20px 20px; }
  .G-brand-name { font-size: 18px; }
  .G-nav-link { padding: 7px 10px; }
  .G-nav-txt .jp { font-size: 14px; }

  .G-hero-inner, .G-about, .G-serv, .G-news, .G-contact { padding-left: 20px; padding-right: 20px; }
  .G-hero { height: auto; min-height: 400px; }
  .G-hero-inner { padding-top: 70px; padding-bottom: 60px; }
  .G-hero-en { font-size: 11px; letter-spacing: .28em; margin-bottom: 18px; }
  .G-hero h1 { font-size: 26px; line-height: 1.55; }
  .G-hero-scrim {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--brand-ink) 82%, transparent) 0%,
      color-mix(in srgb, var(--brand-ink) 55%, transparent) 100%);
  }
  .G-scroll { display: none; }

  .G-about, .G-news, .G-contact { padding-top: 56px; padding-bottom: 56px; }
  .G-serv { padding-top: 20px; padding-bottom: 56px; }
  .G-about-txt h2, .G-sec-head h2 { font-size: 24px; }
  .G-about-fig { height: 220px; }

  .G-serv-row { grid-template-columns: 60px 1fr; grid-template-rows: auto auto; gap: 6px 18px; padding: 26px 4px; }
  .G-serv-no { font-size: 40px; }
  .G-serv-body { grid-column: 2; }
  .G-serv-body .jp { font-size: 19px; }
  .G-serv-row .G-ar { display: none; }
  .G-serv-row:hover { padding-left: 4px; }

  .G-news-row { gap: 6px 14px; padding: 18px 4px; flex-wrap: wrap; }
  .G-news-row .date { min-width: 0; font-size: 14px; }
  .G-news-row .ttl { flex: 1 1 100%; font-size: 14px; }

  .G-contact-head h2 { font-size: 22px; }
  .G-cbtn { padding: 22px; }
  .G-cbtn .big { font-size: 25px; }
}

@media (max-width: 400px) {
  .G-brand-name { font-size: 17px; }
  .G-hero h1 { font-size: 23px; }
  .G-tel .num { font-size: 21px; }
}
