* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  background: #ffffff;
}

html.scroll-locked, html.scroll-locked body {
  background: #ffffff;
  overflow: hidden !important;
  height: 100%;
  position: fixed;
  width: 100%;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
}

/* ==================== Particle Canvas ==================== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ==================== Scroll Content ==================== */
.scroll-content {
  position: relative;
  z-index: 10;
  background: transparent;
  margin-top: 110vh;
}

/* ==================== Fixed Text Elements ==================== */
.intro-text {
  position: fixed;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: bold;
  color: #333;
  text-align: left;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 20;
  pointer-events: none;
  padding: 8rem 12rem;
  white-space: nowrap;
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.7) 25%,
    rgba(255,255,255,0.3) 50%,
    rgba(255,255,255,0) 70%);
}

.intro-text.visible {
  opacity: 1;
}

/* 日本語テキスト: 左からフェードイン（背景が先、文字が後） */
.intro-text h1.line-jp {
  margin: 0;
}

.intro-text .line-jp {
  font-family: 'M PLUS 1', sans-serif;
  font-size: clamp(16px, 1.5vw, 28px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.84px;
  background-color: #2C2D27;
  display: inline-block;
  padding: 0.5em 1em;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  overflow: hidden;
}

.intro-text .line-jp-text {
  display: inline-block;
  color: #FFF;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.intro-text.visible .line-jp.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.intro-text.visible .line-jp.animate-in .line-jp-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

/* 英語テキスト: 下から上にマスク付きで表示 */
.intro-text .line-en-wrapper {
  display: block;
  overflow: hidden;
  line-height: 1.05;
  padding-bottom: 0.35em;
  margin-bottom: -0.35em;
}

.intro-text .line-en-wrapper:last-child {
  margin-top: 0.1em;
}

.intro-text .line-en {
  font-family: 'Ubuntu', sans-serif;
  font-size: clamp(56px, 10vw, 190px);
  display: block;
  font-style: normal;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #2C2D27;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-text.visible .line-en.animate-in {
  transform: translateY(0);
}

.second-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.2rem;
  line-height: 2.2;
  color: #333;
  text-align: center;
  z-index: 20;
  pointer-events: none;
  padding: 8rem 12rem;
  white-space: nowrap;
  visibility: hidden;
}

.second-text.visible {
  visibility: visible;
}

/* 2つ目のテキスト - タイトル */
.second-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.second-title-line {
  font-family: 'M PLUS 1', sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  background-color: #2C2D27;
  display: inline-block;
  padding: 0.4em 0.8em;
  margin-bottom: 0.3rem;
  overflow: hidden;
}

.second-title-line .title-text {
  display: inline-block;
  color: #FFF;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.second-text.visible .second-title-line .title-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.second-title-line:last-child {
  margin-bottom: 0;
}

/* 2つ目のテキスト - 本文 */
.second-body {
  font-family: 'M PLUS 1', sans-serif;
  padding: 2rem 0;
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.7) 40%,
    rgba(255,255,255,0.3) 70%,
    rgba(255,255,255,0) 100%);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.second-text.visible .second-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* スマホ用改行（PCでは非表示） */
.sp-only {
  display: none;
}

/* ==================== Scroll Indicator ==================== */
.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(10px); opacity: 0.5; }
}

