/* ================================
   CSS Variables
================================ */
:root {
  --color-bg: #0f0609;
  --color-surface: #1a0a0f;
  --color-surface2: #220d15;
  --color-rose: #c4607a;
  --color-rose-lt: #e8a0b0;
  --color-gold: #b89a6a;
  --color-text: #e8ddd5;
  --color-text-muted: #8a7570;
  --color-line: rgba(196, 96, 122, 0.2);

  --font-display: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-body: "Noto Serif JP", serif;

  --cta-h: 64px;
  --header-h: 52px;
  --radius-sm: 6px;
  --radius-md: 12px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   Reset & Base
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 1rem;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  max-width: auto;
  margin: 0 auto;
  padding-bottom: calc(var(--cta-h));
  overflow-x: hidden;
}

.bg {
  background-image: url("../img/bgMain.webp");
  background-repeat: repeat-y;
  background-position: top center;
  background-size: contain;
}

img {
  width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

/* ================================
   Header
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-h);
  background: rgba(15, 6, 9, 0.85);
  opacity: 0.75;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.header-logo {
  height: 28px;
  width: auto;
  opacity: 1;
}

header h1 {
  font-size: 1rem;
  color: var(--color-text);
  margin-left: 24px;
  opacity: 0.7;
}
header h1 a {
  display: flex;
  align-items: center;
  width: 150px;
  height: auto;
}

header h1 a img {
  margin-right: 10px;
}

/* ================================
   Splash
================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: #fff;
  display: none;
  opacity: 1;
  transition: opacity 1s ease;
}

.splash.is-active {
  display: block; /* flexから変更 */
}

.splash-logo {
  position: absolute;
  top: 44.8%;
  left: 49.9%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: auto;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.3s;
}

.splash-catch {
  /* 位置はお好みで、今のままでもOK */
  position: absolute;
  top: calc(45% + 80px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #8b2d45;
  text-align: center;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1.5s;
}

.splash.is-fadeout {
  opacity: 0;
  pointer-events: none;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ================================
   FV
================================ */
.fv {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.fv-media {
  position: absolute;
  inset: -1px;
  z-index: 1;
  overflow: hidden;
}

.fv-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.fv-logo {
  position: absolute;
  top: 45%;
  left: 50.1%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 360px;
  height: auto;
  opacity: 0;
  animation: fadeUpLogo 1s ease forwards 0.3s;
}

.fv-logo-catch {
  font-weight: 600;
  color: #5b493e;
}

@keyframes fadeUpLogo {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.fv-catch-wrap {
  position: absolute;
  bottom: calc(var(--cta-h) + 64px);
  left: 28px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}

.fv-catch-main {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: #8b2d45;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
  z-index: 999;
}

.fv-catch-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #7a5a65;
  margin-top: 10px;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
  z-index: 999;
}

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

/* ================================
   Section 共通
================================ */
.section-inner {
  padding: 40px 24px;
}

.section-title {
  margin-bottom: 28px;
}

.section-title-en {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--color-rose);
  line-height: 1;
  letter-spacing: 0.02em;
  background: url(../img/underBar.webp) no-repeat;
  background-position: left bottom;
  background-size: 100% auto;
  padding-bottom: 12px;
}

.section-title-ja {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* ================================
   Calendar
================================ */
.calendar-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.section-calendar {
  padding: 0;
  scroll-margin-top: var(--header-h);
}

.section-calendar .mypage-card {
  /* background: rgba(26, 10, 15, 0.85); */
  border: 1px solid var(--color-line);
  color: var(--color-text);
}

.index-calendar {
  background-image: url(../img/calenderBg.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
}

.section-calendar #calendar-title {
  color: #5d4037;
}

.section-calendar .calendar-table th,
.section-calendar .calendar-table td {
  /* background-color: var(--color-surface2); */
  color: var(--color-text);
  color: #5d4037;
}

.section-calendar .calendar-table th {
  background-color: var(--color-surface);
  color: var(--color-rose-lt);
}

.calendar-wrap iframe {
  width: 100%;
  height: 500px;
  border-radius: 8px;
}

.calendar-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.insta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-rose-lt);
  transition: color var(--transition);
}

.insta-link:hover,
.insta-link:focus {
  color: var(--color-rose);
}

.insta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ================================
   How To Use
================================ */
.section-howto .section-inner {
  padding: 24px;
}

.btn-howto {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: url(../img/btnBody.jpg) center/cover no-repeat;
  overflow: hidden;
}

.btn-howto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(232, 160, 176, 0.3) 0%,
    rgba(196, 96, 122, 0.5) 100%
  );
  z-index: 0;
}

