/* 表示重なり低い順
メニュー・キャンパス
視点切り替えボタン・車種選択プルダウン
フッター
問い合わせページ
ヘッダー
確認モーダル
 */

/* 画面全体のコンテナ */
.mainContainer {
  display: flex;
  height: 100%;
  width: 100%;
}

/* メインコンテンツ */
@media (max-width: 900px) { /* windowの大きさが900pxを下回ったら */
  .content { flex-direction: column; } /* 縦に並べる */
  .content #canvasContainer { order: 1; min-height: 50vh; margin: 0px; }
  .content #renderCanvas { border-radius: 0 0 0 0; }
  #menu  { order: 2; }
  .content .switchEyesightButton {display: none;}
}
.content {
  display: flex; /* 左右に並べる */
  height: auto; 
  width: 100%;
  background-color: #E9E9E9;
  gap: 0;
  padding-top: var(--header-h);  /* 固定ヘッダーとの重なり回避 */
  padding-bottom: var(--footer-h); /* 固定フッターがあるなら余白を足す */
  box-sizing: border-box;
  /* padding-top: var(--gapHeadContent); */
}
.menu-title {
  color: #503732;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  gap: 12px;
}
.detailed-custom {
  color: #503732;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 2rem;
  gap: 12px;
}
#menu {
  flex: 0 1 clamp(32vh, 32vw, 380px);
  background: #f8f8f8;
  background-color: #FCFCFC;
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
  border-radius: 0 8px 0 0;
  margin-top: 35px;
  z-index: 1;
  overflow-y: auto; /* 縦スクロールを有効化 */
}
div[id="menu"]::-webkit-scrollbar {
  background-color: #F5F5F5;
  border-radius: 8px;
}
div[id="menu"]::-webkit-scrollbar-thumb {
  background-color: #F1BD40;
  border-radius: 8px;
}
.parts-group {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  background-color: #C8AA82;
  border-radius: 8px;
  padding: 8px;
  margin-top: 0.75em;
  margin-bottom: 0.75em:
}
.parts-name{ 
  margin-top:12px;
  color:  var(--lightGreen) ;
  font-weight: bold;
  margin-bottom: 8px;
}
.parts-area{
  padding-bottom: 1em;
  border-bottom:2px solid #E9E9E9;
}
.flex_1{
  display: flex;
  align-items: center;
  padding-bottom: .75rem;
  padding-top: .75rem;
  padding-right: .5rem;
  padding-left: .25rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/*キャンパス*/
#canvasContainer {
  flex: 1 1 auto;
  position: relative;
  min-width: 0;
  margin-top: 35px;
  margin-left: 30px;
}
#renderCanvas {
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  outline: none;
  border-radius: 8px 0 0 0;
}

@media (max-width: 900px) { /* windowの大きさが900pxを下回ったら */
  .content { flex-direction: column; } /* 縦に並べる */
  .content #canvasContainer { order: 1; min-height: 24vh; margin: 0px; }
  .content #renderCanvas { border-radius: 0 0 0 0; }
  #menu  { order: 2; margin-top:8px; flex: 0 1 clamp(40vh, 40vw, 400px);}
  .content .switchEyesightButton {display: none; }
  #carSelectorContainer { top: 10px; height: 24px; }
}