/* ========================================================================
 * Shintoyo Trust Co., Ltd. - Brand customization
 * Overrides Belle / Allianz template base
 * ===================================================================== */

:root {
  /* Primary: Deep midnight navy — trust, sophistication */
  --color-primary: #0a2540;
  --color-primary-200: #0d2b4a;
  --color-primary-300: #061a30;
  --color-primary-400: #14304f;
  --color-primary-500: #0a2540;
  --color-primary-600: #1a3a5e;
  --color-primary-700: #061a30;
  --color-primary-800: #0d2b4a;
  --color-primary-rgb: 10, 37, 64;
  --color-primary-300-rgb: 6, 26, 48;

  /* Secondary: Refined gold — premium, international */
  --color-secondary: #b08d57;
  --color-secondary-rgb: 176, 141, 87;

  /* Accent */
  --color-accent: #0a2540;

  /* Dark / surfaces */
  --color-dark: #0e1726;
  --color-light: #5a6b85;

  --bs-primary: #0a2540;
  --bs-secondary: #b08d57;
  --bs-primary-rgb: 10, 37, 64;
  --bs-secondary-rgb: 176, 141, 87;
  --bs-link-color: #b08d57;
  --bs-link-hover-color: #0a2540;
}

/* ====================================================================
 * Brand logo — image + text combination
 * ================================================================= */
.navbar-brand.brand-text-logo {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1.05;
  padding: 6px 0;
  margin: 0;
  text-decoration: none !important;
  height: auto;
}
.navbar-brand.brand-text-logo:hover {
  text-decoration: none !important;
}
.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-text-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text-logo .brand-mark {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝", serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: #ffffff;
  white-space: nowrap;
  transition: color .3s ease;
}
.brand-text-logo .brand-sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,.7);
  margin-top: 5px;
  white-space: nowrap;
  transition: color .3s ease;
}
/* Sticky/opaque header — switch text to dark for white background
   belle's navbar toggles .is-sticky on scroll */
.is-sticky .brand-text-logo .brand-mark,
.header:not(.header-transparent) .brand-text-logo .brand-mark {
  color: #0a2540;
}
.is-sticky .brand-text-logo .brand-sub,
.header:not(.header-transparent) .brand-text-logo .brand-sub {
  color: rgba(10,37,64,.65);
}

/* Mobile: below the lg breakpoint the theme makes the navbar background solid
   white (--navbar-bg: #fff @ max-width 991px) and never toggles .is-sticky on
   mobile, so the default white brand text would be white-on-white. Force dark. */
@media (max-width: 991px) {
  .header .brand-text-logo .brand-mark {
    color: #0a2540;
  }
  .header .brand-text-logo .brand-sub {
    color: rgba(10,37,64,.65);
  }
}

@media (max-width: 575px) {
  .navbar-brand.brand-text-logo { gap: 8px; }
  .brand-logo-img { height: 36px; }
  .brand-text-logo .brand-mark {
    font-size: 15px;
    letter-spacing: 0.10em;
  }
  .brand-text-logo .brand-sub {
    font-size: 8px;
    letter-spacing: 0.18em;
  }
}

