/* 純喫茶 ロマン サンプルサイト専用スタイル（他ページに依存しない独立CSS） */

:root {
  --paper: #efe6d3;
  --paper-alt: #e7dcc4;
  --surface: #f7f1e3;
  --ink: #2b2018;
  --ink-soft: #5c4f3f;
  --ink-faint: #8c7c64;
  --brown-deep: #1c140d;
  --brown-deep-soft: #2a1f15;
  --brass: #9c7c3f;
  --brass-soft: #c2a869;
  --red: #6d2a2f;
  --line: rgba(43, 32, 24, 0.16);
  --line-strong: rgba(43, 32, 24, 0.32);

  --max: 1180px;
  --max-narrow: 760px;
  --header-h: 72px;

  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", sans-serif;

  --fs-wordmark: clamp(2rem, 3vw + 1.3rem, 3rem);
  --fs-h2: clamp(1.5rem, 1.1vw + 1.2rem, 2.1rem);
  --fs-lead: clamp(1.15rem, 0.8vw + 0.95rem, 1.5rem);
  --fs-body: clamp(0.96rem, 0.15vw + 0.9rem, 1.02rem);
  --fs-note: 0.84rem;
  --fs-eyebrow: 0.8rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body.rm {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p, dl, dd, figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.rm :focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

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

.rm-visually-hidden:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--brown-deep);
  color: var(--paper);
  z-index: 300;
  clip: auto;
  font-family: var(--sans);
}

.rm-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.rm-inner--narrow {
  max-width: var(--max-narrow);
}

.rm-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 14px;
}

.rm-section {
  padding: clamp(64px, 10vw, 132px) 0;
}

.rm-section--alt {
  background: var(--paper-alt);
}

.rm-section__head {
  max-width: 34em;
}

.rm-section__head h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- reveal-on-scroll : slow, quiet ---------- */
.rm-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}

.rm-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rm-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- vertical accent text ---------- */
.rm-vertical {
  display: none;
}

@media (min-width: 900px) {
  .rm-vertical {
    display: block;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--serif);
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    color: var(--brass-soft);
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
    height: 11em;
  }
}

/* ================= HEADER ================= */
.rm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.rm-header.is-scrolled {
  background: rgba(239, 230, 211, 0.94);
  backdrop-filter: blur(6px);
  border-bottom-color: var(--line);
}

.rm-header__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rm-brand {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #f7f1e3;
  transition: color 0.4s var(--ease);
}

.rm-header.is-scrolled .rm-brand {
  color: var(--ink);
}

.rm-nav {
  display: none;
}

.rm-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 38px);
}

.rm-nav__list a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: rgba(247, 241, 227, 0.88);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.rm-header.is-scrolled .rm-nav__list a {
  color: var(--ink-soft);
}

.rm-nav__list a:hover {
  color: #f7f1e3;
  border-color: var(--brass-soft);
}

.rm-header.is-scrolled .rm-nav__list a:hover {
  color: var(--ink);
  border-color: var(--brass);
}

.rm-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
}

.rm-menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: #f7f1e3;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background-color 0.4s var(--ease);
}

.rm-header.is-scrolled .rm-menu-toggle span {
  background: var(--ink);
}

.rm-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.rm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.rm-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.rm-mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--brown-deep);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  z-index: 90;
}

.rm-mobile-nav.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
}

.rm-mobile-nav__list a {
  display: block;
  padding: 16px 4px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid rgba(247, 241, 227, 0.14);
}

@media (min-width: 900px) {
  .rm-nav {
    display: flex;
  }
  .rm-menu-toggle {
    display: none;
  }
  .rm-mobile-nav {
    display: none;
  }
}

/* ================= HERO ================= */
.rm-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 960px;
  overflow: hidden;
}

.rm-hero__media {
  position: absolute;
  inset: 0;
}

.rm-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 46%;
  animation: rm-hero-zoom 20s var(--ease) forwards;
}

@keyframes rm-hero-zoom {
  from { transform: scale(1.04); }
  to { transform: scale(1); }
}

.rm-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(15, 10, 6, 0.58) 0%,
    rgba(15, 10, 6, 0.14) 30%,
    rgba(15, 10, 6, 0) 52%,
    rgba(15, 10, 6, 0.22) 100%
  );
}

.rm-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px clamp(40px, 8vw, 96px);
  color: #f7f1e3;
}

.rm-hero__title {
  font-size: var(--fs-wordmark);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.rm-hero__copy {
  margin-top: 16px;
  font-size: clamp(0.95rem, 0.6vw + 0.75rem, 1.15rem);
  letter-spacing: 0.14em;
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

@media (min-width: 900px) {
  .rm-hero__content {
    padding: 0 60px clamp(64px, 7vw, 108px);
  }
}

/* ================= ABOUT ================= */
.rm-about {
  display: grid;
  gap: clamp(36px, 5vw, 60px);
}

.rm-about__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rm-about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}

.rm-about__body h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 28px;
}

.rm-about__text {
  color: var(--ink-soft);
  line-height: 2.15;
  max-width: 26em;
}

.rm-about__text + .rm-about__text {
  margin-top: 1.6em;
}

@media (min-width: 900px) {
  .rm-about {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 7vw;
  }
  .rm-about__media {
    aspect-ratio: 5 / 4;
  }
}

/* ================= BANNER (full-width feature photo) ================= */
.rm-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.rm-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#coffee .rm-banner img {
  object-position: 52% 40%;
}

#sweets .rm-banner img {
  object-position: 45% 55%;
}

