/* ===== PC共通 ===== */
body{
  margin:0;
  min-height:100vh;
  font-family:"Helvetica Neue", sans-serif;
  background:#f0f2f5;
  color:#333;
  display:flex;              /* PCは横並び */
  flex-direction:row;
}
/* ページ全体には横スクロールを出さない */
html, body{
  overflow-x: hidden;
  height:100%;
  margin:0;
}
#menu{
  width:260px;
  flex-shrink:0;
}
#main{
  flex:1;
  height:100vh;
  overflow-y:auto;     /* ← ここだけスクロール */
  background:#fff;
  padding:20px;
}


/* PCではハンバーガー非表示 */
.menu-toggle{ display:none; }

/* overlay */
.text-overlay{
  position:absolute;
  top:100px;
  left:300px;
  transform:rotate(-10deg);
  background-color:rgba(255,255,255,0.6);
  padding:10px 20px;
  font-size:24px;
  font-weight:bold;
  color:#2f5f60;
  border-radius:8px;
}
.pc-only{ display:block; }
.sp-only{ display:none; }

.bg-image{
  width:100%;
  height:auto;
  opacity:0.7;
}
#sideMenu{
  width:260px;
  height:100vh;
  overflow:hidden;     /* ← スクロールしない */
  flex-shrink:0;
  background:#f0f2f5;
}