/* ==================== Text Section Spacer ==================== */
.text-section {
  min-height: 0;
  background: transparent;
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

/* ==================== Card Sections ==================== */
.card-wrapper {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.card-wrapper:nth-child(3) { z-index: 1; }
.card-wrapper:nth-child(4) { z-index: 2; }
.card-wrapper:nth-child(5) { z-index: 3; }
.card-wrapper:nth-child(6) { z-index: 4; }
.card-wrapper:nth-child(7) { z-index: 5; }

/* ==================== Background GIF Slider ==================== */
.bg-gif-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-slider-track {
  display: flex;
  gap: 1.5rem;
  animation: bgSlideScroll 40s linear infinite;
  width: fit-content;
  height: 100%;
  align-items: center;
}

.bg-slide-item {
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.bg-slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes bgSlideScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 6アイテム × 180px + 6ギャップ × 1.5rem = 正確な半分の幅 */
    transform: translateX(calc(-6 * 180px - 6 * 1.5rem));
  }
}

/* ==================== Footer Section ==================== */
.card-footer {
  justify-content: center;
  align-items: center;
}

.footer-content {
  text-align: center;
  color: white;
  width: 100%;
  max-width: 700px;
  padding: 0 1.5rem;
}

.footer-content h2 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.footer-content p {
  font-size: 1.5rem;
  opacity: 0.8;
}

/* ==================== Footer Logo ==================== */
.footer-logo {
  display: inline-block;
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* ==================== Contact Form ==================== */
.contact-form {
  width: 100%;
  margin: 2rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: white;
}

.form-group .required {
  color: #ff6b6b;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-family: inherit;
}

.form-group input {
  width: 90%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.form-group textarea {
  resize: vertical;
  min-height: 160px;
}

.submit-btn {
  display: block;
  width: 80%;
  padding: 1rem;
  margin: 3rem auto 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--card-color);
  background: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 0.8rem;
  border-radius: 4px;
  text-align: center;
  font-size: 0.95rem;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  background: rgba(50, 129, 100, 0.9);
  color: white;
}

.form-status.error {
  background: rgba(215, 72, 42, 0.9);
  color: white;
}

/* ==================== Site Footer ==================== */
.site-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
}

.site-footer p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.card {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0;
  background-color: var(--card-color);
  overflow: hidden;
  transform: translateY(100%) rotate(20deg);
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.1s ease-out;
  z-index: 1;
}


/* ==================== Card Title ==================== */
.card-title {
  width: calc(100% - 0.6rem);
  margin: 0 0.3rem 0;
  aspect-ratio: 5 / 1;
  flex: 0 0 auto;
  background-size: 100% 100%;
  background-position: top center;
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.card-title img {
  width: 100%;
  height: auto;
  display: block;
}

/* セクション3: card-titleを右上に配置、横幅50% */
#section-operation .card-title {
  width: 50%;
  margin-left: auto;
}

/* セクション4: card-titleを左に配置（保守運用と対比） */
#section-dx .card-title {
  width: 50%;
  margin-right: auto;
  margin-left: 0.3rem;
}


/* 3Dリングカルーセル */
.ring-carousel {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  height: 400px;
  perspective: 1000px;
  overflow: visible;
  transform-style: preserve-3d;
}

.ring-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: ringRotate 20s linear infinite;
}

.ring-item {
  position: absolute;
  width: 200px;
  height: 150px;
  left: 50%;
  top: 50%;
  margin-left: -100px;
  margin-top: -75px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ring-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 6枚の画像を横方向に円形配置 */
.ring-item:nth-child(1) { transform: rotateY(0deg) translateZ(280px); }
.ring-item:nth-child(2) { transform: rotateY(60deg) translateZ(280px); }
.ring-item:nth-child(3) { transform: rotateY(120deg) translateZ(280px); }
.ring-item:nth-child(4) { transform: rotateY(180deg) translateZ(280px); }
.ring-item:nth-child(5) { transform: rotateY(240deg) translateZ(280px); }
.ring-item:nth-child(6) { transform: rotateY(300deg) translateZ(280px); }

@keyframes ringRotate {
  0% {
    transform: rotateY(20deg) rotateX(-10deg) rotateY(0deg);
  }
  100% {
    transform: rotateY(20deg) rotateX(-10deg) rotateY(-360deg);
  }
}

/* 内側の縦回転カルーセル */
.ring-carousel-inner-vertical {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
  animation: ringRotateVertical 12s linear infinite;
}

.ring-item-vertical {
  position: absolute;
  width: 180px;
  height: 135px;
  left: 50%;
  top: 50%;
  margin-left: -90px;
  margin-top: -67px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ring-item-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 6枚の画像を縦方向に円形配置 */
.ring-item-vertical:nth-child(1) { transform: rotateX(0deg) translateZ(250px); }
.ring-item-vertical:nth-child(2) { transform: rotateX(60deg) translateZ(250px); }
.ring-item-vertical:nth-child(3) { transform: rotateX(120deg) translateZ(250px); }
.ring-item-vertical:nth-child(4) { transform: rotateX(180deg) translateZ(250px); }
.ring-item-vertical:nth-child(5) { transform: rotateX(240deg) translateZ(250px); }
.ring-item-vertical:nth-child(6) { transform: rotateX(300deg) translateZ(250px); }

@keyframes ringRotateVertical {
  0% {
    transform: rotateY(20deg) rotateX(-10deg) rotateX(0deg);
  }
  100% {
    transform: rotateY(20deg) rotateX(-10deg) rotateX(360deg);
  }
}

/* セクション3: レイアウト調整 */
#section-operation .card-inner {
  align-items: flex-start;
  padding-top: 1rem;
}

#section-operation .card-text {
  flex: 1;
  max-width: 600px;
}

