.works-textbox-section {
  padding: 80px 100px;
  height: 100%;
}
/* モバイル版のスタイル */
@media screen and (max-width: 1100px) {
  .single-works-page {
    margin-top: 0;
    padding: 0 40px;
    padding-top: 60px;
  }

  .works-content-wrapper {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
  }

  .client-info-wrapper {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 52px;
  }

  .works-account-type {
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 14px;
  }

  .works-client-name {
    margin-top: 10px;
    margin-left: 0;
    text-align: center;
    font-size: 24px;
  }

  .works-description-detail {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* デスクトップ版とモバイル版の表示制御 */
  .desktop-only {
    display: none !important;
  }

  .works-result-wrapper.mobile-only {
    display: flex !important;
    align-items: flex-end;
  }

  /* モバイル版用のレイアウト調整 */
  .works-result-wrapper {
    justify-content: center;
    margin: 20px 0;
  }

  .works-right-content {
    width: 100%;
    align-items: center;
    margin-left: 0;
  }

  .works-thumbnail-wrapper {
    margin-left: 0;
    margin-top: 32px;
  }
  .works-result-wrapper {
    gap: 0;
  }

  .works-result-title {
    margin-top: 24px;
    line-height: 35px;
    font-weight: 900;
    font-size: 20px;
  }

  .works-description-detail p {
    font-size: 16px;
    line-height: 24px;
  }
  .client-info-wrapper {
    margin-top: 0px;
  }

  .works-account-type {
    margin-top: 28px;
  }
  .works-textbox-section {
    width: 100%;
  }
  .footer-logo {
    position: relative;
    top: auto;
    left: auto;
    max-height: 77px;
    margin-top: 32px;
  }
  .footer-content {
    text-align: center;
  }
  .footer-links {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin-top: 30px;
  }
  .footer-link {
    text-align: center;
    font-size: 14px;
    line-height: 14px;
  }
  .footer-link:last-child {
    margin-top: 18px;
  }
  .copyright {
    font-size: 10px;
  }
  .single-works-back-text {
    width: 100%;
    max-width: 280px;
    font-size: 16px;
  }
  .single-works-back-button {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0px;
  }
  .back-button-container {
    margin-bottom: 80px;
  }
  .works-textbox-section {
    margin-top: 30px;
    padding: 20px 30px;
  }
  .account-detail-title {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    font-size: 16px;
  }
  .account-detail-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    font-size: 14px;
    line-height: 24px;
  }
  .works-result {
    font-size: 24px;
  }
  .result-line {
    position: relative;
    display: block; /* ブロック要素として表示 */
    margin-bottom: -4px; /* 行間を詰める（必要に応じて調整） */
  }

  .works-result span {
    position: relative;
    z-index: 1;
    white-space: pre-wrap;
    display: inline-block;
  }

  .works-result span::after {
    content: "";
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    height: 40%;
    background: #fff300;
    z-index: -1;
  }
  .contact-button {
    margin-top: 0;
    max-width: 426px;
    width: 100%;
  }
  .works-archive-grid {
    grid-template-columns: repeat(1, 258px);
    justify-content: center;
  }

  .works-archive .works-mockup-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    flex-wrap: nowrap; /* Ensure items don't wrap unexpectedly */
  }

  /* Adjust margins and paddings if necessary */
  .works-archive .works-mockup {
    margin-top: 0; /* Remove any top margin */
    min-height: 500px;
  }

  .works-archive .works-text-content {
    margin-left: 0; /* Remove left margin since items are stacked */
    margin-top: 20px; /* Add top margin to separate from the image */
    flex: 0 1 auto; /* Allow items to grow and shrink as needed */
  }
  .works-mockup-container::after {
    content: "";
    display: table;
    clear: both;
  }
  .works-archive-grid {
    flex-direction: column;
  }
  .works-archive .works-title {
    width: 100%;
    justify-content: center;
  }
  .works-archive .works-subtitle {
    width: 100%;
  }
  .works-archive .works-mockup-container {
    max-width: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    min-width: auto;
    margin: 0;
  }
  .works-archive .works-result-wrapper {
    flex-direction: row;
  }

  .rotate-175 {
    transform: rotate(175deg) !important;
    margin-left: 7px;
  }
  .works-archive .works-client-name {
    font-size: 24px;
    text-align: center;
    margin-top: 11px;
  }
  .works-archive .works-image {
    max-width: 158px;
  }
  .works-archive .works-subtitle {
    font-size: 14px;
    text-align: center;
    line-height: 14px;
  }
  .works-archive-grid {
    margin-top: 20px;
  }
  .decoration-left {
    margin-left: 0;
  }
  .decoration-right {
    margin-right: 0;
  }
  .mobile-only {
    display: block !important;
  }
  .back-to-top-button {
    max-width: 280px;
    width: 100%;
    margin-bottom: 80px;
    height: 46px;
  }
  .back-to-top-text {
    font-size: 16px;
  }
  .back-to-top-button-container {
    margin-top: 0px;
  }
  .works-archive .works-result {
    font-size: 24px;
    font-weight: 900;
    line-height: 35px;
    letter-spacing: 0.2px;
  }
  .works-archive .works-thumbnail {
    width: 87%;
  }
}

