/* ROAST BLUES — first view + atmosphere */

:root {
  /* 完全な黒ではない、ほぼ黒 */
  --bg: #0c0d10;
  --fg: #e8e6e1;
  --muted: rgba(232, 230, 225, 0.55);
  --line: rgba(232, 230, 225, 0.22);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans",
    "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  --font-serif: ui-serif, "Hiragino Mincho ProN", "Noto Serif JP",
    "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "MS Mincho", serif;

  --fade-in: 2.8s;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

.home-link {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;

  display: block;
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.home-link img {
  height: 28px;
  width: auto;
  display: block;
}

.home-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--fg);
  background-color: var(--bg);
}

.enter-body,
.moon-body,
.atman-body {
  background: radial-gradient(
      1000px 700px at 20% -10%,
      rgba(159, 179, 255, 0.07),
      rgba(12, 13, 16, 0)
    ),
    radial-gradient(
      900px 700px at 90% 20%,
      rgba(232, 230, 225, 0.05),
      rgba(12, 13, 16, 0)
    ),
    linear-gradient(180deg, #050608, var(--bg));
}

.roast-body {
  background: radial-gradient(
      1200px 800px at 18% -10%,
      rgba(159, 179, 255, 0.06),
      rgba(12, 13, 16, 0)
    ),
    linear-gradient(180deg, #050608, var(--bg));
}

.menu-body {
  background: radial-gradient(
      1100px 750px at 15% -8%,
      rgba(159, 179, 255, 0.055),
      rgba(12, 13, 16, 0)
    ),
    radial-gradient(
      800px 600px at 92% 25%,
      rgba(232, 230, 225, 0.04),
      rgba(12, 13, 16, 0)
    ),
    linear-gradient(180deg, #050608, var(--bg));
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  width: auto;
  height: auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
}


/* index: hero.jpg 上のホットスポット（見た目は共通・位置だけ各クラスの --anchor-*） */
.menu-hotspot {
  --anchor-x: 36%;
  --anchor-y: 69%;
}

.secret-hotspot {
  --anchor-x: 85%;
  --anchor-y: 92%;
}

.philosophy-hotspot {
  --anchor-x: 28%;
  --anchor-y: 28%;
}

.photo-hotspot {
  --anchor-x: 56%;
  --anchor-y: 51%;
}

.menu-hotspot,
.secret-hotspot,
.philosophy-hotspot,
.photo-hotspot {
  position: absolute;
  left: var(--anchor-x);
  top: var(--anchor-y);
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: 0 0 0 0 rgba(232, 230, 225, 0.24);
  cursor: pointer;
  opacity: 1;
  text-decoration: none;
  overflow: hidden;
  z-index: 2;
  animation: roastGlow 4.8s ease-out infinite;
}

.menu-hotspot::before,
.secret-hotspot::before,
.philosophy-hotspot::before,
.photo-hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
}

.menu-hotspot:focus-visible,
.secret-hotspot:focus-visible,
.philosophy-hotspot:focus-visible,
.photo-hotspot:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 2px;
}

.menu-hotspot:hover,
.secret-hotspot:hover,
.philosophy-hotspot:hover,
.photo-hotspot:hover {
  box-shadow: 0 0 0 12px rgba(232, 230, 225, 0.08);
}

@media (max-width: 720px) {
  .menu-hotspot,
  .secret-hotspot,
  .philosophy-hotspot,
  .photo-hotspot {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 420px) {
  .menu-hotspot,
  .secret-hotspot,
  .philosophy-hotspot,
  .photo-hotspot {
    width: 28px;
    height: 28px;
  }
}

/* enter */
.enter {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 48px);
}

.enter__form {
  width: min(420px, 92vw);
  text-align: center;
}

.enter__label {
  margin: 0 0 18px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.enter__input {
  width: 100%;
  padding: 14px 6px 12px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--fg);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232, 230, 225, 0.18);
  outline: none;
  text-align: center;
}

.enter__input:focus {
  border-bottom-color: rgba(232, 230, 225, 0.38);
}

.enter__hint {
  margin: 14px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.35);
}

/* moon */
.moon {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(3.2rem, 10vh, 5rem) clamp(1.8rem, 6vw, 3rem)
    clamp(5rem, 16vh, 8rem);
  animation: moonFade 3.2s var(--ease) both;
}

.moon__head {
  text-align: center;
}

.moon__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.4);
}

.moon__title {
  margin: 18px 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.12em;
  font-size: clamp(1.4rem, 4.6vw, 2.2rem);
}

.moon__visual {
  margin: clamp(3rem, 10vh, 5rem) auto 0;
  display: grid;
  place-items: center;
}

/* moon (SVG) */
.moon-svg {
  width: min(180px, 60vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 28px 120px rgba(0, 0, 0, 0.55));
  opacity: 0.95;
}

/* atman：フェードは :root の --fade-in / --ease と同一 */
.atman {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(5rem, 16vh, 8rem) clamp(2rem, 7vw, 3.6rem)
    clamp(8rem, 22vh, 14rem);
  animation-name: fvFade;
  animation-duration: var(--fade-in);
  animation-timing-function: var(--ease);
  animation-fill-mode: both;
}

