@charset "UTF-8";
/* ============================================================
   バディエステート 大阪本社 北区 — 特設ページ
   Design: 「黄昏の銀杏大通り／Ginkgo Boulevard at Dusk」
   梅田の高層街と、豊崎に残る昭和の街並み — その対比を
   黒褐色×金色で上品にまとめた、大阪本社ページより一段
   格上の「秋」を纏った北区専用デザイン。
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,500;1,500;1,600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* --- palette: 黄昏の金色 --- */
  --paper: #F5EFE1;
  /* 上質な生成り */
  --paper-deep: #EAE0C3;
  --paper-line: rgba(38, 28, 12, .12);
  --ink: #241C10;
  --ink-soft: #6C5D42;
  --night: #15110B;
  /* 宵闇の黒褐色 */
  --night-soft: #221A10;
  --night-line: rgba(247, 238, 217, .10);
  --gold: #B08A2E;
  --gold-deep: #7C5E1A;
  --gold-pale: #DFC077;
  --wine: #6E2C28;
  --pine: #3C4B33;
  --cream-text: #F7F0DE;

  --shadow-soft: 0 20px 46px -22px rgba(21, 17, 11, .55);
  --shadow-card: 0 12px 30px -16px rgba(21, 17, 11, .30);

  --font-display: "Shippori Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Cormorant Garamond", serif;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 6px;

  --ease-soft: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body,
h1,
h2,
h3,
p,
ul,
ol,
li,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

strong {
  font-weight: 700;
  color: var(--gold-deep);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: .02em;
  font-size: 1.55rem;
  overflow-x: hidden;
}

html {
  font-size: 62.5%;
}

@media screen and (min-width: 768px) {
  html {
    font-size: 60%;
  }
}

@media screen and (min-width: 1200px) {
  html {
    font-size: 62.5%;
  }
}

.en {
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: .1em;
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  position: relative;
}

@media screen and (max-width: 767px) {
  .section {
    padding: 58px 0;
  }

  .wrap {
    padding: 0 20px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold-deep);
  letter-spacing: .16em;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.8vw, 3.3rem);
  color: var(--ink);
  margin-top: 14px;
  line-height: 1.55;
}

.lead {
  font-size: 1.55rem;
  color: var(--ink-soft);
  line-height: 2;
  margin-top: 14px;
}

/* ---------- Reveal-on-scroll (required hooks for script_branch_detail.js) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease-soft), transform .65s var(--ease-soft);
}

.reveal-stagger.in-view>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.in-view>*:nth-child(1) {
  transition-delay: .04s;
}

.reveal-stagger.in-view>*:nth-child(2) {
  transition-delay: .12s;
}

.reveal-stagger.in-view>*:nth-child(3) {
  transition-delay: .20s;
}

.reveal-stagger.in-view>*:nth-child(4) {
  transition-delay: .28s;
}

.reveal-stagger.in-view>*:nth-child(5) {
  transition-delay: .36s;
}

/* ---------- Content block: alternating text / image (reused hook, restyled) ---------- */
.content-block {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-top: 54px;
  opacity: 0;
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}

.content-block.from-left {
  flex-direction: row;
  transform: translateX(-56px);
}

.content-block.from-right {
  flex-direction: row-reverse;
  transform: translateX(56px);
}

.content-block.in-view {
  opacity: 1;
  transform: translateX(0);
}

.content-block-text {
  flex: 3 1 0;
  min-width: 0;
}

.content-block-text>*:first-child {
  margin-top: 0;
}

.content-block-image {
  flex: 2 1 0;
  min-width: 0;
}

.image-placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(155deg, var(--paper-deep) 0%, var(--paper) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  color: var(--gold-deep);
  text-align: center;
  padding: 5px;
  box-shadow: var(--shadow-card);
}

.image-placeholder img {
  border-radius: var(--radius-lg);
}

/* full-width text-only block (no image) — new variant for this page */
.full-block {
  margin-top: 54px;
  max-width: 760px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft);
}

.full-block.in-view {
  opacity: 1;
  transform: translateY(0);
}

.full-block>*:first-child {
  margin-top: 0;
}

@media screen and (max-width: 860px) {
  .content-block {
    flex-direction: column !important;
    gap: 24px;
    transform: translateY(28px) !important;
  }

  .content-block.in-view {
    transform: translateY(0) !important;
  }

  .content-block-image {
    width: 100%;
    order: 2;
  }

  .content-block-text {
    order: 1;
  }

  .image-placeholder {
    min-height: 160px;
  }
}

/* ---------- Scroll progress rail (signature element — ginkgo leaf) ---------- */
.progress-rail {
  position: fixed;
  top: 12%;
  right: 22px;
  height: 76%;
  width: 26px;
  display: none;
  z-index: 40;
  pointer-events: none;
}