@media screen and (max-width: 419px) {
  .works-result {
    font-size: 20px;
    font-weight: 900;
  }
}

.works-textbox-section {
  max-width: 1412px;
  width: 100%;
}

.account-detail-content {
  width: 100%;
  max-width: 1212px;
  position: relative;
  height: auto;
  top: auto;
  left: auto;
  transform: none;
}

.account-detail-title {
  position: relative;
  height: auto;
  top: auto;
  left: auto;
  transform: none;
}

.works-description-detail {
  max-width: 734px;
  width: 100%;
}
.works-mockup-container {
  max-width: 430px;
  width: 100%;
}

@media screen and (max-width: 395px) {
  .works-archive .works-result {
    font-size: 20px;
    line-height: 30px;
  }
}

.input-field,
.textarea-field {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.svg-item,
.large-svg-item {
  position: relative;
  margin-bottom: 20px;
}
.label-container {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.required-badge {
  background-color: #ee1d52;
  color: #fff;
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 3px;
}
.privacy-container {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
.privacy-text {
  margin-left: 0px; /* 「プライバシーポリシー」に同意する との間隔 */
}
.button-container {
  text-align: center;
  margin-top: 30px;
}
.contact-button {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

input {
  background-color: rgba(15, 28, 128, 0.1);
  border: none !important;
  height: 50px;
  font-size: 20px;
}

textarea {
  background-color: rgba(15, 28, 128, 0.1);
  border: none !important;
  font-size: 20px;
}

select {
  width: 100%;
  height: 50px;
  background-color: rgba(15, 28, 128, 0.1);
  border: none !important;
  -webkit-appearance: none; /* Safari, Chrome用 */
  -moz-appearance: none; /* Firefox用 */
  appearance: none;
  padding: 8px;
  font-size: 20px;
}

.svg-container .button-container {
  margin-top: 0;
}

input[type="checkbox"] {
  width: 50px;
  height: 50px;
  background-color: rgba(15, 28, 128, 0.1);
  border: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative; /* 追加：after疑似要素の基準位置として必要 */
  cursor: pointer; /* 追加：クリック可能なことを示す */
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 15px;
  top: -4px;
  width: 18px;
  height: 44px;
  border: solid #0f1c80;
  border-width: 0 5px 5px 0;
  transform: rotate(45deg);
  display: block;
}

@media screen and (max-width: 768px) {
  input[type="checkbox"] {
    width: 13px;
    height: 13px;
    background-color: rgba(15, 28, 128, 0.1);
    border: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative; /* 追加：after疑似要素の基準位置として必要 */
    cursor: pointer; /* 追加：クリック可能なことを示す */
  }
  input[type="checkbox"]:checked::after {
    /* ::after に変更（より明示的な書き方） */
    content: "";
    position: absolute;
    left: 9px;
    top: 5px;
    width: 8px;
    height: 14px;
    border: solid #0f1c80;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: block; /* 追加：確実に表示されるようにする */
  }

  select {
    height: 25px;
    padding: 0px 8px;
    font-size: 14px;
  }
  .required-badge {
    width: auto;
    height: auto;
    padding: 0px 4px;
    white-space: nowrap;
  }
  input {
    background-color: rgba(15, 28, 128, 0.1);
    border: none !important;
    height: 25px;
    font-size: 14px;
  }
  input[type="checkbox"]:checked::after {
    top: 0px;
    width: 8px;
    height: 8px;
    left: 0px;
  }
  .mockup-video img {
    max-width: 782px;
  }

  .mockup-video {
    position: absolute;
    top: -50px;
    left: 30%;
    transform: translateX(-50%) rotate(8deg) scale(0.93);
    width: auto;
    height: auto;
    z-index: -1;
    transform-origin: center center;
  }
  .works-account-type {
    margin-top: 0px;
  }
}

.checkbox-container {
  display: flex;
  align-items: center;
  flex-direction: row;
  width: 100%;
  margin-top: 10px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.mockup-video-inner {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

html {
  width: 100%;
  overflow-x: hidden;
}

main {
  padding-top: 120px;
}