/* Footer brand — image + text */
.footer-brand-text {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  line-height: 1.05;
  text-decoration: none !important;
}
.footer-brand-logo-img {
  height: 56px;
  width: auto;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.footer-brand-stack {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.footer-brand-mark {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝", serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.18em;
  color: #ffffff;
}
.footer-brand-sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* ====================================================================
 * Heading typography (mirrors belle's scale)
 * ================================================================= */
:root {
  --heading-title-font-size: 42px;
  --hero-title-font-size: 84px;
}
@media (max-width: 1199px) {
  :root { --heading-title-font-size: 36px; --hero-title-font-size: 56px; }
}
@media (max-width: 767px) {
  :root { --heading-title-font-size: 30px; --hero-title-font-size: 42px; }
}

h2 { font-size: 42px; font-weight: 600; line-height: 1.25; }
@media (max-width: 1199px) { h2 { font-size: 36px; } }
@media (max-width: 767px) { h2 { font-size: 28px; } }

/* Hero */
.hero-title {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝", serif;
  font-weight: 600;
  font-size: var(--hero-title-font-size);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #ffffff;
}
.hero-subtitle {
  letter-spacing: 0.32em;
  color: rgba(255,255,255,.85);
}

/* Section headings */
.heading-subtitle {
  color: var(--color-secondary);
  letter-spacing: 0.28em;
  font-weight: 500;
}
.heading-title {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝", serif;
  font-weight: 600;
  font-size: var(--heading-title-font-size);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}
.heading-light .heading-title,
.bg-primary-deep .heading-title,
section[class*="bg-overlay"] .heading-title.color-white {
  color: #ffffff;
}

/* ====================================================================
 * Preloader
 * ================================================================= */
.preloader-text {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.32em;
  color: #ffffff;
  display: inline-block;
  animation: pulseLogo 1.6s ease-in-out infinite;
}
@keyframes pulseLogo {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

/* ====================================================================
 * Service number / card touches
 * ================================================================= */
.video-banner .video-player-text {
  color: var(--color-secondary);
  letter-spacing: 0.24em;
  font-size: 11px;
  text-transform: uppercase;
}
.video-banner .video-player-num {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  color: var(--color-secondary);
  font-size: 64px;
  font-weight: 500;
}
.video-banner .video-player-ttl {
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ====================================================================
 * Buttons
 * ================================================================= */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
}
.btn-secondary.btn-outlined {
  background-color: transparent;
  color: var(--color-secondary);
}
.btn-secondary.btn-outlined:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

/* Square corners read as solid, architectural and trustworthy — the right
   register for a real-estate / M&A / finance brand. Override the theme's pill
   radius (.btn defaults --bs-border-radius: 50px) for every button variant.
   This also squares the header contact icon (.action-btn-contact is a .btn)
   and the contact form's submit button. A little extra tracking adds polish. */
.btn {
  --bs-border-radius: 0;
  border-radius: 0;
  letter-spacing: 0.08em;
}

/* Large CTA surfaces follow the squared system (theme uses 8px), kept at a
   hair of softness (2px) so big blocks don't read as harsh. */
.contact-panel { border-radius: 3px; }
.contact-panel-form { border-radius: 0 3px 3px 0; }

/* ====================================================================
 * Allianz block: counters
 * ================================================================= */
.counter-item .counter {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 48px;
  letter-spacing: 0.02em;
}
.counter-item .counter-icon {
  color: var(--color-secondary);
  margin-left: 8px;
}
.counter-item .counter-desc {
  color: var(--color-light);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 6px;
}

/* ====================================================================
 * Service items grid
 * ================================================================= */
.service-item {
  background: #ffffff;
  border: 1px solid #ececec;
  padding: 32px;
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-secondary);
  box-shadow: 0 12px 28px rgba(10, 37, 64, .08);
}
.service-item .service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(176, 141, 87, .12);
  color: var(--color-secondary);
  font-size: 28px;
  border-radius: 50%;
  margin-bottom: 24px;
}
.service-item .service-title a {
  color: var(--color-primary);
}
.service-item .service-title a:hover {
  color: var(--color-secondary);
}

/* ====================================================================
 * Office / location cards
 * ================================================================= */
.feature-item {
  text-align: left;
  padding: 24px;
  background: #fafafa;
  border: 1px solid #ececec;
  transition: border-color .3s ease;
  height: 100%;
}
.feature-item:hover {
  border-color: var(--color-secondary);
}
.feature-item .feature-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.feature-item .feature-body {
  padding-top: 20px;
}
.feature-item .feature-title {
  color: var(--color-primary);
  font-weight: 600;
}

/* ====================================================================
 * About badges / philosophy strip
 * ================================================================= */
.value-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(176, 141, 87, .1);
  color: var(--color-secondary);
  font-size: 13px;
  letter-spacing: 0.16em;
  border-radius: 3px;
}
.value-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-secondary);
}

