.scroll-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1040px;
  margin: -40px auto 5px auto;
  position: relative;
}

svg {
  width: 100%;
  height: auto;
  display: block;
}

.band {
  transform-origin: 40px center;
  transition: transform 0.8s ease;
}

.right-stick {
  transition: transform 0.8s ease;
}

.scroll-wrapper.closed .band {
  transform: scaleX(0);
}

.scroll-wrapper.closed .right-stick {
  transform: translateX(-883px);
}

.glossy-green {
  fill: url(#glossyGreen);
}

.scroll-mask {
  position: absolute;
  top: 40px;
  left: 63px;
  width: 968px;
  height: 520px;
  overflow: hidden;
}

.scroll-content {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  padding-top: 80px; /* ← ✅ 上からの余白を追加して下げる */
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 20px;
}

.scroll-wrapper:not(.closed) .scroll-content img{
  opacity: 1;
  transition: opacity 0.4s ease 0.3s;
}


.scroll-body-content {
  display: flex;
  gap: 20px; /* ✅ 追加：写真とテーブルの間に余白 */
  align-items: flex-start;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}


.scroll-body-content.active {
  display: flex;
  opacity: 1;
}

.scroll-wrapper .before-after {
  opacity: 0;
  transition: opacity 0.1s ease 0s;
}

.scroll-wrapper:not(.closed) .before-after {
  opacity: 1;
}

.before-after {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.before-after img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.4s ease 0.3s; /* ← ここ！ */
}

.arrow {
  font-size: 24px;
  color: #999;
  opacity: 0;
  transition: opacity 0.4s ease 0.3s;
}

.scroll-wrapper:not(.closed) .arrow {
  opacity: 1;
}

.scroll-wrapper .info-box {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scroll-wrapper:not(.closed) .info-box {
  opacity: 1;
  transition: opacity 0.8s ease 0.7s;
}

.info-box {
  flex: 1 1 0;
  min-width: 240px;
  max-width: 100%;
  text-align: left; /* ← これを追加 */
  word-break: break-word;
}

.info-box p {
  font-size: 16px !important; /* ← 元は14px、2pxアップくらいが自然 */
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 4px 8px;
  font-size: 14px;
  text-align: left;
}

.info-table th {
  background: #f0f0f0;
  font-weight: bold;
}

.info-box p {
  font-size: 14px;
  line-height: 1.6;
}



/* ===== スマホ用カードスタイル ===== */
.scroll-alt {
  display: none; /* PCでは非表示 */
}

.case-card {
  background: white;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  text-align: left;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.case-title {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.case-images {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.case-images img {
  width: 45%;
  max-width: 140px;
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.case-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.case-table th,
.case-table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

.case-description {
  font-size: 14px;
  line-height: 1.6;
}

body.is-mobile .scroll-wrapper {
  display: none !important;
}

body.is-mobile .scroll-alt {
  display: block !important;
}