#section-operation .card-tags {
  flex: 1;
  max-width: 500px;
  margin-top: 2rem;
  gap: 2rem;
}

#section-operation .card-tags .tag {
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  text-align: left;
  transform: scaleY(1);
  animation: floatUpDown 3s ease-in-out infinite;
}

#section-operation .card-tags .tag:nth-child(1) {
  animation-delay: 0s;
}

#section-operation .card-tags .tag:nth-child(2) {
  animation-delay: 0.5s;
}

#section-operation .card-tags .tag:nth-child(3) {
  animation-delay: 1s;
}

#section-operation .card-tags .tag:nth-child(4) {
  animation-delay: 1.5s;
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 偶数番目（2番目、4番目）を少し下にずらす */
#section-operation .card-tags .tag:nth-child(2),
#section-operation .card-tags .tag:nth-child(4) {
  position: relative;
  top: 2rem;
}

#section-operation .card-tags .tag-image {
  max-width: 100%;
  height: auto;
  margin-bottom: auto;
  object-fit: contain;
}

#section-operation .card-tags .tag-text {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ==================== Card Inner Layout ==================== */
.card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  flex: 1;
  padding: 2rem 4rem 4rem;
  gap: 4rem;
  margin: 0 auto;
}

.card-text {
  flex: 1;
  color: white;
  max-width: 560px;
}

.card-text h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: white;
  color: color-mix(in srgb, var(--card-color) 40%, black);
  mix-blend-mode: screen;
  padding: 0.2em 0.5em;
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  overflow: hidden;
}

.card-text h2.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.card-text h2 .h2-text {
  display: inline-block;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-text h2.animate-in .h2-text {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.card-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  opacity: 0.85;
}

/* 下線アニメーション */
.underline-animate {
  position: relative;
  display: inline;
  background-image: linear-gradient(rgba(230, 230, 230, 0.9), rgba(230, 230, 230, 0.9));
  background-size: 0% 4px;
  background-position: 0 calc(100% + 2px);
  background-repeat: no-repeat;
  transition: background-size 0.6s ease;
  padding-bottom: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.underline-animate.animate-in {
  background-size: 100% 4px;
}

/* デザインセクションの下線は黄色 */
#section-design .underline-animate {
  background-image: linear-gradient(#EEAE1B, #EEAE1B);
}

/* システムセクションの下線は緑 */
#section-system .underline-animate {
  background-image: linear-gradient(rgb(50, 129, 100), rgb(50, 129, 100));
}

/* 保守運用セクションの下線はピンク */
#section-operation .underline-animate {
  background-image: linear-gradient(#E67E88, #E67E88);
}

/* DX/AI導入セクションの下線は青 */
#section-dx .underline-animate {
  background-image: linear-gradient(#055D7A, #055D7A);
}

/* ==================== Card Tags ==================== */
.card-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.card-tags.hidden {
  display: none;
}

.tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  background-color: #2C2D27;
  font-size: 0.9rem;
  text-align: center;
  color: #ffffff;
  transform: scaleY(0);
  transform-origin: center center;
  will-change: transform;
}

/* ==================== Card Button ==================== */
.card-button {
  margin-top: 2rem;
}

.card-button.hidden {
  display: none;
}

