/* plan.css — stay rows + extras stage */

html {
  scrollbar-gutter: stable;
}

.pl-book {
  position: relative;
  overflow: hidden;
  width: min(1120px, calc(100% - 3rem));
  margin: 3.6rem auto 3.6rem;
  border-top: 1px solid var(--line, #e5dfd4);
}

.pl-book.is-snap .pl-row,
.pl-book.is-snap .pl-row figure,
.pl-book.is-snap .pl-row.open .pl-copy.is-open {
  transition: none !important;
  animation: none !important;
}

.pl-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2.2rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--line, #e5dfd4);
}

.pl-row.is-toggle {
  cursor: default;
  user-select: text;
  -webkit-user-select: text;
}

.pl-row.is-toggle:focus-visible {
  outline: 2px solid var(--accent, #b8956a);
  outline-offset: 4px;
}

.pl-row figure {
  margin: 0;
  flex: 0 0 200px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius, 12px);
  overflow: hidden;
  z-index: 1;
  transition:
    height 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    flex-basis 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.pl-row figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pl-row.is-toggle figure:hover img {
  transform: scale(1.05);
}

.pl-row.open figure:hover img {
  transform: scale(1.07);
}

.pl-copy {
  min-width: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pl-copy.is-closed {
  position: relative;
  flex: 1 1 0;
  padding-top: 0.15rem;
  min-height: 200px;
}

.pl-copy.is-open {
  display: none;
  flex: none;
}

.pl-row-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem 0.85rem;
  align-items: baseline;
}

.pl-row h3 {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.pl-row .yen {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.55rem;
  letter-spacing: 0.03em;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pl-row .yen .amt {
  white-space: nowrap;
}

.pl-row .yen small {
  display: block;
  font-family: var(--font-sans, 'Noto Sans JP', sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-muted, #8a847a);
  margin-top: 0.55rem;
  font-weight: 400;
  white-space: normal;
  text-align: right;
}

.pl-row .body {
  color: var(--text-soft, #5c574f);
  font-size: 0.88rem;
  line-height: 1.9;
  margin-top: 0.45rem;
  max-width: 38rem;
}

.pl-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin: 0 0 0 auto;
  padding: 0;
}

.pl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  width: 100%;
}

.pl-row.open .pl-copy.is-open .pl-foot {
  justify-content: space-between;
}

.pl-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  min-height: 0;
  padding: 0 1.3rem;
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  border-radius: 2px;
  cursor: pointer;
  color: #fff;
  background: var(--accent, #b8956a);
  border: 1px solid var(--accent, #b8956a);
  text-decoration: none;
  flex-shrink: 0;
}

.pl-fac-copy .ask {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.15rem;
  min-height: 0;
  padding: 0 1.05rem;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  background: var(--accent, #b8956a);
  border: 1px solid var(--accent, #b8956a);
  text-decoration: none;
  flex-shrink: 0;
}

.pl-cta a:hover,
.pl-fac-copy .ask:hover {
  background: var(--accent-dark, #9a7a52);
  border-color: var(--accent-dark, #9a7a52);
  color: #fff;
}

.pl-hint {
  display: none;
}

.pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-lead .pl-hint {
  display: inline-flex;
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent, #b8956a);
}

.pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-lead .pl-hint::after,
.pl-row.open .pl-copy.is-open .pl-hint-open::after {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.08rem) rotate(45deg);
}

.pl-row.open .pl-copy.is-open .pl-hint-open {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent, #b8956a);
}

.pl-row.open .pl-copy.is-open .pl-hint-open::after {
  transform: translateY(0.1rem) rotate(-135deg);
}

.pl-copy.is-closed .pl-more,
.pl-copy.is-closed .pl-opts {
  display: none;
}

.pl-row.has-more .pl-copy.is-open .body {
  display: none;
}

.pl-more {
  margin-top: 1.15rem;
}

.pl-more p {
  color: var(--text-soft, #5c574f);
  font-size: 0.8rem;
  line-height: 1.7;
  margin-top: 0.4rem;
}

.pl-more p:first-child {
  margin-top: 0;
}

.pl-cap {
  font-size: 0.76rem !important;
  color: var(--text-muted, #8a847a) !important;
}

.pl-notes {
  list-style: none;
  margin-top: 0.5rem;
}

.pl-notes li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-muted, #8a847a);
  margin-bottom: 0.18rem;
}

.pl-notes li::before {
  content: '※';
  position: absolute;
  left: 0;
}

.pl-row.open {
  align-items: stretch;
  min-height: 0;
  gap: 2.15rem;
}

.pl-row.open figure {
  flex: 0 0 var(--fig-w, 560px);
  flex-basis: var(--fig-w, 560px);
  width: var(--fig-w, 560px);
  height: var(--fig-h, 360px);
  min-height: 0;
}

.pl-row.open .pl-copy.is-closed {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.pl-row.open .pl-copy.is-open {
  display: flex;
  flex: 0 0 var(--copy-w, 520px);
  width: var(--copy-w, 520px);
  margin-left: auto;
  justify-content: flex-start;
  min-height: var(--fig-h, 360px);
  padding: 0.15rem 0 0.35rem;
  animation: copyIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pl-copy.is-open h3,
.pl-row.open .pl-copy.is-open h3 {
  font-size: 1.78rem;
}

.pl-copy.is-open .yen,
.pl-row.open .pl-copy.is-open .yen {
  font-size: 3.15rem;
}

.pl-row.open .pl-copy.is-open .body {
  font-size: 0.98rem;
  margin-top: 0.8rem;
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pl-tag {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.08rem 0.55rem;
  border: 1px solid var(--accent, #b8956a);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--accent-dark, #9a7a52);
  vertical-align: 0.15em;
}

.pl-opts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.pl-opts li {
  margin: 0;
}

.pl-opts-pic {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.28rem;
  cursor: pointer;
}

.pl-opts-pic img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.pl-opts li:hover .pl-opts-pic img {
  transform: scale(1.07);
}

.pl-opts span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.pl-lb {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(20, 18, 16, 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pl-lb.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pl-lb.is-on img {
  transform: scale(1);
}

.pl-lb-frame {
  position: relative;
  display: flex;
  max-width: min(920px, 92vw);
}

.pl-lb img {
  max-width: min(920px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.pl-lb-cap {
  margin-top: 0.85rem;
  color: #f4efe8;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.pl-lb-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 18, 16, 0.45);
  color: transparent;
  font-size: 0;
  cursor: pointer;
  z-index: 2;
}

.pl-lb-close::before,
.pl-lb-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1.5px;
  background: #f4efe8;
}

.pl-lb-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.pl-lb-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.pl-note {
  width: min(1120px, calc(100% - 3rem));
  margin: -2.2rem auto 3.4rem;
  font-size: 0.8rem;
  color: var(--text-muted, #8a847a);
}

.pl-extra {
  position: relative;
  padding: 3.8rem 0 5.2rem;
  background: var(--bg-soft, #f2eee6);
  overflow: hidden;
}

.pl-extra::before {
  content: none;
}

.pl-extra-head {
  text-align: center;
  margin-bottom: 1.8rem;
}

.pl-fac {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.pl-stage {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: stretch;
  overflow: visible;
}

.pl-index {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 440px;
}

.pl-index button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  flex: 1 1 0;
  width: 100%;
  padding: 1rem 1.2rem;
  text-align: left;
  min-height: 0;
  cursor: default;
  background: var(--bg, #f8f5f0);
  border-radius: 18px;
  box-shadow: 0 1px 0 rgba(44, 42, 38, 0.04);
}

.pl-index .name {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.pl-index .fee {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted, #8a847a);
}

.pl-index button.is-on {
  box-shadow: 0 0 0 1.5px var(--accent, #b8956a);
}

.pl-index button.is-on .name {
  color: var(--accent-dark, #9a7a52);
}

.pl-view {
  position: relative;
  height: 440px;
  overflow: visible;
}

.pl-view-panel {
  display: none;
}

.pl-view-panel.is-on {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: 440px;
  height: 440px;
  gap: 0;
  background: var(--bg, #f8f5f0);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 2;
  will-change: transform, opacity;
}

.pl-view-panel figure {
  margin: 0;
  height: 440px;
  overflow: hidden;
}

.pl-view-panel figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pl-view-panel figure:hover img {
  transform: scale(1.06);
}

.pl-view-panel .pl-fac-copy {
  height: 440px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.6rem 1.15rem 1.7rem 1.5rem;
  scrollbar-gutter: stable;
}

.pl-view-panel .pl-fac-copy::-webkit-scrollbar {
  width: 6px;
}

.pl-view-panel .pl-fac-copy::-webkit-scrollbar-track {
  background: transparent;
}

.pl-view-panel .pl-fac-copy::-webkit-scrollbar-thumb {
  background: #d4cec4;
  border-radius: 99px;
}

.pl-fac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.pl-fac-copy .label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--accent, #b8956a);
  display: block;
  margin-bottom: 0;
}

.pl-fac-copy h3 {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.pl-fac-copy h4 {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0.8rem 0 0.28rem;
}

.pl-fac-copy p,
.pl-fac-copy li {
  font-size: 0.84rem;
  color: var(--text-soft, #5c574f);
  line-height: 1.8;
}

.pl-fac-copy a {
  color: var(--accent-dark, #9a7a52);
  border-bottom: 1px solid var(--accent, #b8956a);
}

.pl-rv-price {
  font-family: var(--font-serif, 'Noto Serif JP', serif);
  font-size: 0.92rem;
  color: var(--text, #2c2a26);
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.pl-rv-note {
  font-size: 0.75rem !important;
  color: var(--text-muted, #8a847a) !important;
  line-height: 1.65 !important;
}

.pl-rv-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 1.1rem;
  margin-top: 0.35rem;
  font-size: 0.84rem;
}

.pl-rv-facts dt {
  color: var(--text-muted, #8a847a);
}

.pl-rv-facts dd {
  color: var(--text, #2c2a26);
}

.pl-fac-copy ul {
  list-style: none;
  margin-top: 0.2rem;
}

.pl-fac-copy ul li {
  padding-left: 0.9rem;
  position: relative;
  margin-bottom: 0.2rem;
}

.pl-fac-copy ul li::before {
  content: '・';
  position: absolute;
  left: 0;
}

.pl-rv-misc {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.12rem 0.9rem;
  margin-top: 0.3rem;
  font-size: 0.82rem;
}

.pl-rv-misc dt {
  color: var(--text-muted, #8a847a);
}

.pl-rv-misc dd {
  color: var(--text, #2c2a26);
}

@media (max-width: 960px) {
  .pl-row {
    gap: 0.95rem;
  }

  .pl-row figure {
    flex-basis: 152px;
    width: 152px;
    height: 152px;
  }

  .pl-copy.is-closed {
    min-height: 152px;
  }

  .pl-row.is-toggle:not(.open) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    gap: 0.75rem 0.9rem;
  }

  .pl-row.is-toggle:not(.open) figure {
    grid-column: 1;
    grid-row: 1;
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed {
    display: contents;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-row-top {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-lead {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 0;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .body {
    margin-top: 0;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-lead .pl-hint {
    position: static;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.28rem;
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--accent, #b8956a);
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-foot {
    grid-column: 2;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-end;
    align-self: end;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
    gap: 0.4rem;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-hint-open {
    display: none;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-cta {
    flex-direction: column;
    align-items: flex-end;
    align-self: end;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 0;
    gap: 0.4rem;
    width: 100%;
  }

  .pl-row.is-toggle:not(.open) .pl-copy.is-closed .pl-cta a {
    width: auto;
    min-width: 7.6rem;
    height: 2.35rem;
    font-size: 0.68rem;
    padding: 0 0.85rem;
  }

  .pl-row-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .pl-row .yen {
    grid-column: 1 / -1;
    margin-top: 0.15rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
  }

  .pl-row .yen .amt {
    order: 2;
  }

  .pl-row .yen small {
    order: 1;
    margin-top: 0;
    text-align: left;
  }

  .pl-row.open {
    flex-wrap: wrap;
    min-height: 0;
    gap: 1rem;
  }

  .pl-row.open figure {
    flex-basis: 100%;
    width: 100%;
    height: 210px;
    min-height: 210px;
  }

  .pl-row.open .pl-copy.is-open {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    padding: 0.2rem 0 0.4rem;
  }

  .pl-row.open .pl-copy.is-open .pl-foot {
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
  }

  .pl-row.open .pl-copy.is-open .pl-cta {
    flex-direction: column;
    align-items: flex-end;
    margin-left: 0;
    width: auto;
    gap: 0.4rem;
  }

  .pl-row.open .pl-copy.is-open .pl-cta a {
    width: auto;
    min-width: 7.6rem;
    height: 2.35rem;
    font-size: 0.68rem;
    padding: 0 0.85rem;
  }

  .pl-opts {
    max-width: none;
  }

  .pl-stage {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .pl-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
    gap: 0.5rem;
  }

  .pl-index button {
    flex: none;
    min-height: 72px;
  }

  .pl-view {
    height: 460px;
  }

  .pl-view-panel.is-on {
    grid-template-columns: 1fr;
    grid-template-rows: 210px minmax(0, 1fr);
    height: 460px;
    will-change: auto;
  }

  .pl-view-panel figure {
    height: 210px;
  }

  .pl-view-panel .pl-fac-copy {
    height: auto;
    max-height: none;
    overflow-y: auto;
  }

  .pl-book::before,
  .pl-extra::before {
    content: '';
    position: absolute;
    width: 252px;
    height: 114px;
    background: url('../images/deco-nami.png') center / contain no-repeat;
    opacity: 0.3;
    pointer-events: none;
  }

  .pl-extra::before {
    right: 4%;
    top: 1.6rem;
  }

  .pl-book::before {
    left: 4%;
    top: 1.2rem;
    transform: scaleX(-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pl-row,
  .pl-row figure,
  .pl-row.open .pl-copy.is-open,
  .pl-view-panel.is-on {
    transition: none;
    animation: none;
    transform: none;
  }
}