/* ====================================================================
 * Pillars grid (3 main businesses on home)
 * ================================================================= */
.pillar-card {
  position: relative;
  background: #ffffff;
  padding: 40px 32px;
  border-top: 2px solid var(--color-secondary);
  height: 100%;
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 37, 64, .08);
}
.pillar-card .pillar-num {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 56px;
  font-weight: 500;
  color: rgba(10, 37, 64, .12);
  line-height: 1;
}
.pillar-card .pillar-name-en {
  color: var(--color-secondary);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  margin: 24px 0 10px;
}
.pillar-card .pillar-name-jp {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.pillar-card .pillar-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #4a5563;
  margin-bottom: 28px;
}
.pillar-card .pillar-link {
  color: var(--color-primary);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* Real arrow element so ::after stays free for the stretched link below. */
.pillar-card .pillar-link-arrow {
  transition: transform .3s ease;
}
/* Stretched link: the anchor's ::after overlays the whole card, making the
   entire .pillar-card clickable (not just the "詳しく見る" text). */
.pillar-card .pillar-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pillar-card .pillar-link:hover {
  color: var(--color-secondary);
}
.pillar-card .pillar-link:hover .pillar-link-arrow {
  transform: translateX(4px);
}

/* ====================================================================
 * Why us section — banner-layout5 overrides
 *   belle's defaults: height:500px, padding-top:230px, margin-top:-100px
 *   These break our layout (content overflows). Reset to natural flow.
 * ================================================================= */
.banner-layout5 {
  height: auto !important;
  padding-top: 110px !important;
  padding-bottom: 110px !important;
  margin-top: 0 !important;
  display: flex;
  align-items: center;
  min-height: 560px;
}
.banner-layout5 .container {
  width: 100%;
}
.banner-layout5 .heading-layout2 .heading-title {
  margin-bottom: 24px;
}
.banner-layout5 .value-badge {
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(176, 141, 87, .35);
}
.banner-layout5 .value-badge .dot {
  background: var(--color-secondary);
}
@media (max-width: 991px) {
  .banner-layout5 {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
    min-height: auto;
  }
}

/* ====================================================================
 * Timeline highlight (career current role)
 * ================================================================= */
.dl-layout .dl-item.highlight {
  background: rgba(176, 141, 87, .08);
  border-left: 3px solid var(--color-secondary);
  padding-left: 14px;
}
.dl-layout .dl-item.highlight .dl-title {
  color: var(--color-secondary);
  font-weight: 600;
}
.dl-layout .dl-item.highlight .dl-desc strong {
  color: var(--color-primary);
}

/* ====================================================================
 * Founders / leaders strip
 * ================================================================= */
.founder-strip {
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  padding: 80px 0;
}
.founder-card {
  background: #ffffff;
  border: 1px solid #ececec;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}
.founder-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(10, 37, 64, .12);
  border-color: rgba(176, 141, 87, .35);
}

/* Top row: large diagonally-cut photo (left) + name block (right) */
.founder-head {
  display: flex;
  align-items: stretch;
  position: relative;
}
.founder-img {
  position: relative;
  flex: 0 0 46%;
  max-width: 46%;
  min-height: 320px;
  max-height: 320px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--color-primary);
  overflow: hidden;
  /* diagonal cut along the right edge */
  -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 64px) 100%, 0 100%);
}
.founder-img.has-photo {
  background-color: transparent;
  color: transparent;
}
.founder-img.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .65s ease;
}
.founder-card:hover .founder-img.has-photo img {
  transform: scale(1.06);
}

/* Name / role block, vertically centred beside the photo */
.founder-meta {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 38px 32px 26px;
}
.founder-role {
  color: var(--color-secondary);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 14px;
  position: relative;
}
.founder-role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--color-secondary);
}
.founder-name {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}
.founder-name-en {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  color: var(--color-light);
  letter-spacing: 0.18em;
  font-size: 13px;
  margin-bottom: 0;
}
.founder-bio {
  font-size: 14px;
  line-height: 1.9;
  color: #4a5563;
  flex-grow: 1;
  padding: 4px 40px 40px;
  margin-top: 30px;
  margin-bottom: 0;
}

