/* =========================
   root（追加）
========================= */

:root {
  --header-height: 100px;
}

@media screen and (max-width: 820px) {
  :root {
    --header-height: 64px;
  }
}

/* ======= common ======= */

html {
  font-size: max(1.14vw, 16px);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #393939;
  line-height: 1.5;
  letter-spacing: .1rem;
  padding-top: var(--header-height);
  position: relative;
  min-height: 100vh;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  display: block;
  list-style: none;
  color: #393939;
  text-decoration: none;
  transition: .1s cubic-bezier(0.45, 0, 0.55, 1);
}

li,
ol {
  list-style: none;
}

.btn {
  display: inline-block;
  text-align: center;
  padding: 1.25rem 2rem;
  background: #000;
  color: #fff;
  min-width: 15rem;
  border-radius: 3rem;
  font-weight: bold;
  font-size: 1.25rem;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.btn:hover {
  background: #2d8adc;
}

.title {
  padding: 0 0 5rem 0;
}

.title__main {
  font-size: 6rem;
  margin: 0 0 .5rem;
  font-family: "Syne", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.2;
}

.title__sub {
  font-weight: bold;
  font-size: 1.25rem;
}

.section {
  padding: 6rem 5rem;
  max-width: 3600px;
  margin: 0 auto;
  position: relative;
}

.ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.title_center {
  text-align: center;
}

/* ===== 背景（パス修正） ===== */

.bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: url("/images/bg.jpg") no-repeat 0 0 / cover;
  z-index: -2;
}

.page-overlay {
  position: fixed;
  inset: 0;
  background: url("/images/bg_2.jpg") no-repeat 0 0 / cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: -1;
}

.page-overlay.is-active {
  opacity: 1;
}

.br {
  display: none;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(3rem);
}

.fade-in-up.is-show {
  opacity: 1;
  transform: translateY(0);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.2s ease 0.2s;
}

.not {
  pointer-events: none;
}

/* ======= パンくず ======= */

.breadcrumb {
  padding: 1rem 3rem;
}