.btn-howto-label {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

.btn-howto:hover {
  transform: translateX(4px);
}

.accordion-input {
  display: none;
}

.accordion-list {
  display: none;
  list-style: none;
  padding: 16px 0 0;
}

.accordion-list li a {
  display: block;
  text-align: center;
  padding: 13px 0;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #fff;
  background: rgba(176, 73, 99, 0.75);
  border-radius: 4px;
  transition: opacity var(--transition);
}

.accordion-list li {
  margin-bottom: 10px;
}

.accordion-list li::after {
  content: "";
  display: block;
  width: 70%;
  height: 32px;
  margin: 0 auto;
  background-image: url(../img/underBar.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.accordion-input:checked ~ .accordion-list {
  display: block;
}

.accordion-input:checked ~ .btn-howto .btn-howto-arrow {
  display: inline-block;
  transform: rotate(180deg);
  transition: transform var(--transition);
}

.btn-howto-arrow {
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform var(--transition);
}

/* ================================
   Menu
================================ */

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-bottom: 80px;
}

.menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* 画像を右寄せ */
  gap: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.menu-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-thumb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  mask-image: radial-gradient(circle at 50% 50%, black 55%, transparent 80%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    black 55%,
    transparent 80%
  );
}

.menu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-categolyText {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 280px;
  height: 240px;
  align-self: flex-start;
  text-align: center;
}

.menu-categolyText::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../img/menuBg.webp);
  background-position: left center -4px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.5;
  z-index: 0;
}

.menu-label {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--color-rose);
  margin-bottom: 8px;
}

.menu-textDetail {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--color-surface2);
  padding: 48px;
  width: 100%;
  box-sizing: border-box;
}

.menu-more {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: #8b2d45;
  background: transparent;
  border: 1px solid #c9a84c;
  padding: 8px 24px;
  text-align: center;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* ================================
   Time
================================ */

.section-time {
  background-image: url(../img/timeTop.webp);
  background-repeat: no-repeat;
  background-position: top right;
  background-size: cover;
  padding-bottom: 6rem;
}

.time-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-icon {
  font-size: 1.4rem;
}

.time-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

.time-note {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.time-icons-row {
  display: flex;
  gap: 30px;
  margin-top: 4px;
}

.sns-icon-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-surface2);
  border: 1px solid var(--color-line);
  display: block;
}

/* ================================
   Access
================================ */

.access-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.access-addr {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.access-transit {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

/* ================================
   Footer
================================ */

.footer {
  text-align: center;
  padding: 2rem 0 5.5rem;
  background-image: url(../img/footerUnder.webp);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
}

.footer-catch {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: #8b2d45;
  margin-bottom: 2rem;
}

.copyright {
  font-size: 0.7rem;
  display: block;
}

/* ================================
   CTA Fixed Bar
================================ */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: auto;
  height: var(--cta-h);
  background: rgba(15, 6, 9, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-line);
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  z-index: 200;
}

.cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  transition: color var(--transition);
  padding: 8px;
}

.cta-btn:hover,
.cta-btn:focus {
  color: var(--color-text);
}

.cta-icon {
  width: 22px;
  height: 22px;
}