/* Tablet: a touch more compact, layout stays side-by-side */
@media (max-width: 991px) {
  .founder-img { min-height: 300px; }
  .founder-meta { padding: 28px 30px 28px 24px; }
  .founder-name { font-size: 24px; }
}

/* Phone: stack photo on top, name + bio below */
@media (max-width: 575px) {
  .founder-head { flex-direction: column; }
  .founder-img {
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 430px;
    width: 100%;
    min-height: 280px;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
  }
  .founder-meta { padding: 22px 28px 4px; }
  .founder-bio { padding: 8px 28px 32px; }
}

/* ====================================================================
 * CEO message — extra breathing room between photo and text columns
 * ================================================================= */
@media (min-width: 992px) {
  .ceo-message-body { padding-left: 50px; }
}
@media (min-width: 1200px) {
  .ceo-message-body { padding-left: 80px; }
}

/* ====================================================================
 * Capability / tag chips
 * ================================================================= */
.cap-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(10, 37, 64, .15);
  border-radius: 3px;
  font-size: 12px;
  color: var(--color-primary);
  margin: 0 6px 8px 0;
  background: #ffffff;
  letter-spacing: 0.04em;
}

/* ====================================================================
 * Accordion overrides
 * ================================================================= */
.accordion-item .accordion-title { color: var(--color-primary); }
.accordion-item.opened .accordion-title { color: var(--color-secondary); }

/* ====================================================================
 * Job items
 * ================================================================= */
.job-item {
  background: #ffffff;
  padding: 28px;
  border: 1px solid #ececec;
  height: 100%;
  transition: border-color .3s ease, transform .3s ease;
}
.job-item:hover {
  border-color: var(--color-secondary);
  transform: translateY(-3px);
}
.job-item .job-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-right: 10px;
}
.job-item .job-location {
  color: var(--color-light);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.job-item .job-title {
  color: var(--color-primary);
  font-weight: 600;
  margin: 18px 0 12px;
}

/* ====================================================================
 * Process / steps
 * ================================================================= */
.process-step {
  position: relative;
  padding: 32px;
  background: #ffffff;
  border: 1px solid #ececec;
  height: 100%;
}
.process-step .step-num {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 48px;
  color: var(--color-secondary);
  font-weight: 500;
  line-height: 1;
  display: block;
  margin-bottom: 16px;
}
.process-step .step-title {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 12px;
}
.process-step .step-desc {
  font-size: 14px;
  line-height: 1.85;
  color: #4a5563;
}
/* Triangle arrows between flow steps */
.process-flow .process-step::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0.5;
  z-index: 2;
}
/* Desktop: 4 cards in one row — right-pointing arrow after each but the last */
@media (min-width: 992px) {
  .process-flow > [class*="col-"]:not(:last-child) .process-step::after {
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 18px solid var(--color-secondary);
  }
}
/* Tablet: 2-up grid — right-pointing arrow after the left card in each row */
@media (min-width: 576px) and (max-width: 991px) {
  .process-flow > [class*="col-"]:nth-child(odd):not(:last-child) .process-step::after {
    top: 50%;
    right: -22px;
    transform: translateY(-50%);
    border-top: 13px solid transparent;
    border-bottom: 13px solid transparent;
    border-left: 18px solid var(--color-secondary);
  }
}
/* Phone: single column stack — downward arrow centered in a wider gap */
@media (max-width: 575px) {
  .process-flow > [class*="col-"]:not(:last-child) {
    margin-bottom: 56px;
  }
  .process-flow > [class*="col-"]:not(:last-child) .process-step::after {
    left: 50%;
    bottom: -37px;
    transform: translateX(-50%);
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 18px solid var(--color-secondary);
  }
}

/* ====================================================================
 * Page title overrides — image background with deep navy overlay
 * ================================================================= */
