/* BondCare Phase 1-A — Base / Reset / App shell */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--bc-font-gothic);
  color: var(--bc-text);
  background: var(--bc-bg-soft);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.7;
  font-size: 15px;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

/* PC: スマホ画面を引き伸ばさず中央配置。左右にやわらかな余白背景 */
.app-shell {
  width: 100%;
  max-width: var(--bc-shell-max);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bc-white);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  body {
    background: var(--bc-bg-soft);
  }
  .app-shell {
    box-shadow: 0 0 0 1px var(--bc-border-soft), var(--bc-shadow-md);
    min-height: 100dvh;
  }
}

/* Header — 必要最小限 */
.app-header {
  padding: 14px 20px 10px;
  text-align: center;
  background: var(--bc-white);
}

.app-header--back {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--bc-border-soft);
}

.app-header__back {
  width: var(--bc-tap);
  height: var(--bc-tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--bc-navy-800);
  border-radius: var(--bc-r-sm);
}

.app-header__title {
  font-family: var(--bc-font-mincho);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--bc-navy-900);
  flex: 1;
}

/* Main content — 下部ナビ分の余白を確保 */
.app-main {
  flex: 1;
  padding: 8px 20px calc(var(--bc-nav-h) + 28px);
}

.app-main--flush {
  padding-left: 0;
  padding-right: 0;
}

/* Brand logo lockup */
.bc-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bc-logo__mark {
  color: var(--bc-gold-500);
}

.bc-logo__name {
  font-family: var(--bc-font-mincho);
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--bc-navy-900);
  font-weight: 600;
}

.bc-logo--sm .bc-logo__name {
  font-size: 17px;
}

/* Gold divider with center diamond (画像①③⑥の意匠) */
.bc-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--bc-gold-500);
  margin: 12px 0;
}

.bc-divider::before,
.bc-divider::after {
  content: "";
  height: 1px;
  width: 40px;
  background: linear-gradient(
    to right,
    transparent,
    var(--bc-gold-300),
    transparent
  );
}

.bc-divider__dot {
  font-size: 9px;
  line-height: 1;
}

/* Section heading */
.bc-section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--bc-navy-800);
  font-size: 13.5px;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 22px 0 12px;
}

.bc-section-label::before,
.bc-section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 46px;
  background: var(--bc-gold-300);
}

.bc-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bc-muted);
  font-weight: 600;
}

/* Utility */
.bc-center {
  text-align: center;
}
.bc-mt-2 {
  margin-top: 8px;
}
.bc-mt-4 {
  margin-top: 16px;
}
.bc-mt-6 {
  margin-top: 24px;
}
.bc-muted {
  color: var(--bc-muted);
}
.bc-small {
  font-size: 12.5px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
