:root {
  --primary-orange: #FA532F;
  --primary-orange-dark: #E03E1B;
  --primary-orange-light: #FFF1E8;
  --primary-amber: #FCB242;
  --amber-light: #FFF6E6;
  --ink: #2B2420;
  --ink-soft: #5c5650;
  --text-gray: #8a8079;
  --text-light: #b3aaa3;
  --line: #efeae4;
  --bg-white: #ffffff;
  --card: #ffffff;
  --page-bg: #FFF6EE;
  --font-round: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 248, 240, .45), rgba(255, 245, 235, .55)),
    url('/portal/assets/bg_hero.png') no-repeat center top fixed;
  background-color: var(--page-bg);
  background-size: cover;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: .02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

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

.topWrapper {
  position: relative;
  z-index: 1;
  padding: 28px 0 44px;
  min-height: 100vh;
}

.site_outer {
  width: 600px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(180, 120, 70, .16), 0 4px 14px rgba(0, 0, 0, .04);
  overflow: hidden;
}

.l-inner {
  padding: 0 18px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-container {
  padding: 11px 18px;
  height: 52px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
}

.logo-main-img {
  width: 160px;
  height: auto;
  display: block;
}

.logo .logo-icon img {
  width: 30px;
  height: auto;
  display: block;
}

.logo .logo-text-img {
  width: 96px;
  height: auto;
  display: block;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-round);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}

.btn-primary {
  background: var(--primary-orange);
  color: #fff;
  box-shadow: 0 5px 14px rgba(250, 83, 47, .3);
}

.btn-yellow {
  background: var(--primary-amber);
  color: #fff;
  box-shadow: 0 5px 14px rgba(252, 178, 66, .3);
}

.btn-primary:hover,
.btn-yellow:hover {
  transform: translateY(-2px);
}

.btn-icon {
  width: 13px;
  height: 13px;
  filter: brightness(0) invert(1);
}

.back-link {
  color: var(--primary-orange);
  font-family: var(--font-round);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary-orange-light);
}

.back-link:visited,
.back-link:hover,
.back-link:focus {
  color: var(--primary-orange);
}

.footer-simple {
  background: url('/portal/assets/bg_footer.png') no-repeat center top;
  background-size: cover;
  border-top: 1px solid var(--line);
}

.footer {
  padding: 32px 0 20px;
}

.footer-container {
  padding: 0 18px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  margin-bottom: 18px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-logo-text {
  font-family: var(--font-round);
  font-size: 13px;
  color: var(--ink);
  font-weight: 700;
}

.footer-logo .logo .logo-icon img {
  width: 22px;
}

.footer-logo .logo .logo-text-img {
  width: 92px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 24px;
  justify-content: center;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-gray);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-copyright {
  font-size: 11px;
  color: var(--text-light);
}

.footer-copyright {
  text-align: center;
}

@media (max-width: 640px) {
  .topWrapper {
    padding: 0;
  }

  .site_outer {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }
}