.page-title-layout3 {
  position: relative;
  background-color: var(--color-primary);
  background-image: url('../../images/page-title.jpg');
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
  padding: 78px 0 58px;
}
.page-title-layout3::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 37, 64, .92) 0%, rgba(10, 37, 64, .78) 100%);
  z-index: 1;
}
.page-title-layout3 > .container {
  position: relative;
  z-index: 2;
}
.page-title-layout3 .pagetitle-heading {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", "HG明朝E", "MS P明朝", serif;
  font-weight: 600;
  font-size: 36px;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 6px;
}
.page-title-layout3 .pagetitle-heading + p {
  font-size: 13px;
  letter-spacing: 0.22em;
  margin-top: 4px !important;
  color: rgba(255,255,255,.6) !important;
}
.page-title-layout3 p[style*="11px"] {
  margin-bottom: 14px !important;
}
.page-title-layout3 .breadcrumb {
  margin-top: 20px !important;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.page-title-layout3 .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.35);
}
.page-title-layout3 .breadcrumb-item a {
  transition: color .25s ease;
  color: rgba(255,255,255,.6) !important;
}
.page-title-layout3 .breadcrumb-item a:hover {
  color: var(--color-secondary) !important;
}

@media (max-width: 991px) {
  .page-title-layout3 { padding: 64px 0 48px; }
  .page-title-layout3 .pagetitle-heading { font-size: 30px; }
}
@media (max-width: 767px) {
  .page-title-layout3 { padding: 50px 0 38px; }
  .page-title-layout3 .pagetitle-heading { font-size: 24px; }
}

/* ====================================================================
 * Member / team
 * ================================================================= */
.member .member-name {
  color: var(--color-primary);
  font-weight: 600;
}
.member .member-desc {
  color: var(--color-secondary);
  letter-spacing: 0.12em;
  font-size: 12px;
}
/* Ensure member images render consistently regardless of source format
   (PNG with transparency gets a soft neutral background) */
.member .member-img {
  background: #f4f4f0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.member .member-img img,
.member:hover .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none !important;  /* override belle's default grayscale */
}

/* ====================================================================
 * Member — "プロフィールを見る" button
 * ================================================================= */
.member-data {
  padding-top: 16px;
}
/* Whole card is clickable (stretched-link) and fades slightly on hover */
.member.card-gradient-animation {
  cursor: pointer;
}
.member.card-gradient-animation:hover {
  opacity: .82;
}
.member-profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color .25s ease;
}
/* Arrow is a real child element, so ::after stays free for stretched-link */
.member-profile-btn-arrow {
  color: var(--color-secondary);
  transition: transform .3s ease;
}
.member-profile-btn:hover {
  color: var(--color-secondary);
}
.member-profile-btn:hover .member-profile-btn-arrow {
  transform: translateX(4px);
}
.member-profile-btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ====================================================================
 * Member — detail modal
 * ================================================================= */