.cta-barcode {
  background: linear-gradient(135deg, var(--color-rose) 0%, #8b2d45 100%);
  color: #fff;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  transition: opacity var(--transition);
}

.cta-barcode:hover,
.cta-barcode:focus {
  opacity: 0.85;
  color: #fff;
}

.cta-menu-toggle span {
  display: none;
}

/* ================================
   Barcode Modal
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid var(--color-line);
  padding: 32px 24px 48px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
}

.modal-overlay.is-open .modal-sheet {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  padding: 4px;
}

.modal-title {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.barcode-area {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.barcode-placeholder {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.05em;
}

.modal-member-id {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: #000;
  margin-top: 12px;
}

/* ================================
   Drawer
================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.drawer-overlay.is-open {
  pointer-events: all;
}

.drawer {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  top: var(--header-h); /* ヘッダー分下げる */
  left: 0;
  right: 0;
  bottom: 0;
  clip-path: polygon(100% 100%, 100% 100%, 100% 100%, 100% 100%);
  background: url(../img/drawerBg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: clip-path 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  padding: clamp(20px, 5vw, 32px);
}

.drawer-overlay.is-open .drawer {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.drawer-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-evenly;
  text-align: center;
  list-style: none;
  color: var(--color-surface);
}

.drawer-list li a {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.drawer-close {
  display: block;
  font-size: clamp(1rem, 3vw, 1.5rem);
  padding: 24px 0;
  width: 100%;
  border-top: 1px solid var(--color-surface2);
}

.drawer-link {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 300;
  padding: 0;
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.drawer-link:hover {
  color: var(--color-rose-lt);
}

/* ================================
   Utility
================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ================================
   Map
================================ */
.section-map {
  /* min-height: 100dvh; */
  background-image: url(../img/sectionBg4.webp), url(../img/sectionBg5.webp);
  background-position:
    left -120px top 24px,
    right -80px bottom -40px;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size:
    400px auto,
    320px auto;
}

.section-map--page {
  padding-bottom: 7rem;
}

.access-body {
  margin: 40px 0;
}

.map-embed {
  margin-top: 32px;
}

.map-placeholder {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.map-load-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: #8b2d45;
  border: 1px solid #c9a84c;
  background: transparent;
  margin-top: 8px;
  cursor: pointer;
}

/* ================================
   Menu
================================ */

.section-menupage {
  background-image: url(../img/sectionBg3.webp), url(../img/sectionBg4.webp);
  background-position:
    left -40px top 24px,
    right -24px bottom 16px;
  background-repeat: no-repeat, no-repeat;
  background-size:
    300px auto,
    200px auto;
  padding-bottom: 120px;
}

.menupage-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}
.menupage-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-rose-lt);
  text-align: center;
  width: 80px;
}

/* ================================
   Concept
================================ */

.section-concept {
  min-height: 100dvh;
  background-image: url(../img/sectionBg1.webp), url(../img/sectionBg2.webp);
  background-position:
    left -80px top,
    right -40px bottom;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size:
    400px auto,
    240px auto;
}

/* ================================
   Concept SectionTitle
================================ */

.section-concept .section-title {
  margin-bottom: 24px;
}

/* ================================
   Concept CardList
================================ */

.concept-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ================================
   Tab Component
================================ */
/* .concept-tab / .tab-btn は menu.html でも共用 */
.concept-tab {
  display: flex;
  gap: 8px;
}

.tab-btn {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.tab-btn.is-active {
  background: var(--color-rose);
  border-color: var(--color-rose);
  color: #fff;
}

.concept-card {
  position: relative;
  border-radius: 2px;
  display: block;
  opacity: 0;
  height: 0;
  overflow: hidden;
  padding-top: 0; /* ← 非表示時は0 */
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.concept-card.is-active {
  opacity: 1;
  height: auto;
  padding-top: var(--header-h); /* ← 表示時だけ適用 */
  pointer-events: auto;
}

/* ================================
   Concept Card Parts
================================ */
.concept-card-divider {
  width: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--color-rose), transparent);
  margin-bottom: 16px;
}

.concept-card-body {
  font-family: "Noto Serif JP", serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 2;
  letter-spacing: 0.04em;
}

/* ================================
   MyPage 共通
================================ */
.mypage {
  min-height: 100svh;
}

.mypage-message {
  font-size: 0.8rem;
  color: #28a745;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* ================================
   MyPage カード
================================ */
.mypage-card {
  background: rgba(255, 255, 255, 0.95);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #f3e5f5;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
}

.mypage-card-title {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-rose);
  padding-left: 10px;
  margin-bottom: 16px;
}

/* ================================
   ユーザー情報
================================ */
.mypage-user {
  background-image: url(../img/userdate.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  /* width: 370px;
  height: 200px; */
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
}

.mypage-nickname {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: #5d4037;
  margin-bottom: 6px;
}

.mypage-meta {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.mypage-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.mypage-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid hsl(321, 98%, 80%);
  box-shadow:
    0 0 5px hsla(332, 100%, 75%, 0.805),
    0 0 10px rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-sm);
  width: 200px;
  height: auto;
  font-size: 0.85rem;
  color: #5d4037;
  font-family: var(--font-body);
}

.mypage-input:focus {
  outline: none;
  border-color: var(--color-rose);
  box-shadow: 0 0 6px rgba(196, 96, 122, 0.2);
}

