/* 背景設定は style.css に保持。中央の上余白の相殺だけを防ぐ。 */
body { display: flow-root; }
.background-lettering { display: none; }
@media (min-width: 769px) {
  .background-lettering {
    display: block;
    position: fixed;
    inset: auto 0 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    color: rgba(51, 51, 51, 0.25);
    text-shadow: none;
    font-family: Arial, sans-serif;
    font-kerning: none;
    font-size: clamp(64px, 6.1vw, 120px);
    font-weight: 300;
    line-height: 1;
  }
  .background-lettering__track {
    display: flex;
    --lettering-gap: 400px;
    gap: var(--lettering-gap);
    width: max-content;
    white-space: pre;
    /* 同じ文字列2個の全体幅から1個分＋間隔を送り、2回目のAを左端10pxに揃える。 */
    transform: translateX(calc((-100% - var(--lettering-gap)) / 2 + 10px));
    animation: background-lettering-reveal 1.5s ease-out 1 both;
  }
  .background-lettering__track > span { flex-shrink: 0; }
  .lp-content, .side-menu, .trial-menu { position: relative; z-index: 1; }
}
@keyframes background-lettering-reveal {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .background-lettering__track { animation: none; }
}
.lp-content {
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  background-color: #FFFFFF;
  overflow-wrap: anywhere;
}
.lp-header {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 50px;
  padding: 0 20px;
  border-radius: inherit;
  background-color: #FFFFFF;
}
.lp-header__logo {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: auto;
  /* 画像内の上下の透明余白の差を補正し、ロゴ本体を中央に揃える。 */
  transform: translateY(1px);
}
.lp-header__button {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 105px;
  height: 32px;
  border-radius: 999px;
  background-color: #C58A5B;
  color: #FFFFFF;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.lp-header__button:focus-visible {
  outline: 2px solid #72B5DE;
  outline-offset: 3px;
}
.side-menu, .trial-menu {
  display: none;
  box-sizing: border-box;
  color: #FFFFFF;
  font-family: "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}
@media (min-width: 769px) {
  .lp-content {
    margin-top: 58px;
    min-height: calc(100vh - 58px);
    min-height: calc(100svh - 58px);
    border-radius: 26px 26px 0 0;
  }
  .side-menu, .trial-menu { display: block; position: fixed; }
  .side-menu {
    top: 55px;
    left: min(60px, 3.306vw);
    width: min(400px, calc((100vw - 460px) / 2 - min(60px, 3.306vw) - 24px));
    max-height: calc(100svh - 70px);
    overflow-y: auto;
  }
  .side-logo { height: 175px; }
  /* 画像内の左透明余白（14 / 2172）を、画像サイズを保って補正。 */
  .side-logo img { display: block; width: 100%; height: auto; transform: translateX(-0.645%) scale(0.828); transform-origin: top left; }
  .side-nav {
    display: grid;
    grid-auto-rows: 60px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
  }
  .side-nav a {
    display: inline-block;
    color: #4A3B32;
    font-size: clamp(14.72px, 1.656vw, 21.16px);
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
  }
  .side-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
  .trial-menu {
    top: calc(clamp(16px, calc(50svh + 15px), calc(100svh - 297px)) - 90px);
    right: min(45px, 2.5vw);
    width: 275px;
    max-width: calc((100vw - 460px) / 2 - min(45px, 2.5vw) - 24px);
    min-width: 0;
    max-height: calc(100svh - clamp(16px, calc(50svh + 15px), calc(100svh - 297px)) - 16px);
    overflow-y: auto;
    text-align: center;
  }
  .trial-menu > .trial-card, .trial-menu > .trial-button {
    width: 100%;
    min-width: 0;
  }
  .trial-card {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    align-items: center;
    gap: 12px;
    height: 125px;
    padding: 20px;
    border-radius: 22px;
    background-color: #EAD8C7;
    color: #333333;
  }
  .trial-copy { text-align: left; }
  .trial-intro { margin: 0 0 5px; color: #C58A5B; font-size: 12px; line-height: 1.5; }
  .trial-duration { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.6; }
  .trial-note { margin: 0; font-size: 15px; line-height: 1.6; }
  .trial-qr {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 84px;
    height: 84px;
    padding: 6px;
    background: #FFFFFF;
    color: #000000;
    line-height: 1.6;
  }
  .trial-qr strong { font-size: 12px; }
  .trial-qr span { font-size: 10px; }
  .trial-qr img { display: block; width: 100%; height: auto; }
  .trial-button {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-top: 18px;
    padding: 6px 12px;
    border-radius: 30px;
    background-color: #C58A5B;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    text-decoration: none;
  }
  .trial-button:hover { background-color: #C58A5B; }
  .trial-button-details { padding-block: 13px; background-color: #A88363; font-size: 20px; }
  .trial-button-details:hover { background-color: #A88363; }
  .side-nav a:focus-visible, .trial-button:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 4px; }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .trial-card { height: auto; min-height: 125px; grid-template-columns: 1fr; justify-items: center; padding: 16px 8px; }
  .trial-copy { text-align: center; }
  .trial-button { padding: 6px; font-size: 12px; line-height: 1.4; }
  .trial-button-details { font-size: 16px; padding-block: 6px; }
}
@media (max-width: 768px) {
  .lp-content { max-width: none; }
}

/* 新画像の縦横比に関係なく、旧ロゴの表示枠を維持。 */
.side-logo img, .lp-header__logo, .site-footer .site-footer__logo {
  aspect-ratio: 2172 / 724;
  object-fit: contain;
}
