* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #050708;
  --panel: #090c0f;
  --panel-hover: #0c1013;

  --text: #f5f2eb;
  --muted: #9aa1a7;

  --gold: #d8ad55;
  --gold-bright: #f1cf7a;
  --gold-soft: rgba(216, 173, 85, 0.26);

  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);

  --sprite: url("assets/branch-icons.png");
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;

  color: var(--text);
  background:
    radial-gradient(circle at 12% 15%, rgba(216,173,85,.035), transparent 25%),
    radial-gradient(circle at 88% 70%, rgba(216,173,85,.025), transparent 25%),
    linear-gradient(145deg, #080b0d 0%, #040506 68%);

  font-family: "Inter", "Noto Sans JP", sans-serif;
  letter-spacing: .03em;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;

  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.cursor-light {
  position: fixed;
  z-index: 0;

  width: 420px;
  height: 420px;

  border-radius: 50%;
  pointer-events: none;

  background:
    radial-gradient(circle, rgba(216,173,85,.055), transparent 68%);

  transform: translate(-50%, -50%);
  opacity: 0;

  transition: opacity .3s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;

  height: 82px;
  padding: 0 2.2vw;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(5,7,8,.78);
  backdrop-filter: blur(16px);

  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  color: #111;
  background: linear-gradient(135deg, var(--gold-bright), #a97a29);

  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
  font-weight: 600;

  clip-path:
    polygon(
      18% 0,
      100% 0,
      73% 42%,
      100% 42%,
      84% 100%,
      0 100%,
      28% 57%,
      0 57%
    );
}

.brand-name {
  color: #e6d09b;

  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .08em;
}

.header-label {
  color: #777e83;
  font-size: 11px;
  letter-spacing: .3em;
}

main {
  position: relative;
  z-index: 1;

  padding: 0 1.6vw 70px;
}

.page-hero {
  position: relative;
  overflow: hidden;

  min-height: 54vh;
  padding: 92px 3vw 58px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;

  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 27px;

  color: var(--gold);
  font-size: 12px;
  letter-spacing: .35em;
}

.page-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(76px, 9vw, 148px);
  font-weight: 500;
  line-height: .74;
  letter-spacing: .015em;
}

.page-title span {
  display: block;

  color: transparent;
  -webkit-text-stroke: 1px rgba(216,173,85,.68);
}

.hero-description {
  max-width: 450px;

  color: var(--muted);

  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 2;
}

.hero-beam {
  position: absolute;
  top: 43%;
  right: -180px;

  width: 720px;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(216,173,85,.7),
      transparent
    );

  opacity: .28;
  transform: rotate(-17deg);

  animation: heroBeam 7s ease-in-out infinite;
}

.profile-grid {
  margin-top: 28px;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profile-card {
  position: relative;
  overflow: hidden;

  min-height: 430px;
  padding: 42px 50px 48px;

  background: rgba(255,255,255,.004);

  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);

  transition:
    transform .45s ease,
    background .45s ease,
    border-color .45s ease,
    box-shadow .45s ease;
}

.profile-card::before {
  content: "";

  position: absolute;
  right: -180px;
  bottom: -180px;

  width: 320px;
  height: 320px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(216,173,85,.13),
      transparent 68%
    );

  transition: .55s ease;
}

.profile-card::after {
  content: "";

  position: absolute;
  top: 0;
  left: -70%;

  width: 28%;
  height: 100%;

  background:
    linear-gradient(
      100deg,
      transparent,
      rgba(255,255,255,.042),
      transparent
    );

  transform: skewX(-18deg);

  transition: left .8s ease;
}

.profile-card:hover {
  z-index: 2;

  background: rgba(255,255,255,.017);

  border-color: rgba(216,173,85,.27);

  box-shadow:
    0 22px 60px rgba(0,0,0,.25),
    inset 0 0 40px rgba(216,173,85,.015);
}

.profile-card:hover::before {
  right: -100px;
  bottom: -100px;
}

.profile-card:hover::after {
  left: 145%;
}

.card-head {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 24px;

  margin-bottom: 46px;
}

.card-number {
  color: var(--gold);

  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
}

.card-en {
  color: #d5b363;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: .25em;
}

.group-title-wrap {
  position: relative;
  z-index: 2;
}

.group-small {
  margin-bottom: 4px;

  color: #6d7377;

  font-size: 11px;
  letter-spacing: .3em;
}

.group-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(52px, 5vw, 82px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .035em;
}

.gold-line {
  position: relative;
  z-index: 2;

  height: 1px;

  margin: 27px 0 38px;

  overflow: hidden;

  background: rgba(255,255,255,.09);
}

.gold-line span {
  display: block;

  width: 33%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--gold-bright),
      transparent
    );

  animation: goldLine 3.6s ease-in-out infinite;
}

.branch-heading {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 34px;

  margin-bottom: 39px;
}