.member-modal .modal-content {
  position: relative;
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 37, 64, .25);
}
.member-modal .modal-body {
  padding: 0;
}
.member-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 14px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.member-modal-close:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* Left column — photo + identity on deep navy */
.member-modal-aside {
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
}
.member-modal-img {
  aspect-ratio: 3 / 4;
  background: #f4f4f0;
  overflow: hidden;
}
.member-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.member-modal-head {
  padding: 24px 30px 30px;
}
.member-modal-role {
  color: var(--color-secondary);
  letter-spacing: 0.22em;
  font-size: 11px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.member-modal-name {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 5px;
}
.member-modal-name-en {
  color: rgba(255, 255, 255, .55);
  letter-spacing: 0.16em;
  font-size: 12px;
  margin: 0;
}

/* Right column — biography */
.member-modal-main {
  padding: 44px 44px 48px;
}
.member-modal-lead {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: 22px;
}
.member-modal-bio {
  font-size: 14px;
  line-height: 1.95;
  color: #4a5563;
  margin-bottom: 16px;
}
.member-modal-tba {
  color: var(--color-light);
}
.member-modal-tags {
  margin-top: 8px;
}
.member-modal-section-title {
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 20px;
  color: var(--color-primary);
  margin-top: 36px;
}
/* Compact the shared dl-layout when used inside the modal timeline */
.member-modal-timeline .dl-item {
  padding: 14px 0;
}
.member-modal-timeline .dl-title {
  min-width: 0;          /* fit the date exactly — no reserved whitespace */
  flex-shrink: 0;
  white-space: nowrap;
  margin-inline-end: 0;
  font-size: 13px;
  color: var(--color-secondary);
}
.member-modal-timeline .dl-desc {
  margin-left: 8px;      /* year & text sit nearly adjacent (overrides dd's 40px default) */
  font-size: 13px;
  line-height: 1.7;
}
.member-modal-timeline .dl-item.highlight {
  padding-left: 14px;
  padding-right: 14px;
}
/* Representative works / awards list */
.member-modal-list {
  list-style: none;
  padding-left: 0;
  margin: 18px 0 0;
}
.member-modal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: #4a5563;
}
.member-modal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--color-secondary);
  border-radius: 50%;
}

/* Photo fallback — shown when an image file is not yet registered */
.member .member-img,
.member-modal-img {
  position: relative;
}
.member-img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", "YuMincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  font-size: 56px;
  letter-spacing: 0.05em;
}

@media (max-width: 767px) {
  .member-modal-main {
    padding: 32px 26px 36px;
  }
  .member-modal-lead {
    font-size: 18px;
  }
  /* Stack the identity block below the photo on mobile */
  .member-modal-img {
    aspect-ratio: 4 / 3;
  }
}

/* ====================================================================
 * Utilities
 * ================================================================= */
.bg-primary-deep {
  background: var(--color-primary) !important;
  color: #ffffff;
}
.bg-primary-deep .heading-title,
.bg-primary-deep .heading-desc {
  color: #ffffff;
}
.bg-cream {
  background: #fbf8f3 !important;
}

.text-gold { color: var(--color-secondary) !important; }
.text-navy { color: var(--color-primary) !important; }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.divider-gold {
  display: inline-block;
  width: 56px;
  height: 2px;
  background: var(--color-secondary);
  margin: 24px 0;
}

/* Image grayscale on hover removal */
.video-banner img.grayscale {
  filter: grayscale(100%);
  transition: filter .6s ease;
}
.video-banner:hover img.grayscale {
  filter: grayscale(0%);
}

/* Small helpers */
.fz-14 { font-size: 14px; }
.mw-350 { max-width: 350px; }
.mt--300 { margin-top: -300px; }
@media (max-width: 991px) {
  .mt--300 { margin-top: 30px; }
}