/* ===== スマホだけ ===== */
@media screen and (max-width:600px){

  body{
    flex-direction:column;   /* ← スマホだけ縦 */
  }

  /* ☰ボタンはスマホだけ表示 */
  .menu-toggle{
    position:fixed;
    top:0; left:0;
    width:100%;
    z-index:10000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:20px;
    padding:4px 12px;
    border:none;
    overflow:hidden;
    background-image:url("menu-bg.png");
    background-size:cover;
    background-position:center;
    color:#2f5f60;
  }
  .menu-toggle::before{
    content:"";
    position:absolute;
    inset:0;
    background-color:rgba(255,255,255,0.5);
    z-index:0;
  }
  .menu-toggle > *{
    position:relative;
    z-index:1;
  }
  .menu-label{ margin-left:auto; }

  /* メニューは☰の下から出す（閉じれる） */
  nav#sideMenu{
    position:fixed;
    top:52px;
    left:0;
    width:100%;
    height:calc(100dvh - 52px);
    display:none;
    z-index:9999;
    background:#dfefff;
    overflow-y:auto;
    padding-bottom:env(safe-area-inset-bottom);
  }
  nav#sideMenu.open{ display:block; }

  nav a{
    display:block;
    text-decoration:none;
    color:#333;
    margin:6px 0 12px 12px;
    line-height:1.5;
    font-size:14px;
  }

  /* overlayはスマホ用に小さく */
  .text-overlay{
    transform:none;
    top:60px;
    left:5px;
    font-size:12px;
  }
  .pc-only{ display:none; }
  .sp-only{ display:block; }
}

    .section {
      background: #fff;
      border-radius: 12px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.08);
      max-width: 1000px;
      margin: 2em auto;
      padding: 2em;
    }
    .section img {
      width: 100%;
      border-radius: 8px;
    }
    .section h2 {
      color: #444;
      margin-bottom: 0.5em;
      font-size: 1.4em;
    }
    .section h3 {
      margin-top: 1.2em;
      margin-bottom: 0.2em;
      color: #555;
    }
    .price-table {
      border-collapse: collapse;
      width: 100%;
      margin-top: 0.5em;
    }
    .price-table td {
      padding: 0.3em 0.5em;
      border-bottom: 1px solid #eee;
    }
    .footer-notes {
      font-size: 0.9em;
      line-height: 1.6;
      margin-top: 3em;
      background: #fafafa;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 1em;
    }
	@media (max-width: 600px) {
	  .section {
	    font-size: 12px;
	  }
	}


		
		.comment {
			max-width: 1000px;
			background: white;
			border-radius: 12px;
			box-shadow: 0 0 10px rgba(0,0,0,0.1);
			margin: 1em auto;
			padding: 1em;
			display: flex;
			flex-direction: column;
			gap: 0em;
		}


		.car-card {
			max-width: 1000px;
			background: white;
			border-radius: 12px;
			box-shadow: 0 0 10px rgba(0,0,0,0.1);
			margin: 1em auto;
			padding: 1em;
			display: flex;
			flex-direction: column;
			gap: 1em;
		}

		.car-main {
			display: flex;
			gap: 1em;
		}

		.car-images {
			flex: 1.2;
		}

		.car-images img {
			width: 100%;
			border-radius: 8px;
			margin-bottom: 0.5em;
		}

		.car-details {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: center;
			line-height: 1;
		}

		.car-details h2 {
			margin: 0 0 1em;
			line-height: 1;
		}

		.car-details p {
			margin: 0.5em 0;
		}
		.car-images .main-image {
			width: 100%;
			border-radius: 8px;
			margin-bottom: 0.5em;
		}

		.sub-images {
  			display: grid;
			grid-template-columns: repeat(4, 1fr);  /* 4枚横並び */
  			gap: 0.5em;
		}

		.sub-images img {
			width: 100%;
  			border-radius: 6px;
  			cursor: pointer;
		}
		.car-note {
  			margin-top: 1em;
			padding-top: 1em;
			border-top: 1px solid #ddd;  /* 任意で仕切り線 */
			line-height: 1.2;
		}

		/* ── SOLD OUT スタンプ ──────────────── */
		.car-card {
		    position: relative;
		}

		.car-card.sold-out::after {
		    content: "SOLD OUT";
		    position: absolute;
		    top: 50%;
		    left: 50%;
		    transform: translate(-50%, -50%) rotate(-18deg);
		    font-size: clamp(2rem, 8vw, 6rem);
		    font-weight: 900;
		    color: rgba(255, 0, 0, .85);
		    text-shadow: 0 0 8px rgba(0,0,0,.5);
		    letter-spacing: .1em;
		    white-space: nowrap;
		    pointer-events: none;
		    user-select: none;
		}

		.car-card.maintenance::after {
		    content: "メンテナンス中";
		    position: absolute;
		    top: 15%;
		    left: 50%;
		    transform: translate(-50%, -50%);
		    font-size: clamp(2rem, 8vw, 6rem);
		    font-weight: 500;
		    color: rgba(0, 0, 255, .85);
		    text-shadow: 0 0 8px rgba(0,0,0,.5);
		    letter-spacing: .1em;
		    white-space: nowrap;
		    pointer-events: none;
		    user-select: none;
		}
		
		@media (max-width: 600px) {
			.section {
				font-size: 12px;
			}
			.comment {
				font-size: 12px;
			}
			.car-card {
				font-size: 12px;
			}
		}


		#zoom-overlay {
			position: fixed;
			top: 0; left: 0;
			width: 100%; height: 100%;
			background: rgba(0,0,0,0.8);
			display: none;
			justify-content: center;
			align-items: center;
			z-index: 9999;
		}

		#zoom-overlay img {
			max-width: 90%;
			max-height: 90%;
			border-radius: 8px;
			box-shadow: 0 0 15px black;
		}



	:root { --label-w: 11.5em; } 

	.company-table {
		border-collapse: collapse;
		width: 100%;
  	}
  	.company-table td { padding: 6px 12px; vertical-align: top; }

  	.company-table td.label,
  	.company-table tr > td:first-child { width: var(--label-w); }

  	.company-table td.label { white-space: nowrap; font-weight: bold; }
  	
  	@media (max-width: 600px){
    	:root { --label-w: 9.5em; }
  	}


    .company-info-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 40px;
    }

    .company-table {
      border-collapse: collapse;
      width: 100%;
    }

    .company-table td {
      padding: 4px 8px;
      vertical-align: top;
    }

    .company-table td.label {
      font-weight: bold;
      white-space: nowrap;
	 }
	.img-row {
	  display: flex;
	  gap: 12px;
	  flex-wrap: wrap;
	}

	.img-row img {
	  flex: 1 1 0;
	  width: 100%;          /* 画像コンテナの幅に合わせる */
	  height: auto;         /* 縦横比を保つ */
	  max-width: calc(50% - 6px);
	  border-radius: 8px;
	  object-fit: contain;  /* または cover にするとトリミング */
	  display: block;
	}

	@media (max-width: 600px) {
	  .img-row { flex-direction: column; }
	  .img-row img { max-width: 100%; }
	  .section {
	    font-size: 12px;
	  }
	}

