/* =========================================================
Accordion - FINAL STABLE VERSION (GRID BASED)
========================================================= */


/* =========================================================
BASE
========================================================= */

.c-menu__parent-content,
.c-menu__child-content,
.c-menu__grand-content {

  display: grid;

  grid-template-rows: 0fr;

  transition:
    grid-template-rows .65s cubic-bezier(.22,.61,.36,1),
    opacity .35s ease;

  opacity: 0;

  will-change: grid-template-rows, opacity;
}


/* ★重要：innerが実高さを持つ */
.c-menu__inner {

  overflow: hidden;

  min-height: 0;
}


/* =========================================================
OPEN STATE
========================================================= */

.c-menu__parent.is-open > .c-menu__parent-content,
.c-menu__child.is-open  > .c-menu__child-content,
.c-menu__grand.is-open  > .c-menu__grand-content {

  grid-template-rows: 1fr;

  opacity: 1;
}


/* =========================================================
LIST MODE
========================================================= */

.c-menu--list .c-menu__parent-content,
.c-menu--list .c-menu__child-content,
.c-menu--list .c-menu__grand-content {

  display: block !important;

  grid-template-rows: none !important;

  opacity: 1 !important;

  overflow: visible !important;

  transition: none !important;
}


/* =========================================================
BUTTON BASE (HOVER安定化の核)
========================================================= */

.c-menu__parent-btn,
.c-menu__child-btn,
.c-menu__grand-btn {

  width: 100%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: none;

  border: none;

  cursor: pointer;

  position: relative;

  padding: 18px 0;

  will-change: transform;
}

.c-menu__grand-btn span:first-child {

  font-family: "Cormorant Garamond", serif;

  font-size: 18px;

  font-style: italic;

  letter-spacing: .12em;

  color: #666;
}

/* =========================================================
HOVER FIX（カクつき対策）
※padding変更禁止（ここ重要）
========================================================= */

.c-menu__child-btn,
.c-menu__grand-btn {

  transition:
    transform .45s cubic-bezier(.19,1,.22,1),
    opacity .35s ease,
    background .35s ease;
}

.c-menu__child-btn:hover,
.c-menu__grand-btn:hover {

  transform: translate3d(6px,0,0);

  opacity: .85;
}


/* =========================================================
PARENT
========================================================= */

.c-menu__parent {
  margin-top: 28px;
}

.c-menu__parent-btn span:first-child {

  font-family: "Cormorant Garamond", serif;

  font-size: 28px;

  letter-spacing: .08em;
}


/* accent line */

.c-menu__parent-btn::before {

  content: '';

  position: absolute;

  left: 0;

  top: 10px;

  width: 40px;

  height: 1px;

  background: var(--accent);

  opacity: .8;
}


/* =========================================================
CHILD
========================================================= */

.c-menu__child {

  margin: 18px 0 0 26px;

  position: relative;

  padding-left: 22px;
}

.c-menu__child::before {

  content: '';

  position: absolute;

  left: 0;

  top: 8px;

  width: 1px;

  height: calc(100% - 20px);

  background: linear-gradient(
    to bottom,
    var(--accent),
    rgba(0,0,0,.05)
  );

  opacity: .55;
}


/* child button */

.c-menu__child-btn {

  padding: 16px 18px;

  background: linear-gradient(
    to right,
    rgba(180,150,90,.04),
    transparent
  );
  font-size:12px;
  letter-spacing:.12em;

  border-bottom:1px solid rgba(0,0,0,.04);
  border-radius: 2px;
}


/* open */

.c-menu__child.is-open > .c-menu__child-btn {

  background: linear-gradient(
    to right,
    rgba(180,150,90,.08),
    transparent
  );
}


/* =========================================================
GRAND
========================================================= */

.c-menu__grand {

  margin: 10px 0 0 24px;

  position: relative;

  padding-left: 20px;
}

.c-menu__grand::before {

  content: '';

  position: absolute;

  left: 0;

  top: 10px;

  width: 1px;

  height: calc(100% - 20px);

  background: linear-gradient(
    to bottom,
    rgba(180,150,90,.35),
    transparent
  );
}


/* =========================================================
INNER（超重要：ここが見切れ防止ポイント）
========================================================= */

.c-menu__inner {

  padding: 0 16px 18px 16px;

  box-sizing: border-box;
}


/* =========================================================
MENU ITEM
========================================================= */