/* Footer */
.footer { background: var(--color-primary); color: #ffffff; }
.footer-widget-title {
  color: var(--color-secondary);
  letter-spacing: 0.22em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-nav-list li a {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  line-height: 2.1;
  transition: color .25s ease;
}
/* Override theme hover (which sets navy = same as footer bg → invisible) */
.footer .footer-widget-nav .footer-nav-list li a:hover { color: var(--color-secondary); }
.footer .footer-widget-nav .footer-nav-list li a:before { background-color: var(--color-secondary); }
.footer-secondary {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-copyrights span { color: rgba(255,255,255,.55); }
.footer-copyright-links li a {
  color: rgba(255,255,255,.55);
  font-size: 12px;
  margin-left: 22px;
}
.footer .footer-copyright-links li a:hover { color: var(--color-secondary); }
.footer .footer-copyright-links li a:after { background-color: var(--color-secondary); }
.color-white-50 { color: rgba(255,255,255,.6) !important; }

/* Service detail sidebar — narrow the left sidebar by ~30px and turn that space into a gutter */
@media (min-width: 992px) {
  .service-sidebar { margin-right: 30px; }
}

/* ====================================================================
 * Contact form — clean single-column layout
 * ================================================================= */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 3px;
  padding: 48px;
  box-shadow: 0 14px 40px rgba(10, 37, 64, .06);
}
.contact-form-clean .form-group {
  margin-bottom: 22px;
}
.contact-form-clean label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: .02em;
}
.contact-form-clean .form-control {
  width: 100%;
  height: 54px;
  min-height: 0;
  padding: 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-primary);
  background-color: #fff;
  border: 1px solid #d9dee6;
  border-radius: 3px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form-clean textarea.form-control {
  height: auto;
  min-height: 160px;
  padding: 14px 18px;
}
.contact-form-clean .form-control:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(var(--color-secondary-rgb), .14);
}
.contact-form-clean .form-control::placeholder { color: #aab2bd; }
/* The theme converts <select> into a NiceSelect (.nice-select) widget and hides
   the original select — so style .nice-select to match the other inputs. */
.contact-form-clean select.form-control {
  border: 0;
}
.contact-form-clean .nice-select {
  float: none;
  display: block;
  width: 100%;
  height: 54px;
  line-height: 52px;
  margin-bottom: 0;
  padding: 0 44px 0 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-primary);
  background-color: #fff;
  border: 1px solid #d9dee6;
  border-radius: 3px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.contact-form-clean .nice-select .current {
  color: var(--color-primary);
  font-weight: 400;
  font-size: 15px;
}
.contact-form-clean .nice-select:hover,
.contact-form-clean .nice-select:focus,
.contact-form-clean .nice-select.open {
  border-color: var(--color-secondary);
}
.contact-form-clean .nice-select.open {
  box-shadow: 0 0 0 3px rgba(var(--color-secondary-rgb), .14);
}
.contact-form-clean .nice-select:after {
  right: 18px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
}
.contact-form-clean .nice-select .nice-select-dropdown {
  border-radius: 3px;
  box-shadow: 0 14px 40px rgba(10, 37, 64, .12);
}
.contact-form-clean .nice-select .option.selected { font-weight: 600; }
/* Privacy checkbox — inline, normal weight */
.contact-form-clean .privacy-row {
  margin-top: 26px;
  margin-bottom: 0;
}
.contact-form-clean .privacy-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: #4a5563;
  cursor: pointer;
  letter-spacing: 0;
  transform: none;
}
.contact-form-clean .privacy-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-secondary);
  flex-shrink: 0;
}
.contact-form-clean .privacy-label span { transform: none; }

@media (max-width: 575px) {
  .contact-form-card { padding: 28px 20px; }
}

/* ========================================================================
   Privacy Policy page
   ===================================================================== */
.privacy-section .policy-intro {
  font-size: 15px;
  line-height: 2.1;
  color: #4a5563;
  padding-bottom: 40px;
  border-bottom: 1px solid #ece6dc;
}

.privacy-section .policy-list {
  margin: 0;
  padding: 0;
  counter-reset: policy;
}

.privacy-section .policy-item {
  padding: 40px 0;
  border-bottom: 1px solid #ece6dc;
}
.privacy-section .policy-item:last-child {
  border-bottom: 0;
}

.privacy-section .policy-item-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.privacy-section .policy-num {
  flex-shrink: 0;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-secondary);
  transform: translateY(-2px);
}

.privacy-section .policy-item-body .heading-desc {
  font-size: 15px;
  line-height: 2.1;
}

.privacy-section .policy-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.privacy-section .policy-sublist li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 2;
  color: #4a5563;
}
.privacy-section .policy-sublist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-secondary);
}
.privacy-section .policy-sublist a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .25s ease;
}
.privacy-section .policy-sublist a:hover {
  color: var(--color-secondary);
}

.privacy-section .policy-meta {
  padding-top: 36px;
  border-top: 1px solid #ece6dc;
  text-align: right;
}
.privacy-section .policy-meta .heading-desc {
  font-size: 14px;
}

@media (max-width: 575px) {
  .privacy-section .policy-item-title { font-size: 18px; gap: 12px; }
}