.mypage-btn {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--color-rose) 0%, #8b2d45 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition);
}

.mypage-btn:hover {
  opacity: 0.85;
}

/* ================================
   スタンプカード
================================ */
.mypage-stamp {
  background-image: url(../img/stampcard.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  /* width: 330px;
  height: 200px; */
  padding: 20px;
  margin-bottom: 40px;
  opacity: 0.7;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
}

.stamp-card {
  display: flex;
  justify-content: space-around; /* 隙間を均等に（画像に合わせて調整） */
  align-items: center;
  padding: 12px;
  margin: 12px 0;
  position: relative;
  /* 背景画像との重なりを見るために高さを明示的に持たせると調整しやすいです */
  min-height: 100px;
}

/* 中央の線を画像に合わせて消すか、位置を調整 */
.stamp-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
  display: none; /*線の削除*/
}

.stamp {
  width: 56px; /* 画像の円のサイズに合わせて微調整 */
  height: 56px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  z-index: 2;
  transition: all 0.3s ease;
}

/* --- ここから位置の個別調整 --- */

/* 1番目と5番目：少し上に */
.stamp:nth-child(1) {
  transform: translate(-8px 24px);
}

/* 2番目と4番目：大きく下に */
.stamp:nth-child(2),
.stamp:nth-child(4) {
  transform: translateY(24px);
}

/* 3番目（真ん中）：元の位置付近、または微調整 */
.stamp:nth-child(3) {
  transform: translateY(0px);
}

/* --- アクティブ時のスタイル --- */
.stamp.active {
  background-image: url(../img/stampcrown.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 56px;
  height: 56px;
}

/* ================================
   カレンダー
================================ */
.mypage-calender {
  background-image: url(../img/calenderBg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-md);
  /* width: 370px;
  height: 200px; */
  padding: 20px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
}

.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calendar-nav button {
  background: var(--color-rose-lt);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 4px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: opacity var(--transition);
}

.calendar-nav button:hover {
  opacity: 0.8;
}

#calendar-title {
  font-size: 0.85rem;
  font-weight: bold;
  color: #5d4037;
  letter-spacing: 0.05em;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
  background-color: #fff;
  text-align: center;
  padding: 10px 0;
  border: 1px solid #f3e5f5;
  font-size: 0.82rem;
  cursor: pointer;
  color: #5d4037;
}

.calendar-table th {
  background-color: #f3e5f5;
  color: #7b1fa2;
  font-weight: normal;
}

.sun {
  color: #e57373 !important;
  /* background-color: #fff9f9 !important; */
}
.sat {
  color: #7986cb !important;
  /* background-color: #f5f6ff !important; */
}

.has-visit {
  font-weight: bold;
  color: var(--color-rose) !important;
  background-color: #fce4ec !important;
}

/* カレンダー イベントマーカー */
.cell-inner {
  position: relative;
  display: inline-block;
}

.event-marker {
  display: block;
  font-size: 0.6rem;
  color: var(--color-rose);
  line-height: 1;
  margin-top: 2px;
}

.has-event {
  cursor: pointer;
}

/* イベントポップアップ */
#event-popup {
  position: absolute;
  display: none;
  background: rgba(142, 36, 170, 0.9);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  z-index: 1000;
  transform: translate(-50%, -110%);
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#event-popup::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(142, 36, 170, 0.9);
}

/* ================================
   フッターリンク
================================ */
.mypage-footer-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 0 4px;
}

.mypage-link {
  font-size: 0.8rem;
  color: var(--color-rose);
  letter-spacing: 0.05em;
  transition: opacity var(--transition);
}

.mypage-link:hover {
  opacity: 0.7;
}

.mypage-link--danger {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* ================================
   QR Modal（既存モーダルを流用・追記分）
================================ */
.modal-subtitle {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.qr-area {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}

.modal-member-name {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #5d4037;
  margin-bottom: 4px;
}

.modal-token-note {
  text-align: center;
  font-size: 0.68rem;
  color: var(--color-rose-lt);
  margin-top: 10px;
  letter-spacing: 0.05em;
}

.modal-logout {
  display: block;
  text-align: right;
  font-size: 0.68rem;
  color: var(--color-rose-lt);
  opacity: 0.6;
  margin-top: 12px;
  padding-right: 4px;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.modal-logout:hover {
  opacity: 1;
}