.atman__head {
  text-align: center;
}

.atman__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: 0.18em;
  font-size: clamp(1.3rem, 4.8vw, 2.2rem);
}

.atman__sub {
  font-size: 0.8em;
  letter-spacing: 0.1em;
  color: rgba(232, 230, 225, 0.68);
}

.atman__lead {
  margin: clamp(3.5rem, 11vh, 5.5rem) auto 0;
  max-width: 42rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: rgba(232, 230, 225, 0.7);
}

.atman__moon {
  margin: clamp(4rem, 13vh, 7rem) auto 0;
  display: grid;
  place-items: center;
}

.atman__moon-svg {
  width: min(320px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 140px rgba(0, 0, 0, 0.7));
  opacity: 0.92;
}

.atman__section {
  margin: clamp(6rem, 18vh, 9.5rem) auto 0;
  max-width: 40rem;
}

.atman__h {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.75);
}

.atman__p {
  margin: 0;
  color: rgba(232, 230, 225, 0.6);
  line-height: 2.15;
  letter-spacing: 0.06em;
}

.atman__close {
  font-family: var(--font-serif);
  margin: clamp(6rem, 18vh, 9.5rem) auto 0;
  max-width: 40rem;
  text-align: center;
  color: rgba(232, 230, 225, 0.65);
  letter-spacing: 0.1em;
}

.atman__image {
  margin: clamp(5rem, 16vh, 8rem) 0 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.atman__image img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.72) contrast(1.06) saturate(0.9);
  opacity: 0.9;
  border-radius: 16px;
}

.atman__space {
  height: max(140px, 24vh);
}

.atman__bio {
  margin: 0 auto;
  max-width: 40rem;
  padding-top: clamp(1rem, 3vh, 2rem);
}

.atman__bio-k {
  margin: 0 0 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(232, 230, 225, 0.5);
}

.atman__bio-p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: rgba(232, 230, 225, 0.46);
}

/* access */
.access-body {
  background: linear-gradient(180deg, #050608, #0c0d10);
}

.access {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3.4rem, 10vh, 5rem) clamp(1.6rem, 6vw, 3rem)
    clamp(5rem, 14vh, 8rem);
}

.access__head {
  text-align: left;
}

.access__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: 0.12em;
  font-size: clamp(1.3rem, 4.6vw, 2rem);
}

.access__sub {
  margin: 10px 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.4);
}

.access__info {
  margin-top: clamp(2.4rem, 7vh, 3.4rem);
}

.access__line {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: rgba(232, 230, 225, 0.8);
}

.access__map {
  margin-top: clamp(2.2rem, 7vh, 3.2rem);
}

.access__iframe {
  width: 100%;
  height: min(62vh, 520px);
  border: 1px solid rgba(232, 230, 225, 0.12);
  border-radius: 14px;
  background: #000;
}

.access__desc {
  margin-top: clamp(2.2rem, 7vh, 3.2rem);
  max-width: 44rem;
}

.access__p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.05;
  letter-spacing: 0.06em;
  color: rgba(232, 230, 225, 0.62);
}

.access__blank {
  height: clamp(4rem, 12vh, 7rem);
}

.moon__section {
  margin: clamp(4rem, 12vh, 6rem) auto 0;
  max-width: 34rem;
}

.moon__h {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.72);
}

.moon__p {
  margin: 0;
  color: var(--muted);
  line-height: 2.05;
  letter-spacing: 0.06em;
}

.moon__blank {
  height: clamp(5rem, 18vh, 10rem);
}

@keyframes moonFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ROAST page */
.roast-main {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(2.8rem, 10vh, 4.5rem) clamp(1.8rem, 6vw, 3rem)
    clamp(4rem, 14vh, 6rem);
}

.roast-section {
  margin: 0;
  padding: 0;
}

.roast-section + .roast-section {
  margin-top: clamp(5rem, 15vh, 7rem);
}

.roast-section--intro {
  text-align: center;
}