.branch-icon {
  --icon-size: 128px;

  flex: 0 0 var(--icon-size);

  width: var(--icon-size);
  height: var(--icon-size);

  border-radius: 50%;

  background-image: var(--sprite);
  background-repeat: no-repeat;
  background-size: 321.54% auto;

  box-shadow:
    0 0 26px rgba(216,173,85,.055);

  transition:
    transform .45s cubic-bezier(.16,1,.3,1),
    filter .45s ease,
    box-shadow .45s ease;
}

.icon-aichi {
  background-position: 4% 40%;
}

.icon-tokyo {
  background-position: 50% 40%;
}

.icon-osaka {
  background-position: 96% 40%;
}

.profile-card:hover .branch-icon {
  transform: scale(1.045);

  filter:
    brightness(1.08)
    saturate(1.05);

  box-shadow:
    0 0 34px rgba(216,173,85,.10);
}

.branch-jp-small {
  margin-bottom: 5px;

  color: #777e83;

  font-size: 10px;
  letter-spacing: .25em;
}

.branch-card h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(35px, 3.1vw, 54px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: .02em;
}

.profile-list {
  position: relative;
  z-index: 2;

  display: grid;
  gap: 25px;
}

.profile-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-list dt {
  padding-top: 2px;

  color: var(--muted);

  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.profile-list dd {
  color: #f6f3ed;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
}

.portal-contact {
  margin-top: 28px;
  padding: 38px 42px;

  display: grid;
  grid-template-columns: 90px 1fr 1.5fr;
  align-items: center;
  gap: 35px;

  border: 1px solid var(--line);

  background:
    linear-gradient(
      100deg,
      rgba(216,173,85,.024),
      rgba(255,255,255,.006)
    );
}

.contact-symbol {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(216,173,85,.75);
  border-radius: 13px;

  color: var(--gold-bright);

  font-size: 30px;

  box-shadow:
    0 0 25px rgba(216,173,85,.08);

  animation: mailPulse 3.3s ease-in-out infinite;
}

.contact-kicker {
  margin-bottom: 8px;

  color: var(--gold);

  font-size: 10px;
  letter-spacing: .26em;
}

.contact-main h2 {
  margin-bottom: 12px;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 25px;
  font-weight: 400;
}

.contact-main > p:last-child {
  color: #d8d6d1;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

.contact-main a {
  color: var(--gold-bright);

  border-bottom: 1px solid rgba(216,173,85,.35);
}

.contact-notes {
  display: grid;
  gap: 19px;
}

.note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
}

.note i {
  width: 25px;
  height: 25px;

  margin-top: 2px;

  display: grid;
  place-items: center;

  color: var(--gold);

  border: 1px solid rgba(216,173,85,.65);
  border-radius: 50%;

  font-size: 12px;
  font-style: normal;
}

.note p {
  color: #dedbd4;

  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

footer {
  padding: 35px 2vw 10px;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  color: #72787c;

  font-size: 10px;
  letter-spacing: .2em;
}

footer a {
  color: #bb9b58;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);

  transition:
    opacity .95s cubic-bezier(.16,1,.3,1),
    transform .95s cubic-bezier(.16,1,.3,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes heroBeam {
  0%,
  100% {
    transform: translateX(-20px) rotate(-17deg);
    opacity: .12;
  }

  50% {
    transform: translateX(120px) rotate(-17deg);
    opacity: .35;
  }
}

@keyframes goldLine {
  0% {
    transform: translateX(-120%);
    opacity: .25;
  }

  55% {
    opacity: 1;
  }

  100% {
    transform: translateX(360%);
    opacity: .15;
  }
}

@keyframes mailPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 25px rgba(216,173,85,.07);
  }

  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 38px rgba(216,173,85,.16);
  }
}

@media (max-width: 980px) {
  main {
    padding: 0 14px 55px;
  }

  .page-hero {
    min-height: 48vh;
    padding: 75px 22px 50px;

    display: block;
  }

  .hero-description {
    margin-top: 42px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: auto;
  }

  .portal-contact {
    grid-template-columns: 85px 1fr;
  }

  .contact-notes {
    grid-column: 1 / -1;
    margin-top: 5px;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;

    font-size: 27px;
  }

  .brand-name {
    font-size: 16px;
  }

  .header-label {
    display: none;
  }

  .page-hero {
    min-height: 430px;
    padding: 62px 12px 40px;
  }

  .page-title {
    font-size: clamp(62px, 20vw, 92px);
  }

  .hero-description {
    font-size: 15px;
  }

  .profile-card {
    padding: 33px 25px 40px;
  }

  .card-head {
    margin-bottom: 34px;
  }

  .branch-heading {
    gap: 21px;
    margin-bottom: 34px;
  }

  .branch-icon {
    --icon-size: 88px;
  }

  .branch-card h2 {
    font-size: 32px;
  }

  .profile-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .profile-list dt {
    font-size: 14px;
  }

  .profile-list dd {
    font-size: 16px;
  }

  .portal-contact {
    padding: 29px 24px;
    grid-template-columns: 1fr;
  }

  .contact-symbol {
    width: 60px;
    height: 60px;
  }

  .contact-main h2 {
    font-size: 21px;
  }

  .contact-main > p:last-child,
  .note p {
    font-size: 14px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
