:root {
  --green: #07503f;
  --green-dark: #043c30;
  --gold: #d89b28;
  --cream: #fffaf0;
  --ink: #18382f;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: #f7e8c9;
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: min(880px, 100svh);
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 239, 181, .92) 0 7%, transparent 24%),
    linear-gradient(180deg, #9bd8ed 0%, #f7d68d 63%, #d4ad62 100%);
}

.sky-glow {
  position: absolute; inset: 0; z-index: -1; opacity: .72;
  background: radial-gradient(circle at 78% 18%, #fff9c7 0 4%, transparent 14%);
}

.mountains { position: absolute; inset-inline: -5%; bottom: -2px; z-index: -1; clip-path: polygon(0 100%, 0 57%, 11% 41%, 20% 62%, 34% 28%, 45% 58%, 58% 37%, 69% 68%, 84% 21%, 100% 54%, 100% 100%); }
.mountains-back { height: 45%; background: linear-gradient(180deg, #658b75, #426d58); opacity: .66; }
.mountains-front { height: 30%; background: linear-gradient(180deg, #315d47, #123c2e); clip-path: polygon(0 100%, 0 55%, 12% 68%, 25% 27%, 36% 64%, 54% 38%, 64% 65%, 80% 22%, 92% 60%, 100% 43%, 100% 100%); }

.hero { width: min(1120px, 100%); min-height: min(820px, 100svh); margin: auto; padding: 24px clamp(18px, 4vw, 56px) 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; }

.top-mark { position: absolute; z-index: 3; top: 24px; left: clamp(18px, 4vw, 56px); display: flex; align-items: center; gap: 10px; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.top-mark img { width: 36px; height: 36px; object-fit: contain; }

.content-card { width: min(650px, 100%); position: relative; text-align: center; padding: clamp(34px, 6vw, 58px) clamp(20px, 7vw, 72px) 34px; border: 2px solid rgba(216, 155, 40, .65); border-radius: 30px; background: rgba(255, 250, 240, .90); box-shadow: 0 16px 44px rgba(43, 67, 42, .22); backdrop-filter: blur(4px); }
.main-logo { width: min(330px, 74%); max-height: 160px; object-fit: contain; margin-bottom: 5px; }
.eyebrow { margin: 4px 0 12px; color: #9b6820; font-size: 11px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; color: var(--green); font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; font-size: clamp(28px, 4.7vw, 40px); letter-spacing: .04em; }
.lead { margin: 22px 0 6px; font-weight: 800; font-size: clamp(15px, 2.4vw, 19px); line-height: 1.7; }
.sublead { margin: 0; font-size: clamp(14px, 2.1vw, 17px); line-height: 1.7; }
.catchcopy { margin: 25px 0 20px; color: var(--green); font-size: clamp(16px, 2.5vw, 20px); font-weight: 900; }

.links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1.5px solid var(--green); border-radius: 999px; color: var(--green); background: #fffdf8; text-decoration: none; font-weight: 800; font-size: 14px; transition: transform .15s ease, background .15s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #f8e7bc; }
.button.primary { color: white; background: var(--green); }

.characters img { position: absolute; z-index: 2; bottom: 75px; width: clamp(150px, 21vw, 248px); filter: drop-shadow(0 12px 9px rgba(40, 50, 28, .24)); pointer-events: none; }
.kakka { left: max(0px, 1vw); }
.puni { right: max(0px, 1vw); }

.hq-message { position: absolute; bottom: 22px; display: flex; align-items: center; gap: 9px; padding: 10px 17px; border: 1px solid rgba(255, 247, 222, .7); border-radius: 999px; color: #fff8e4; background: rgba(4, 60, 48, .87); font-size: clamp(12px, 2vw, 14px); font-weight: 800; box-shadow: 0 5px 18px rgba(0, 0, 0, .15); }
.signal-dot { width: 9px; height: 9px; border-radius: 50%; background: #82e49c; box-shadow: 0 0 0 5px rgba(130, 228, 156, .18); }

footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px max(20px, calc((100vw - 1120px) / 2)); color: #f8ebcf; background: var(--green-dark); font-size: 12px; }
footer p { margin: 0; } footer a { color: #fff1bc; }

@media (max-width: 760px) {
  .site-shell { min-height: 100svh; }
  .hero {
    min-height: 100svh;
    padding: 86px 18px 102px;
    justify-content: center;
  }
  .top-mark { top: 22px; left: 22px; }
  .content-card {
    margin: 0;
    padding: 34px 22px 28px;
    border-radius: 28px;
  }
  .main-logo { width: min(265px, 75%); max-height: 130px; }
  .eyebrow { margin-top: 8px; }
  .lead { margin-top: 19px; }
  .catchcopy { margin: 20px 0 18px; }

  /* 画面が狭い時は本文を最優先。キャラクターは横長表示でのみ大きく見せる。 */
  .characters { display: none; }
  .hq-message { bottom: 18px; max-width: calc(100% - 32px); justify-content: center; text-align: center; }
}

@media (max-width: 420px) {
  .top-mark span { font-size: 10px; }
  h1 { font-size: 29px; }
  .lead { font-size: 15px; }
  .sublead { font-size: 14px; }
  .links { gap: 8px; }
  .button { min-height: 42px; padding-inline: 13px; font-size: 13px; }
}

/* 横向きスマホは高さが足りないため、本文の可読性を優先する。 */
@media (max-height: 560px) and (orientation: landscape) {
  .site-shell, .hero { min-height: 100svh; }
  .hero { padding: 58px 20px 64px; }
  .top-mark { top: 12px; left: 20px; }
  .content-card { width: min(760px, 82vw); padding: 22px 42px 18px; }
  .characters { display: none; }
  .main-logo { width: min(215px, 34vw); max-height: 84px; margin-bottom: 0; }
  .eyebrow { margin: 0 0 5px; font-size: 9px; }
  h1 { font-size: clamp(25px, 3vw, 34px); }
  .lead { margin: 10px 0 3px; font-size: 14px; line-height: 1.45; }
  .sublead { font-size: 13px; line-height: 1.4; }
  .catchcopy { margin: 10px 0 10px; font-size: 15px; }
  .button { min-height: 36px; padding: 7px 13px; }
  .hq-message { bottom: 10px; padding: 7px 13px; }
}
