/* ============================================================
   SUNROSE — landing / branch selector
   Palette matched from new.sunrosejapan.com:
   near-black stage, warm gold accent, cream-white cards.
   ============================================================ */

:root{
  --black:        #111111;
  --black-soft:   #1B1B1B;
  --cream:        #FBF9F5;
  --cream-card:   #FFFFFF;
  --line:         #ECE7DC;

  --gold:         #E6A107;
  --gold-light:   #F0C24D;
  --gold-deep:    #B87F05;

  --ink:          #17130C;
  --ink-soft:     #5B564C;
  --white-warm:   #F5F1E8;

  --font-display: 'Cormorant Garamond', 'Noto Serif JP', Georgia, serif;
  --font-body:    'Inter', 'Noto Sans JP', -apple-system, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 100px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

html 
{
    overflow-x: hidden;
  }
body{
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white-warm);
  font-family: var(--font-body);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: no-preference){
  .logo-plaque{ animation: rise .8s cubic-bezier(.16,.9,.3,1) both; }
  .branch-card{ animation: float-in .7s cubic-bezier(.16,.9,.3,1) both; }
  .branch-card--current{ animation-delay: .15s; }
  .branch-card--new{ animation-delay: .3s; }
  .hero > *{ animation: float-in .6s ease both; }
  .eyebrow{ animation-delay: 0s; }
  .logo-plaque{ animation-delay: .08s; }
  .tagline{ animation-delay: .2s; }
  .subtext{ animation-delay: .28s; }
}

@keyframes rise{
  from{ transform: translateY(14px) scale(.96); opacity: 0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes float-in{
  from{ transform: translateY(16px); opacity: 0; }
  to{ transform: translateY(0); opacity: 1; }
}

/* ---------- signature glow ---------- */

.glow-backdrop{
  position: absolute;
  top: 0;
  left: 50%;
  width: min(900px, 150vw);
  height: min(560px, 75vw);
  transform: translate(-50%, -35%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%,
      rgba(230,161,7,.35) 0%,
      rgba(230,161,7,.14) 45%,
      rgba(230,161,7,0) 75%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.grain{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- language switcher ---------- */

.lang-dropdown{
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 20;
}

.lang-switch__btn{
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--white-warm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s ease, border-color .2s ease;
}
.lang-switch__btn:hover{ background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); }

.lang-switch__globe{ font-size: 14px; }
.lang-switch__chevron{ font-size: 8px; opacity: .7; margin-left: 2px; }

.lang-switch__menu{
  list-style: none;
  margin: 8px 0 0;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 160px;
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 44px -14px rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.lang-switch__menu.open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-switch__menu li{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white-warm);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lang-switch__menu li:hover,
.lang-switch__menu li.active{
  background: rgba(230,161,7,.16);
  color: var(--gold-light);
}

.flag{ font-size: 15px; }

/* ---------- layout shell ---------- */

.page{
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(10px, 1.2vh, 16px) 24px 40px;
  
  width: 100%;
}

/* ---------- hero ---------- */

.hero{
  text-align: center;
  max-width: 720px;
  margin-bottom: clamp(44px, 6vh, 72px);
}

.eyebrow{
  margin: 0 0 28px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.logo-plaque{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 18px 30px;
  margin-bottom: 26px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 22px 48px -18px rgba(0,0,0,.55);
}

.logo{
  display: block;
  width: min(420px, 66vw);
  height: auto;
}

.tagline{
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  color: var(--gold-light);
}

.subtext{
  margin: 0;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  color: rgba(245, 241, 232, .78);
  font-weight: 400;
  max-width: 46ch;
  margin-inline: auto;
}

.br-mobile{ display: none; }

/* ---------- branch cards ---------- */

.branches{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 28px);
  margin-bottom: clamp(48px, 8vh, 80px);
}

.branch-card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 22px 46px -22px rgba(0,0,0,.5);
  transition: transform .35s cubic-bezier(.16,.9,.3,1), box-shadow .35s ease;
}

.branch-card:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.branch-card:hover,
.branch-card:focus-visible{
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 34px 60px -22px rgba(0,0,0,.6);
}

.branch-card__top{
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
}

.branch-card__photo{
  display: block;
  width: 100%;
  height: auto;
}

.branch-card__top::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,0) 30%, rgba(17,17,17,0) 70%, rgba(17,17,17,.75) 100%);
  pointer-events: none;
}

.branch-card__top > .branch-card__pin,
.branch-card__top > .branch-card__badge,
.branch-card__top > .branch-card__photo-caption{
  position: absolute;
  z-index: 1;
}

.branch-card__top > .branch-card__pin,
.branch-card__top > .branch-card__badge{
  top: 18px;
}

.branch-card__top > .branch-card__pin{
  right: 22px;
}

.branch-card__top > .branch-card__badge{
  left: 22px;
}

.branch-card__photo-caption{
  left: 22px;
  bottom: 10px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--white-warm);
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.branch-card__pin{
  font-size: 20px;
  filter: grayscale(1) brightness(1.6);
  opacity: .85;
}

.branch-card__badge{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--gold);
  padding: 6px 13px;
  border-radius: var(--radius-pill);
}

.branch-card__body{
  padding: 16px 24px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.branch-card__tag{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
}

.branch-card__title{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.08;
  margin: 0 0 12px;
  color: var(--ink);
}

.branch-card__address{
  margin: 0;
  padding-bottom: 20px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: .8;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.branch-card__cta{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 24px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  transition: background .25s ease;
}

.branch-card:hover .branch-card__cta{ background: var(--gold-light); }

.arrow{
  font-size: 18px;
  line-height: 1;
  transition: transform .3s ease;
}
.branch-card:hover .arrow{ transform: translateX(4px); }

/* ---------- footer / company info ---------- */

.site-footer{
  position: relative;
  z-index: 2;
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--white-warm);
  padding: 36px 24px;
}

.site-footer__inner{
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.site-footer__brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.site-footer__name{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--gold-light);
}

.site-footer__company{
  font-size: 12.5px;
  color: rgba(245, 241, 232, .55);
}

.site-footer__info{
  font-size: 13.5px;
  color: rgba(245, 241, 232, .85);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.site-footer__info a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(230,161,7,.4);
  transition: border-color .2s ease, color .2s ease;
}
.site-footer__info a:hover{ border-color: var(--gold); color: var(--gold-light); }

.dot{ opacity: .4; margin: 0 2px; color: var(--gold); }

.site-footer__copy{
  margin: 10px 0 0;
  font-size: 11.5px;
  color: rgba(245, 241, 232, .4);
}

/* ---------- responsive ---------- */

@media (max-width: 720px){
  .branches{ grid-template-columns: 1fr; }
  .br-mobile{ display: inline; }
  .lang-dropdown{ top: 14px; right: 14px; }
}

@media (max-width: 420px){
  .site-footer__info{ flex-direction: column; gap: 6px; }
  .dot{ display: none; }
}