.btn {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn img {
  display: block;
  max-width: 200px;
  height: auto;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* ==================== Card Image ==================== */
.card-image {
  flex: 1;
  max-width: 600px;
  height: 70%;
  overflow: hidden;
  will-change: transform, opacity;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* 画像はJavaScriptでtransformを制御 */
.card-image {
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
}

/* 右から出てくる場合の初期状態 */
.card-image[data-direction="right"] {
  transform: translate(120%, -60%) rotate(-20deg);
}

/* 左から出てくる場合の初期状態 */
.card-image[data-direction="left"] {
  transform: translate(-120%, -60%) rotate(20deg);
}

/* 下から（右寄り）出てくる場合の初期状態 */
.card-image-fan[data-direction="right"] {
  transform: translate(50%, 120%) rotate(15deg);
}

/* ==================== Fan Image (扇状の画像) ==================== */
.card-image-fan {
  position: relative;
  overflow: visible;
  max-width: 420px;
  width: 70%;
  aspect-ratio: 4 / 5;
  height: auto;
  margin-left: auto;
  margin-right: 2%;
}

.card-image-fan .fan-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: bottom center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card-image-fan .fan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 1枚目: 右に6度（relativeで高さを確保・一番上） */
.card-image-fan .fan-image-1 {
  position: relative;
  transform: rotate(6deg) translate(35%, -15%);
  z-index: 3;
}

/* 2枚目: 左に25度（一番下） */
.card-image-fan .fan-image-2 {
  transform: rotate(-25deg) translate(-15%, 10%);
  z-index: 1;
}

/* 3枚目: 左に10度（真ん中） */
.card-image-fan .fan-image-3 {
  transform: rotate(-10deg) translate(15%, 0);
  z-index: 2;
}

/* ==================== 左側の扇状画像（左右対称） ==================== */
.card-image-fan-left {
  margin-left: 2%;
  margin-right: auto;
}

/* 左側: 1枚目は左に6度（一番上） */
.card-image-fan-left .fan-image-1 {
  transform: rotate(-6deg) translate(-35%, -15%);
}

/* 左側: 2枚目は右に25度（一番下） */
.card-image-fan-left .fan-image-2 {
  transform: rotate(25deg) translate(15%, 10%);
}

/* 左側: 3枚目は右に10度（真ん中） */
.card-image-fan-left .fan-image-3 {
  transform: rotate(10deg) translate(-15%, 0);
}

/* 左下から出てくる場合の初期状態 */
.card-image-fan-left[data-direction="left"] {
  transform: translate(-50%, 120%) rotate(-15deg);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .intro-text {
    white-space: normal;
    padding: 3rem 2rem;
    width: 90vw;
    left: 3%;
  }

  .intro-text .line-en {
    line-height: 1.2;
  }


  .second-text {
    white-space: normal;
    padding: 3rem 2rem;
    width: 110vw;
    font-size: 0.8rem;
    line-height: 2;
  }

  .second-title {
    margin-bottom: 1.5rem;
  }


  .card-inner {
    flex-direction: column;
    padding: 1rem 1.5rem 2rem;
    gap: 1.5rem;
  }

  .card-text {
    max-width: 100%;
  }

  .card-text h2 {
    font-size: 1.8rem;
  }

  .card-text p {
    font-size: 1rem;
  }

  .card-image {
    max-width: 100%;
    height: auto;
  }

  /* デザインセクション: 画像3枚の上にマージン */
  #section-design .card-image-fan {
    margin-top: 3rem;
  }

  /* システムセクション: 並び順をh2、説明文、タグ、画像3枚に変更 */
  #section-system .card-inner {
    display: flex;
    flex-direction: column;
  }

  #section-system .card-text {
    order: 1;
  }

  #section-system .card-image {
    order: 2;
    margin-top: 2rem;
  }

  .footer-content h2 {
    font-size: 2.5rem;
  }

  .footer-content p {
    font-size: 1rem;
  }

  .footer-logo {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-logo img {
    max-width: 150px;
  }

  .contact-form {
    max-width: 100%;
    margin-top: 1.5rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .btn img {
    max-width: 150px;
  }

  .card-tags {
    gap: 0.4rem;
  }

  .tag {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  /* セクション3: SP時は横幅80%、左寄せ */
  #section-operation .card-title {
    width: 80%;
    margin-left: 0.3rem;
    margin-right: auto;
  }

  /* セクション4: SP時は横幅80% */
  #section-dx .card-title {
    width: 80%;
  }


  #section-operation .card-inner {
    flex-direction: column;
  }

  #section-operation .card-text {
    max-width: 100%;
  }

  #section-operation .card-tags {
    max-width: 100%;
    width: 100%;
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  #section-operation .card-tags .tag {
    aspect-ratio: 4 / 5;
    padding: 0.8rem;
  }

  #section-operation .card-tags .tag:nth-child(2),
  #section-operation .card-tags .tag:nth-child(4) {
    top: 1.5rem;
  }

  #section-operation .card-tags .tag-image {
    max-width: 100%;
  }

  #section-operation .card-tags .tag-text {
    font-size: 0.75rem;
  }

  /* セクション4: SP用カルーセル */
  #section-dx .card-inner {
    flex-direction: column;
  }

  #section-dx .card-text {
    order: 1;
    width: 100%;
  }

  #section-dx .ring-carousel {
    display: none;
  }
}
