:root {
  /* UNION BRAND COLOR */
  --app-brand-main: #660e07;
  --app-brand-dark: #4f0b06;
  --app-brand-light: #af3c33;

  /* 既存CSSとの互換用 */
  --app-green-main: var(--app-brand-main);
  --app-green-dark: var(--app-brand-dark);
  --app-green-light: var(--app-brand-light);

  /* 画面外側 */
  --app-outer-background: #413b30;

  --app-page-max-width: 1180px;
  --app-page-radius: 24px;
  --app-page-shadow: 0 22px 60px rgba(0,0,0,0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    Arial,
    sans-serif;

  background: var(--app-outer-background);

  color: #1f2933;
  min-height: 100vh;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  padding: 42px 18px;
}

.page-shell.is-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-container {
  width: min(100%, var(--app-page-max-width));
  margin: 0 auto;
  background: rgba(255,255,255,0.98);
  border-radius: var(--app-page-radius);
  box-shadow: var(--app-page-shadow);
  overflow: hidden;
}

.main-container.is-compact {
  width: min(100%, 760px);
}

.main-container.is-login {
  width: min(100%, 650px);
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 10px;
  }

  .page-shell.is-center {
    align-items: flex-start;
  }

  .main-container {
    border-radius: 18px;
  }
}

.app-hero {
  padding: 34px 40px 30px;

  background:
    linear-gradient(
      135deg,
      var(--app-brand-light) 0%,
      #8c2720 48%,
      var(--app-brand-main) 100%
    );

  color: white;
  position: relative;
  overflow: hidden;
  text-align: left;
}
  color: white;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.app-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.11);
}

.app-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.app-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: white;
  position: relative;
  z-index: 1;
  text-align: left;
}

.app-hero-lead {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.page-content {
  padding: 34px 40px 40px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
}

.page-content.is-center {
  text-align: center;
}

@media (max-width: 640px) {
 .page-content {
    padding: 24px 18px 28px;
  }
}

/* =========================================================
   SP COMMON LAYOUT
   全画面共通スマホ調整
========================================================= */

@media (max-width: 640px) {

  body {
    font-size: 16px;
    overflow-x: hidden;
  }

  .page-shell {
    width: 100%;
    min-height: 100vh;
    padding: 12px 8px;
  }

  .page-shell.is-center {
    align-items: flex-start;
  }

  .main-container {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }

  .main-container.is-compact,
  .main-container.is-login {
    width: 100%;
  }

  .page-content,
  .content {
    padding: 22px 16px 28px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  input,
  select,
  textarea {
    min-height: 46px;
  }

  textarea {
    min-height: 96px;
  }

  button {
    min-height: 46px;
  }
}

/* =========================================================
   COMMON PAGE HERO
   全ページ共通ヘッダー
========================================================= */

.app-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;

  min-height: 180px;
  padding: 32px 40px;

  border-radius: 24px 24px 0 0;

  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(255,255,255,0.08),
      transparent 32%
    ),
    linear-gradient(
      135deg,
      var(--app-brand-light) 0%,
      #8c2720 48%,
      var(--app-brand-main) 100%
    );

  color: #ffffff;
}

.app-page-hero-logo-wrap {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.app-page-hero-logo {
  display: block;
  width: 118px;
  height: auto;
}

.app-page-hero-content {
  position: relative;
  z-index: 1;

  min-width: 0;
  justify-self: end;
  align-self: start;
  text-align: right;
}

.app-page-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;

  margin-bottom: 12px;
}

.app-page-hero-kicker,
.app-page-hero-company {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 32px;
  padding: 6px 14px;
  border-radius: 999px;

  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.96);

  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.app-page-hero-company {
  display: inline-block;

  max-width: 420px;

  white-space: normal;
  overflow: visible;
  text-overflow: clip;

  text-align: right;
  line-height: 1.4;
}

.app-page-hero-company span {
  min-width: 0;

  overflow: visible;
  text-overflow: clip;
  white-space: normal;

  overflow-wrap: anywhere;
  word-break: normal;
}

.app-page-hero-title {
  margin: 0;

  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.app-page-hero-lead {
  margin-top: 10px;

  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

.app-page-hero--no-company .app-page-hero-top {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .app-page-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;

    min-height: 150px;
    padding: 24px 18px;

    border-radius: 18px 18px 0 0;
  }

  .app-page-hero-logo {
    width: 84px;
  }

  .app-page-hero-content {
    justify-self: stretch;
    text-align: right;
  }

  .app-page-hero-top {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 8px;
  }

  .app-page-hero-kicker,
  .app-page-hero-company {
    min-height: 28px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .app-page-hero-company {
  max-width: 100%;
}

  .app-page-hero-title {
    font-size: 21px;
    line-height: 1.25;
  }

  .app-page-hero-lead {
    font-size: 13px;
  }
}