:root {
  --paper: #f7f0df;
  --ink: #4b2f1f;
  --ink-soft: #654936;
  --line: rgba(75, 47, 31, 0.22);
  --panel: rgba(250, 245, 232, 0.1);
  --shadow: rgba(49, 31, 20, 0.18);
}

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

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Noto Serif JP",
    "Yu Mincho",
    "Hiragino Mincho ProN",
    "Hiragino Mincho Pro",
    serif;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background:
    url("hero-kyoto-coffee.webp")
    center center / cover
    no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(247, 240, 223, 0.68) 0%,
      rgba(247, 240, 223, 0.38) 46%,
      rgba(247, 240, 223, 0.08) 100%
    );
}

.hero__content {
  align-self: center;
  width: min(760px, calc(100% - 48px));
  margin-left: clamp(24px, 8vw, 120px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.status {
  display: inline-block;
  margin: 0 0 1.2rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: clamp(0.78rem, 1.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.lead {
  margin: clamp(1.3rem, 3vw, 2rem) 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.note {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.9;
}

.hero__footer {
  position: absolute;
  right: 20px;
  bottom: 16px;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  color: rgba(75, 47, 31, 0.78);
  background: rgba(247, 240, 223, 0.72);
  font-family: sans-serif;
  font-size: 0.75rem;
}

/* タブレット */
@media (max-width: 900px) {
  .hero {
    background-position: 54% center;
  }

  .hero__content {
    width: min(680px, calc(100% - 40px));
    margin-inline: auto;
  }
}

/* スマートフォン */
@media (max-width: 600px) {
  .hero {
    align-items: end;
    min-height: 100svh;
    background-position: 58% center;
  }

  .hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(247, 240, 223, 0.05) 0%,
        rgba(247, 240, 223, 0.26) 38%,
        rgba(247, 240, 223, 0.92) 78%,
        rgba(247, 240, 223, 0.98) 100%
      );
  }

  .hero__content {
    align-self: end;
    width: calc(100% - 24px);
    margin: 0 auto 46px;
    padding: 24px 20px 28px;
    background: rgba(250, 245, 232, 0.2);
  }

  h1 {
    font-size: clamp(1.15rem, 8vw, 1.5rem);
    line-height: 1.28;
  }

  .lead {
    line-height: 1.7;
  }

  .hero__footer {
    right: 12px;
    bottom: 10px;
  }
}

/* 動きを減らす設定への配慮 */
@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: fade-up 900ms ease-out both;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