@media screen and (min-width: 1200px) {
  .progress-rail {
    display: block;
  }
}

.progress-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--paper-line) 8%, var(--paper-line) 92%, transparent);
  transform: translateX(-50%);
}

.progress-leaf {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 20px;
  height: 20px;
  color: var(--gold);
  filter: drop-shadow(0 3px 6px rgba(138, 106, 31, .35));
  transition: top .12s linear;
}

/* ---------- Hero (split layout — text left / visual right) ---------- */
.hero-kita {
  position: relative;
  overflow: hidden;
  background: var(--night);
  padding: 168px 0 0;
}

.hero-kita-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 84px;
}

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

.hero-leaf-k {
  position: absolute;
  top: -8%;
  width: 26px;
  height: 26px;
  color: orange;
  opacity: .38;
  animation: leafFallK 14s linear infinite;
}

.hero-leaf-k.l2 {
  color: orange;
  opacity: .3;
}

@keyframes leafFallK {
  0% {
    transform: translate(0, -10vh) rotate(0deg);
    opacity: 0;
  }

  8% {
    opacity: .45;
  }

  92% {
    opacity: .2;
  }

  100% {
    transform: translate(var(--drift, 50px), 120vh) rotate(300deg);
    opacity: 0;
  }
}

.hero-kita-text {
  position: relative;
  z-index: 2;
}

.hero-kita .eyebrow {
  color: var(--gold-pale);
}

.hero-kita .eyebrow::before {
  background: var(--gold-pale);
}

.hero-kita-title {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cream-text);
  font-size: clamp(2.9rem, 4.6vw, 4.6rem);
  line-height: 1.5;
  margin-top: 18px;
}

.hero-kita-sub {
  margin-top: 18px;
  font-size: 1.5rem;
  color: rgba(247, 240, 222, .78);
  line-height: 1.9;
  max-width: 44ch;
}

.hero-kita-quickfacts {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-quickfact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  color: var(--cream-text);
  background: rgba(247, 240, 222, .06);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 8px 16px;
}

.hero-quickfact svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
  flex: none;
}

.hero-kita-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  font-size: 1.35rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform .35s var(--ease-soft), background .35s ease;
}

.hero-kita-cta:hover {
  background: var(--gold-pale);
  transform: translateY(-3px);
}

.hero-kita-cta svg {
  width: 15px;
  height: 15px;
}

.hero-kita-visual {
  position: relative;
  z-index: 2;
}

.hero-kita-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(247, 240, 222, .14);
  box-shadow: var(--shadow-soft);
}

.hero-kita-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-kita-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(21, 17, 11, 0) 40%, rgba(21, 17, 11, .65) 100%);
}

.hero-kita-skyline {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74px;
  color: var(--night-soft);
}

@media screen and (max-width: 900px) {
  .hero-kita-inner {
    grid-template-columns: 1fr;
    padding-bottom: 56px;
  }

  .hero-kita-visual {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-kita {
    padding-top: 140px;
  }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px 0;
  font-size: 1.2rem;
  color: var(--ink-soft);
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb a:hover {
  color: var(--gold-deep);
}

.breadcrumb .sep {
  opacity: .5;
}

.breadcrumb .current {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Two-column body: sticky sidebar + main ---------- */
.kita-layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 24px 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 52px;
  align-items: start;
}

.kita-sidebar {
  position: sticky;
  top: 170px;
}

.sidebar-card {
  position: relative;
  overflow: hidden;
  background: var(--night);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}

.sidebar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(176, 138, 46, .35), transparent 55%);
}

.sidebar-inner {
  position: relative;
  color: var(--cream-text);
}

.branch-badge {
  display: inline-block;
  font-family: var(--font-en);
  font-style: italic;
  letter-spacing: .14em;
  font-size: 1.2rem;
  color: var(--gold-pale);
  border: 1px solid rgba(247, 240, 222, .35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

.branch-name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
}

.branch-address {
  margin-top: 8px;
  font-size: 1.25rem;
  color: rgba(247, 240, 222, .78);
  line-height: 1.7;
}

.branch-meta {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
}

.branch-tel {
  display: block;
}

.branch-tel small {
  display: block;
  font-size: 1.05rem;
  color: rgba(247, 240, 222, .55);
  letter-spacing: .08em;
}

.branch-tel a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--cream-text);
}

.branch-maplink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 1.2rem;
  color: var(--gold-pale);
  border-bottom: 1px solid rgba(223, 192, 119, .4);
  padding-bottom: 2px;
}

.branch-maplink:hover {
  opacity: .75;
}

.sidebar-list {
  position: relative;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--night-line);
  display: grid;
  gap: 10px;
}