.roast-intro {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.7vw, 1.4rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.roast-section--photo {
  margin-top: clamp(4.5rem, 13vh, 6.5rem);
}

.roast-photo {
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(232, 230, 225, 0.16);
  background: #050608;
}

.roast-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.roast-section--text {
  margin-top: clamp(5.2rem, 15vh, 7.2rem);
}

.roast-text {
  max-width: 34rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.roast-text p {
  margin: 0 0 1.1rem;
}

.roast-block + .roast-block {
  margin-top: clamp(1.8rem, 6vh, 2.6rem);
}

.roast-h {
  margin: 0 0 2rem;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.72);
}

.roast-section--end {
  margin-top: clamp(4.5rem, 13vh, 6rem);
}

.roast-blank {
  height: clamp(4.5rem, 18vh, 9rem);
}

/*
 * philosophy.html 末尾の署名画像（画面幅基準・中央から右へ％）
 * .philosophy-signature-section .philosophy-signature-viewport で調整:
 *   --signature-shift-from-center  ビューポート幅に対し、中央からの横ずれ（数値のみ。正で右、負で左。10 = 画面幅の 10%）
 *   --signature-width              画像の幅
 *   --signature-margin-top         行ブロックの上余白
 *   --signature-nudge-x/y          微調整（translate に加算。単位付きで指定）
 */
.philosophy-signature-section .philosophy-signature-viewport {
  --signature-shift-from-center: 20;
  --signature-width: min(11rem, 52vw);
  --signature-margin-top: 0;
  --signature-nudge-x: 0px;
  --signature-nudge-y: 0px;

  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: var(--signature-margin-top);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.philosophy-signature__figure {
  margin: 0;
  padding: 0;
  transform: translate(
    calc(100vw * var(--signature-shift-from-center) / 100 + var(--signature-nudge-x)),
    var(--signature-nudge-y)
  );
}

.philosophy-signature__figure img {
  width: var(--signature-width);
  max-width: 100%;
  height: auto;
  display: block;
}

/* menu.html */

.menu-main {
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(2.8rem, 10vh, 4.5rem) clamp(1.8rem, 6vw, 3rem)
    clamp(4rem, 14vh, 6rem);
  scroll-margin-top: 1rem;
}

.menu-main__head {
  margin: 0 0 clamp(2rem, 6vh, 2.8rem);
}

.menu-main__title {
  margin: 0 0 clamp(1.2rem, 3vh, 1.8rem);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  letter-spacing: 0.18em;
  color: var(--fg);
}
.menu-main__category {
  margin-bottom: clamp(3rem, 10vh, 5rem);
}

.menu-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-tree__item {
  margin: 0;
  padding: 0 0 clamp(1.6rem, 4.5vh, 2.2rem);
}

.menu-tree__item:last-child {
  padding-bottom: 0;
}

.menu-tree__line {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  line-height: 1.7;
  color: var(--fg);
}

.menu-tree__sub {
  display: block;
  margin-top: 0.35rem;
  padding-left: 0.65em;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  line-height: 1.75;
  color: var(--muted);
  font-family: var(--font-sans);
}

.menu-main__blank {
  height: clamp(3.5rem, 12vh, 6rem);
}

/* First view */
.fv {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px);
}

.fv__center {
  text-align: center;
  max-width: 36rem;
  animation: fvFade var(--fade-in) var(--ease) both;
}

.fv__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: 0.14em;
  line-height: 1.25;
}

.fv__sub {
  margin: 1.1rem 0 0;
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 420px) {
  .fv__sub {
    white-space: normal;
  }
}

/* Scroll hint — 小さく、控えめ */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 36px);
  transform: translateX(-50%);
  padding: 12px;
  opacity: 0;
  animation: hintFade calc(var(--fade-in) + 0.6s) var(--ease) 0.9s both;
}

.scroll-hint:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 4px;
  border-radius: 2px;
}

.scroll-hint__line {
  display: block;
  width: 1px;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(232, 230, 225, 0.35) 40%,
    rgba(232, 230, 225, 0.12)
  );
}

@keyframes fvFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hintFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 2つ目：カフェの空気感（写真＋短文、余白多め） */
.atmosphere {
  padding: clamp(5.5rem, 14vh, 10rem) 0 clamp(6rem, 16vh, 12rem);
  scroll-margin-top: 1rem;
}

.atmosphere__intro {
  max-width: 28rem;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 48px);
  text-align: center;
}

.atmosphere__text {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(0.9375rem, 2.1vw, 1.0625rem);
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.atmosphere__photo {
  margin: clamp(15rem, 30vh, 20rem) 0 0;
  padding: 0;
  width: 100%;
  position: relative;
}

.atmosphere__photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* bottom block on index */
.site-end {
  padding: clamp(7rem, 22vh, 12rem) clamp(24px, 5vw, 48px)
    clamp(10rem, 30vh, 16rem);
}

.site-end__inner {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.site-end__brand {
  font-family: var(--font-serif);
  letter-spacing: 0.16em;
}

.site-end__meta {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  line-height: 2.1;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.site-end__access-wrap {
  margin: clamp(2.2rem, 6vh, 3.2rem) 0 0;
}

.site-end__access {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(232, 230, 225, 0.38);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(232, 230, 225, 0.12);
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}

.site-end__access:hover,
.site-end__access:focus-visible {
  color: rgba(232, 230, 225, 0.72);
  border-bottom-color: rgba(232, 230, 225, 0.28);
  outline: none;
}

@keyframes roastGlow {
  0%,
  40% {
    box-shadow: 0 0 0 0 rgba(232, 230, 225, 0);
  }
  55% {
    box-shadow: 0 0 0 18px rgba(232, 230, 225, 0.22);
  }
  75% {
    box-shadow: 0 0 0 26px rgba(232, 230, 225, 0.06);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 230, 225, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fv__center,
  .scroll-hint {
    animation: none !important;
    opacity: 1;
  }
  .atman {
    animation: none !important;
    opacity: 1;
  }
  .moon {
    animation: none !important;
  }
}