.breadcrumb ul {
  display: flex;
  font-size: .8rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li + li::before {
  content: " / ";
  margin: 0 .5em;
}

.breadcrumb a {
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #2d8adc;
}

/* ======= header ======= */

.header {
  display: flex;
  top: 0;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  min-height: var(--header-height);
  z-index: 1000;
  position: fixed;
  width: 100%;
  font-size: .8rem;
  font-weight: bold;
  background: #fff;
}

.header__logo-img {
  height: 2.6rem;
  width: auto;
}

.header__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__list-item a:hover {
  color: #2d8adc;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 24px;
  height: 18px;
  cursor: pointer;
  gap: 5px;
  z-index: 2001;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #333;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
/* ======= header ======= */

/* ======= mv ======= */

#mv {
  position: relative;
  overflow: hidden;
}

.mv__img-container {
  position: relative;
  display: flex;
  gap: 3rem;
  animation: img-marquee 30s linear infinite;
  z-index: 0;
}

.mv__img {
  flex-shrink: 0;
  width: 40%;
  box-shadow: 0px 0px 8px rgb(0 67 103 / 30%);
  border-radius: 1rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: .8s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.mv__img:nth-child(odd) {
  margin: 2rem 0 0;
}

.mv__img:nth-child(even) {
  margin: 0 0 2rem;
}

@keyframes img-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.mv__span {
  font-size: 2.5rem;
  padding: .5rem 2rem;
  letter-spacing: .2rem;
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: transparent;
  transition: color 0ms 600ms;
  background: #fff;
  border-radius: .5rem;
}

.mv__span-point {
  color: #2d8adc;
}

.mv__span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #393939;
  transform: translateY(100%);
}

/* アニメーションON */
.mv__span.is-animated {
  color: #393939;
}

.mv__span.is-animated::after {
  animation: mask-bg 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes mask-bg {
  0% {
    transform: translateY(100%);
  }
  45% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes bgReveal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.mv__title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.mv__title_pc {
  display: flex;
}

.mv__title_sp {
  display: none;
}

.mv__title-sub {
  font-weight: bold;
  font-size: 1.25rem;
  line-height: 1.8;
  flex: 1;
}

.mv__txt-container {
  position: relative;
  padding: 0 10% 5rem;
  margin: -3rem 0 0 0;
  z-index: 2;
}

.mv__txt {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem 0 0 0;
}

.marquee {
  position: absolute;
  bottom: 13%;
  z-index: 1;
  mix-blend-mode: overlay;
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee__inner span {
  padding-right: 40px;
  white-space: nowrap;
  font-family: "Syne", sans-serif;
  font-size: 10rem;
  line-height: 1;
  font-weight: 600;
}

@keyframes marquee {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ======= mv ======= */

/* ======= service ======= */

.card__img-container {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 5 / 3;
  width: 95%;
  box-shadow: 0px 0px 8px rgb(0 67 103 / 10%);
  position: relative;
}

.card__img {
  object-fit: cover;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.card:hover .card__img {
  transform: scale(1.08);
  opacity: 0.9;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 7rem 5%;
  padding: 0 0 8% 0;
}

.card__txt-container {
  padding: 1.5rem;
  background: #fff;
  border-radius: 1rem;
  position: absolute;
  top: 70%;
  width: 95%;
  right: 0;
  box-shadow: 0px 0px 8px rgb(0 67 103 / 10%);
  z-index: 3;
}

.card__title {
  font-size: 1rem;
  margin: 0 0 .25rem;
}

.card__txt {
  font-size: .9rem;
}

.card {
  position: relative;
}

.arrow-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 1rem;
  right: 1rem;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  z-index: 2;
}

.arrow-btn .arrow {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 300;
}

.card:hover .arrow-btn {
  background: #2d8adc;
}

/* ======= service ======= */

/* ======= company ======= */

#company {
  padding: 10rem 5rem;
  color: #fff;
  mix-blend-mode: overlay;
}

.bg-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  padding: 0 2rem;
}

.bg-card {
  background: #ffffff21;
  padding: 12% 8%;
  box-shadow: 0px 0px 16px rgb(0 68 77 / 9%);
  clip-path: polygon(0 2.5rem, 2.5rem 0, 100% 0, 100% calc(100% - 2.5rem), calc(100% - 2.5rem) 100%, 0 100%);
}

.bg-card__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding: 1rem 0 0;
}

.bg-card__num {
  font-size: 2rem;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.bg-card__img {
  width: 50%;
  margin: 0 auto 1rem;
}

.bg-card__title {
  text-align: center;
}

.bg-card__txt {
  text-align: center;
  opacity: 0.6;
}

/* ======= member ======= */

.icon-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem 2.5rem;
  align-items: start;
}

.icon-card {
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px rgb(0 67 103 / 10%);
}

.icon-card:nth-of-type(1) {
  margin: 8rem 0 0;
}

.icon-card:nth-of-type(2) {
  margin: 4rem 0 0;
}

.icon-card__img {
  width: 40%;
  margin: -20% auto 2rem;
}

.icon-card__title {
  text-align: center;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.txt-list {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.txt {
  display: inline-block;
  padding: .25rem .5rem;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
  background: #fff;
  font-size: .75rem;
}

/* ======= member ======= */

/* ======= contanc ======= */

.contact__item {
  width: 70%;
  margin: 0 auto;
}

/* お問い合わせフォーム説明セクションを追加 */
.contact-info {
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 800px;
  padding: 2rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px rgb(0 67 103 / 10%);
}

.contact-info__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 1.5rem;
}

.contact-info__text {
  line-height: 1.8;
  margin: 0 0 0.5rem;
}

.form__item {
  margin: 0 0 2.5rem 0;
}

.form__label {
  margin: 0 0 .75rem 0;
}

input[type="text"],
textarea {
  cursor: text;
}

.form__required {
  display: inline-block;
  margin: 0 .5rem 0 0;
  padding: .25rem .5rem;
  border-radius: .25rem;
  background: #000;
  color: #fff;
  font-size: .75rem;
}

.form__box,
.form__textarea {
  height: 3rem;
  width: 100%;
  padding: 0 1rem;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: .5rem;
}

.form__textarea {
  padding: 1rem;
  height: 14rem;
}

/* チェックボックスグループのスタイルを追加 */
.form__checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.form__checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.form__checkbox:hover {
  border-color: #2d8adc;
  background: #f0f8ff;
}

.form__checkbox input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  cursor: pointer;
}

.form__checkbox span {
  font-size: 0.9rem;
}

.form__btn {
  display: block;
  margin: 0 auto;
  background: #000;
  color: #fff;
}

/* confirm.phpのボタン間隔を調整 */
.confirm-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 3rem 0 0;
}

.confirm-buttons .btn {
  flex: 1;
  max-width: 250px;
}

input.invalid,
textarea.invalid {
  background: #fff;
  border: 1.5px solid #ff3674;
}

.error.invalid {
  display: block;
}

.error {
  display: none;
  color: #ff3674;
  font-size: 0.75rem;
  margin: 0.25rem 0 0;
}

/* confirm.phpの確認内容表示 */
.confirm-table {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0px 0px 8px rgb(0 67 103 / 10%);
}

.confirm-row {
  display: flex;
  border-bottom: 1px solid #e1e1e1;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-label {
  width: 30%;
  padding: 1.5rem;
  background: #f5f5f5;
  font-weight: bold;
  border-right: 1px solid #e1e1e1;
}

.confirm-value {
  width: 70%;
  padding: 1.5rem;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ======= contanc ======= */

/* ======= footer ======= */

.footer-3 nav {
  display: flex;
  gap: 2rem;
  width: 60%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-3 {
  padding: 6rem 6rem 2rem;
  background-color: #03001c;
  font-size: .75rem;
  color: #fff;
}

.footer-3 a {
  color: #fff;
}

.footer-3__container {
  display: flex;
  gap: 4rem;
  justify-content: space-between;
}

.footer__logo-img {
  max-width: 21rem;
  width: 100%;
  margin: 0 0 4rem 0;
}

.footer-3 .btn {
  width: 90%;
  min-width: max-content;
  background: linear-gradient(90deg, rgb(46 138 220) 0%, rgb(32 188 205) 50%, #0c74d1 100%);
  background-size: 200% 100%;
}

.footer-3 .btn:hover {
  background-position: 100% 0;
}

.footer-3__link {
  margin: 0 0 1rem;
  opacity: 0.6;
}

.footer-3__title {
  font-weight: bold;
  margin: 0 0 1.5rem;
}

.footer-3__head {
  flex-shrink: 0;
  width: 30%;
}

.footer-3__copyright {
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  margin: 6rem -4rem 0;
  border-top: 1px solid #ffffff40;
  padding: 2rem 0 0;
}

.footer-3__copyright-inner {
  display: flex;
  gap: 1rem;
}

/* ======= footer ======= */

/* ======= detail ======= */

.detail-top {
  padding: 2rem 5rem;
  max-width: 3600px;
  margin: 0 auto;
}

.detail-section {
  background: #f0f4f6;
}

.detail-title-sub {
  line-height: 1.8;
  margin: 0 0 4rem;
}

.detail-title {
  font-size: 2rem;
  margin: 0 0 4rem;
  border-bottom: .2rem solid #e1e1e1;
}

.detail-title span {
  display: inline-block;
  position: relative;
  padding: 0 1rem .5rem;
}

.detail-title span::before {
  position: absolute;
  bottom: -.2rem;
  left: 0;
  width: 100%;
  height: .2rem;
  background-color: #2589d0;
  content: "";
}

.detail .title__sub::before {
  content: "";
  background: #2d8adc;
  margin: 0 .5rem 0 0;
  width: .6em;
  height: .6em;
  display: inline-block;
  border-radius: 50%;
}

/* ======= detail ======= */

/* ======= service ======= */

.card-wide {
  background: #fff;
  border-radius: 1rem;
  display: flex;
  gap: 2rem;
  padding: 2.5rem;
  box-shadow: rgb(0 67 103 / 14%) 0px 0px 8px;
  margin: 0 auto 4rem;
  justify-content: space-between;
  align-items: center;
}

.card-wide:hover {
  background: #2d8adc;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  color: #fff;
}

.card-wide:hover .card-wide__title::before {
  color: #fff;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.card-wide-img {
  display: block;
  width: 30%;
  object-fit: cover;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.card-wide__title {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.card-wide__title::before {
  content: "website";
  color: #2d8adc;
  font-weight: normal;
  font-size: .8rem;
  font-family: "Syne";
}

.card-wide_banner .card-wide__title::before {
  content: "banner";
}

.card-wide_movie .card-wide__title::before {
  content: "movie";
}

.card-wide_chatbot .card-wide__title::before {
  content: "chatbot";
}

.service-page__top-txt-container .card-wide__title::before {
  position: absolute;
}

.card-wide__img-container {
  width: 40%;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 5 / 3;
}

.card-wide__txt-container {
  width: 65%;
}

/* ======= service ======= */

/* webpageページ専用のレイアウト修正を追加 */

/* 私たちの強みセクションのレイアウト調整 */
.detail .icon-card-list .icon-card:nth-of-type(1),
.detail .icon-card-list .icon-card:nth-of-type(2) {
  margin-top: 0;
}

/* 制作の流れの背景を濃くする */
.detail .bg-card {
  background: #ffffff40;
}

/* ここまで */

@media screen and (max-width: 820px) {
  .btn {
    width: 100%;
    max-width: 400px;
  }

  .section {
    padding: 6rem 3rem;
  }

  .title__sub {
    font-size: .75rem;
  }

  .title__main {
    font-size: 4rem;
  }

  /* header */

  .header {
    min-height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .header__logo-img {
    height: 32px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* 初期は画面外 */
    width: 100%;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease; /* スライドアニメーション */
    z-index: 2000;
  }

  .header__list {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
    font-size: 1.25rem;
  }

  .header__nav.show {
    right: 0; /* 表示時に右からスライドイン */
  }

  .header .btn {
    margin: 1rem 0 0;
    min-width: 18rem;
  }

  /* mv */

  .mv__img-container {
    animation: img-marquee 10s linear infinite;
  }

  .mv__img {
    width: 60%;
  }

  .mv__txt {
    align-items: stretch;
    flex-direction: column;
    gap: 4rem;
  }

  .mv__title_pc {
    margin: 0 -7%;
  }

  .marquee {
    bottom: 16%;
  }

  .mv__txt-container {
    padding: 0 5% 6rem;
  }

  /* grid */

  .card-list,
  .bg-card-list,
  .icon-card-list {
    grid-template-columns: repeat(1, 1fr);
    width: 80%;
    margin: 0 auto;
  }

  /* service */

  .card__txt-container {
    top: 80%;
  }

  #company {
    padding: 6rem 2rem;
  }

  /* member */

  .icon-card:nth-of-type(1),
  .icon-card:nth-of-type(2) {
    margin: 0;
  }

  .icon-card__img {
    width: 30%;
    margin: -15% auto 2rem;
  }

  .icon-card-list {
    gap: 5rem;
  }

  /* footer */

  .footer-3__container {
    flex-direction: column;
  }

  .footer-3 nav {
    width: 100%;
    justify-content: center;
  }

  .footer-3__head {
    width: 100%;
  }

  .footer-3 .btn {
    width: 100%;
    display: block;
    margin: 0 auto;
  }

  .footer__logo-img {
    margin: 0 auto 2.5rem;
    max-width: 16rem;
  }

  .footer-3__copyright {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 4rem -4rem 0;
  }

  /* detail */

  .detail-title {
    font-size: 1.5rem;
  }

  /* service */

  .card-wide__title {
    font-size: 1rem;
  }

  .card-wide__txt-container {
    width: 100%;
  }

  .card-wide__img-container {
    width: 100%;
    border-radius: .5rem;
  }

  .card-wide {
    flex-direction: column;
    max-width: 500px;
  }

  .detail-top {
    padding: 2rem 3rem 0;
  }

  .breadcrumb {
    padding: 1rem 2rem;
  }

  /* confirm.phpのボタンをモバイルで縦並びに */
  .confirm-buttons {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .confirm-buttons .btn {
    max-width: 100%;
    width: 100%;
  }

  /* confirm.phpの確認テーブルをモバイル対応 */
  .confirm-row {
    flex-direction: column;
  }

  .confirm-label {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e1e1e1;
    padding: 1rem;
  }

  .confirm-value {
    width: 100%;
    padding: 1rem;
  }

  /* チェックボックスグループをモバイルで1列に */
  .form__checkbox-group {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 500px) {
  html {
    font-size: max(1.14vw, 14px);
  }

  .section {
    padding: 4rem 2rem;
  }

  .card-list,
  .bg-card-list,
  .icon-card-list {
    width: 100%;
    gap: 4rem 4rem;
  }

  .title {
    padding: 0 0 3rem 0;
  }

  .title__main {
    font-size: 3rem;
  }

  /* header */

  .header {
    padding: 1rem;
  }

  /* mv */

  .mv__img-container {
    gap: 1.5rem;
  }

  .mv__img {
    width: 80%;
  }

  .mv__span {
    font-size: clamp(1.8rem, 6.5vw, 4rem);
    padding: .5rem 1rem;
  }

  .mv__title-sub {
    font-size: 1rem;
  }

  .marquee__inner span {
    font-size: 8rem;
  }

  .card__txt-container {
    width: 95%;
    top: 55%;
  }

  .card__img-container {
    width: 95%;
  }

  .contact__item {
    width: 100%;
  }

  /* お問い合わせフォーム説明をモバイル対応 */
  .contact-info {
    padding: 1.5rem;
    margin: 0 0 2rem;
  }

  .contact-info__title {
    font-size: 1.25rem;
  }

  .card-list {
    width: 90%;
  }

  .bg-card__title {
    margin: 0 0 .5rem;
  }

  .bg-card-list {
    padding: 0;
  }

  /* footer */

  .footer-3 {
    padding: 4rem 2rem;
  }

  .footer-3__title {
    margin: 0 0 1rem;
  }

  .footer-3__link {
    margin: 0 0 .5rem;
  }

  .footer-3__copyright {
    margin: 3rem 0rem 0;
  }

  .detail-title {
    margin: 0 0 2rem;
  }

  .detail-title-sub {
    margin: 0 0 2rem;
  }

  .detail-top {
    padding: 2rem;
  }
}