.sidebar-list li {
  display: flex;
  gap: 8px;
  font-size: 1.2rem;
  color: rgba(247, 240, 222, .82);
  line-height: 1.6;
}

.sidebar-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.sidebar-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 14px 20px;
  border-radius: 999px;
  transition: transform .3s var(--ease-soft), background .3s ease;
}

.sidebar-cta:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}

@media screen and (max-width: 960px) {
  .kita-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .kita-sidebar {
    position: static;
  }
}

/* ---------- Stat ticker band ---------- */
.stat-ticker {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow-card);
}

.stat-tick {
  padding: 30px 26px;
  border-left: 1px solid var(--paper-line);
}

.stat-tick:first-child {
  border-left: none;
}

.stat-tick-label {
  font-size: 1.2rem;
  color: var(--ink-soft);
  letter-spacing: .03em;
}

.stat-tick-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold-deep);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  margin-top: 8px;
  line-height: 1;
}

.stat-tick-value small {
  font-size: 42%;
  font-weight: 600;
  margin-left: 2px;
}

.stat-tick-note {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

@media screen and (max-width: 760px) {
  .stat-ticker {
    grid-template-columns: 1fr;
  }

  .stat-tick {
    border-left: none;
    border-top: 1px solid var(--paper-line);
  }

  .stat-tick:first-child {
    border-top: none;
  }
}

.refer {
  margin-top: 14px;
  font-size: 8px;
  color: var(--ink-soft);
}

.refer a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--gold-deep);
}

.refer a:hover {
  color: var(--wine);
}

/* ---------- Sub headings inside prose ---------- */
.case-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  margin-top: 50px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-subtitle::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.prose p {
  margin-top: 18px;
  font-size: 1.45rem;
  line-height: 2;
  color: var(--ink);
}

.prose p.lead {
  font-size: 1.55rem;
}

/* ---------- Insight list ---------- */
.insight-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.insight-list li {
  position: relative;
  padding: 14px 20px 14px 50px;
  background: var(--paper-deep);
  border-radius: var(--radius-sm);
  font-size: 1.35rem;
  color: var(--ink);
}

.insight-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Blockquote highlight ---------- */
.insight-highlight {
  position: relative;
  margin-top: 28px;
  padding: 30px 32px 30px 42px;
  background: var(--night);
  color: var(--cream-text);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.85;
}

.insight-highlight::before {
  content: "\201C";
  position: absolute;
  top: 4px;
  left: 14px;
  font-size: 4.6rem;
  color: var(--gold);
  font-family: var(--font-display);
  line-height: 1;
  opacity: .8;
}

/* ---------- Step timeline (new — genuinely sequential content) ---------- */
.step-timeline {
  margin-top: 40px;
  display: grid;
  gap: 0;
}

.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding-bottom: 34px;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-num {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold-pale);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 1px;
  background: var(--paper-line);
}

.step-body {
  padding-top: 6px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--ink);
}

.step-desc {
  margin-top: 8px;
  font-size: 1.3rem;
  color: var(--ink-soft);
  line-height: 1.85;
  max-width: 56ch;
}

/* ---------- Capability grid (icon cards) ---------- */
.capability-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media screen and (max-width: 900px) {
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 560px) {
  .capability-grid {
    grid-template-columns: 1fr;
  }
}

.capability-card {
  background: var(--paper-deep);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  border-top: 2px solid var(--gold);
}

.capability-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-deep);
  margin-bottom: 14px;
}

.capability-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 700;
}

.capability-desc {
  margin-top: 8px;
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------- Feature chip list ---------- */
.area-feature-list {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.area-feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  letter-spacing: .01em;
  background: var(--paper);
  border: 1px solid var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background .3s ease, color .3s ease;
}

.area-feature-chip strong {
  color: var(--gold-deep);
  font-weight: 700;
}

.area-feature-chip:hover {
  background: var(--night);
  color: var(--cream-text);
}

.area-feature-chip:hover strong {
  color: var(--gold-pale);
}

/* ---------- CTA banner ---------- */
.area-cta {
  margin-top: 44px;
  padding: 32px 34px;
  border-radius: var(--radius-lg);
  background: var(--night);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.area-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 15%, rgba(176, 138, 46, .35), transparent 55%);
}

.area-cta-text {
  position: relative;
  color: var(--cream-text);
  font-size: 1.45rem;
  font-weight: 600;
  max-width: 46ch;
}

.area-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  font-size: 1.35rem;
  padding: 15px 30px;
  border-radius: 999px;
  transition: transform .35s var(--ease-soft), background .35s ease;
}

.area-cta-btn:hover {
  background: var(--gold-pale);
  transform: translateY(-3px);
}

.area-cta-btn svg {
  width: 15px;
  height: 15px;
}