@media (min-width: 900px) {
  .rm-banner {
    aspect-ratio: 21 / 9;
  }
}

/* ================= COFFEE ================= */
.rm-coffee__body {
  max-width: 34em;
}

.rm-coffee__body h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.rm-coffee__lead {
  margin-top: 22px;
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: var(--red);
  padding-left: 20px;
  border-left: 2px solid var(--brass-soft);
}

.rm-coffee__text {
  margin-top: 26px;
  color: var(--ink-soft);
  line-height: 2.15;
}

@media (min-width: 900px) {
  .rm-coffee__body {
    margin-left: auto;
    margin-right: 8%;
  }
}

/* ================= BEANS ================= */
.rm-beans {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

.rm-beans__body h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 24px;
}

.rm-beans__text {
  color: var(--ink-soft);
  line-height: 2.1;
  max-width: 26em;
}

.rm-beans__list {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 26em;
}

.rm-beans__list li {
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
}

.rm-beans__note {
  margin-top: 22px;
  font-family: var(--sans);
  font-size: var(--fs-note);
  color: var(--ink-faint);
  line-height: 1.9;
}

.rm-beans__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.rm-beans__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
}

@media (min-width: 900px) {
  .rm-beans {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 7vw;
  }
  .rm-beans__media {
    aspect-ratio: 5 / 4;
  }
}

/* ================= MENU ================= */
.rm-menu {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 56px);
}

.rm-menu__group-title {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--brass);
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.rm-menu__row {
  display: flex;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.rm-menu__name {
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.rm-menu__leader {
  flex: 1;
  margin: 0 12px;
  border-bottom: 1px dotted var(--line-strong);
  transform: translateY(-5px);
}

.rm-menu__price {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rm-menu__note {
  margin-top: 20px;
  font-family: var(--sans);
  font-size: var(--fs-note);
  line-height: 1.95;
  color: var(--ink-faint);
}

.rm-menu__footnote {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

@media (min-width: 760px) {
  .rm-menu {
    flex-direction: row;
  }
  .rm-menu__group {
    flex: 1;
  }
}

/* ================= SWEETS ================= */
.rm-sweets__body {
  max-width: 32em;
}

.rm-sweets__body h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.rm-sweets__text {
  margin-top: 26px;
  color: var(--ink-soft);
  line-height: 2.15;
}

@media (min-width: 900px) {
  .rm-sweets__body {
    margin-left: 8%;
  }
}

/* ================= STORE ================= */
.rm-store__text {
  margin-top: 24px;
  color: var(--ink-soft);
  line-height: 2.15;
}

.rm-store__facts {
  margin-top: clamp(36px, 5vw, 52px);
  display: flex;
  flex-direction: column;
}

.rm-store__facts > div {
  display: flex;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.rm-store__facts dt {
  flex: 0 0 84px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 3px;
}

.rm-store__facts dd {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
}

/* ================= ACCESS ================= */
.rm-access {
  display: grid;
  gap: clamp(36px, 5vw, 56px);
}

.rm-access__body h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 26px;
}

.rm-access__list {
  display: flex;
  flex-direction: column;
}

.rm-access__list > div {
  display: flex;
  gap: 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.rm-access__list dt {
  flex: 0 0 60px;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-top: 2px;
}

.rm-access__list dd {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink);
}

.rm-tel {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--brass-soft);
  padding-bottom: 1px;
}

.rm-tel:hover {
  color: var(--brass);
}

.rm-access__note {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: var(--fs-note);
  color: var(--ink-faint);
  line-height: 1.9;
}

.rm-access__map {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 58px),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 58px),
    var(--surface);
  overflow: hidden;
}

.rm-access__road {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: block;
}

.rm-access__road--h {
  left: 0;
  right: 0;
  top: 40%;
  height: 20px;
}

.rm-access__road--v {
  top: 0;
  bottom: 0;
  left: 55%;
  width: 20px;
}

.rm-access__pin {
  position: absolute;
  top: 40%;
  left: 55%;
  transform: translate(-50%, -140%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  background: var(--brown-deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.rm-access__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

@media (min-width: 900px) {
  .rm-access {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ================= FOOTER ================= */
.rm-footer {
  background: var(--brown-deep);
  color: rgba(247, 241, 227, 0.82);
  padding: 56px 0 40px;
}

.rm-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rm-footer__brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.rm-footer__sns {
  display: flex;
  gap: 22px;
}

.rm-footer__sns button {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 227, 0.68);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(247, 241, 227, 0.28);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.rm-footer__sns button:hover {
  color: var(--paper);
  border-color: var(--brass-soft);
}

.rm-footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(247, 241, 227, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rm-footer__disclaimer {
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.95;
  color: rgba(247, 241, 227, 0.5);
  max-width: 48em;
}

.rm-footer__bottom-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-footer__copy {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: rgba(247, 241, 227, 0.5);
}

.rm-footer__back {
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: rgba(247, 241, 227, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 241, 227, 0.32);
  padding-bottom: 2px;
}

.rm-footer__back:hover {
  color: var(--paper);
}

@media (min-width: 760px) {
  .rm-footer__bottom-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ================= TOAST (demo notice) ================= */
.rm-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 14px);
  z-index: 200;
  width: min(92vw, 400px);
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--brass);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.rm-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.rm-toast__title {
  font-family: var(--serif);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.rm-toast__text {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

@media (prefers-reduced-motion: reduce) {
  .rm-hero__media img {
    animation: none;
  }
}