.c-menu-item {

  margin-left: 22px;

  padding: 24px 0 24px 18px;

  display: block;

  text-decoration: none;

  color: inherit;

  border-bottom: 1px solid rgba(0,0,0,.05);

  transition:
    transform .35s ease,
    opacity .35s ease;
}


/* hover（padding禁止） */

.c-menu-item:hover {

  transform: translate3d(6px,0,0);

  opacity: .75;
}



/* =========================================================
TITLE BLOCK (PDF STYLE FINAL)
========================================================= */
.c-menu-item__title{

  font-size:15px;

  line-height:1.9;

  letter-spacing:.12em;

  color:#222;
}

/* =========================================================
PRICES BLOCK (PDF STYLE FINAL)
========================================================= */

.c-menu-item__prices {

  display: flex;
  flex-direction: column;

  gap: 14px;
}


/* =========================================================
ROW STRUCTURE
========================================================= */

.c-menu-item__row {

  display: grid;

  grid-template-columns:

    minmax(0,1fr)

    90px

    180px;

  align-items: center;

  column-gap: 18px;
}


/* =========================================================
ADD (LEFT)
========================================================= */

.c-menu-item__add {

  font-size: 12px;

  color: #666;

  letter-spacing: .08em;

  text-align: left;

  justify-self: start;
}


/* =========================================================
TIME (CENTER LEFT OF PRICE)
========================================================= */

.c-menu-item__time {

  font-size: 12px;

  color: #888;

  letter-spacing: .08em;

  white-space: nowrap;

  justify-self: end;

  text-align: right;
}


/* =========================================================
PRICE (RIGHT EDGE)
========================================================= */

.c-menu-item__price {

  font-size: 13px;

  letter-spacing: .08em;

  white-space: nowrap;

  text-align: right;

  justify-self: end;
}

/* =========================================================
SP FINAL RESET (STRUCTURE FIXED)
========================================================= */

@media (max-width: 768px) {

  /* =====================================================
  GLOBAL RESET (重要)
  ===================================================== */

  .c-menu__parent,
  .c-menu__child,
  .c-menu__grand {

    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  /* =====================================================
  LINE（before）統一
  ===================================================== */

  .c-menu__child::before,
  .c-menu__grand::before {

    left: 8px;
    opacity: .25;
  }

  .c-menu__parent-btn::before {
    left: 8px;
    opacity: .25;
  }

  /* =====================================================
  TITLE（階層ブレ防止）
  ===================================================== */

  .c-menu__parent-btn span:first-child {
    font-size: 22px;
    letter-spacing: .06em;
  }

  .c-menu__child-btn span:first-child {
    font-size: 13px;
    letter-spacing: .12em;
  }

  .c-menu__grand-btn span:first-child {
    font-size: 16px;
  }

  /* =====================================================
  CHILD / GRAND INDENT RESET
  ===================================================== */

  .c-menu__child,
  .c-menu__grand {
    margin-left: 0 !important;
  }

  /* =====================================================
  BUTTON SPACING FIX
  ===================================================== */

  .c-menu__child-btn {
    padding: 14px 14px;
  }

  .c-menu__grand-btn {
    padding: 12px 0;
  }

  /* =====================================================
  MENU ITEM RESET（ここ重要）
  ===================================================== */

  .c-menu-item {

    margin-left: 0 !important;
    padding-left: 16px;
  }

  /* =====================================================
  PRICE GRID SP FIX（ここが核心）
  ===================================================== */

  .c-menu-item__row {

    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
  }

  .c-menu-item__add {
    grid-column: 1 / -1;
  }

  .c-menu-item__time {
    justify-self: end;
  }

  .c-menu-item__price {
    justify-self: end;
  }

  /* =====================================================
  視覚バランス調整（右寄り防止）
  ===================================================== */

  .c-menu__inner {
    padding: 0 12px;
  }
}

.c-accordion__content{

	display:grid;

	grid-template-rows:0fr;

	opacity:0;

	overflow:hidden;

	transition:
		grid-template-rows .65s cubic-bezier(.22,.61,.36,1),
		opacity .35s ease;
}

  /* =====================================================
  全てのメニューを見るボタン
  ===================================================== */
.c-accordion__content > .c-menu__inner{

	overflow:hidden;

	min-height:0;
}

.c-accordion__content.is-open{

	grid-template-rows:1fr;

	opacity:1;
}

.c-accordion__btn{
    background: none;
    border: none;
    cursor: pointer;

}