@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap");

* {
  margin: 0;
  /*outline: 1px solid #FF0000*/
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: #ffffff;
  padding-top: 60px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  background-color: rgba(243, 243, 243, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  /* Safari対応 */
  padding: 10px 20px;
  z-index: 2000;
}

h1 {
  text-align: center;
}

h1 img {
  width: 300px;
  height: auto;
}

/* ハンバーガーボタン（ヘッダーの外） */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
}

.bar {
  width: 30px;
  height: 4px;
  background: #ee1d78;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ハンバーガーボタン（ヘッダーの外） */
.menu-toggle {
  position: fixed;
  top: 8px;
  right: 20px;
  width: 40px;
  height: 40px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
}

.bar {
  width: 30px;
  height: 4px;
  background: #525252;
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* サイドバー */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 250px;
  height: 100vh;
  /* Changed to viewport height */
  background: rgba(32, 33, 36, 0.95);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  z-index: 1000;
  padding: 80px 20px 20px;
  box-sizing: border-box;
  /* Added for better padding and height management */
}

.sidebar.active {
  right: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: #333;
}

.sidebar ul li a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
}

/* PCナビ */
.pc-nav {
  display: none;
}

.pc-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.pc-nav ul li {
  font-size: 16px;
  color: #000000;
  cursor: pointer;
}

.pc-nav ul li a {
  font-size: 16px;
  color: #000000;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

/* レスポンシブ：PC */
@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .pc-nav {
    display: block;
    margin-left: auto;
  }
}

/*注目作品*/
.production_list {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 2rem 0.5rem;
}

.production_list::-webkit-scrollbar {
  height: 10px;
}

.production_list::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.production_list::-webkit-scrollbar-button {
  display: none;
}

.production_list::-webkit-scrollbar-track-piece:start,
.production_list::-webkit-scrollbar-track-piece:end {
  background-color: transparent;
}

.production_list_list {
  width: 1000px;
  height: auto;
  display: flex;
  gap: 2rem;
}

@media (max-width: 768px) {
  .production_list_list {
    width: 500px;
  }

  .production_list_list_item {
    width: 80%;
    /* モバイル表示に合わせてアイテム幅も調整（必要に応じて変更可） */
  }

  .production_list_list::after {
    width: 1rem;
    /* スクロール後の余白もモバイルサイズに合わせて調整 */
  }

  h1 img {
    width: 150px;
    height: auto;
  }

  .em_map {
    width: 100%;
    height: 200px;
  }

  .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
  }
}

.em_map {
  width: 100%;
  height: 400px;
}

.production_list_list::after {
  content: "";
  width: 150px;
  display: block;
  position: relative;
  flex: 0 0 auto;
}

.production_list_list_item {
  color: #000;
  width: 40%;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  transition: 0.3s;
}

.production_list_list_item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.production_list_list_item h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
}

.production_list_list_item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.production_list_list_item:hover {
  scale: 1.02;
  opacity: 0.8;
}

/*サービス一覧*/

/*コンテナ群*/
.container {
  padding: 0px;
}

.container01 {
  padding: 0px;
  height: calc(100vh - 60px);
  /* ヘッダー分を引く */
  width: 90vw;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  text-align: center;
}

/* スマホ用調整 */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .container01 {
    text-align: center;
    height: auto;
    min-height: calc(100vh - 60px);
    width: 90vw;
    padding: 0;
  }

  .container01_top {
    width: 98vw;
    margin: 10px auto;
    border-radius: 8px;
    padding: 0 2vw;
  }

  .top02textcontainer.typing {
    padding: 8px 4px;
    min-height: 32px;
    width: fit-content;
    max-width: 85vw;
  }

  .typing-text {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  h1 img {
    width: 120px;
    height: auto;
  }
}

.container02,
.container03,
.container04 {
  width: 85%;
  margin: 0 auto;
  padding: 32px 24px 24px 24px;
  font-family: "Noto Sans JP", sans-serif;
  text-align: left;
  background: #b6b6b6;
}

.container02 h2,
.container03 h2,
.container04 h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #4a4a4a;
  margin-bottom: 18px;
  border-left: 6px solid #525252;
  padding-left: 12px;
  letter-spacing: 2px;
}

.container02 p,
.container03 p,
.container04 p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 16px;
}

.container04 a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 24px;
  background: #53acff;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(83, 172, 255, 0.1);
  transition: background 0.2s;
}

.container04 a:hover {
  background: #3578c2;
}

.container05 {
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  padding: 0px;
  background-color: #83c4e0;
  /* 背景色 */
  margin: 0px;
  width: 100%;
}

.container06 {
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  padding: 0px;
  background-color: #ffffe0;
  /* 背景色 */
  margin: 0px;
  width: 100%;
}

.Video_container {
  padding-top: 20px;
  text-align: center;
  position: relative;
  margin: 0 auto;
  background: rgb(255, 255, 255);
  overflow: hidden;
  width: 100%;
}

.Video_container img,
video {
  width: 100%;
}

.map_container {
  font-family: "Noto Sans JP", sans-serif;
  width: 60%;
  margin: 20px auto;
  /* 中央配置 */
  padding: 20px;
  background-color: #5acdd4;
  /* 背景色 */
  border-radius: 10px;
}

.tcc_info_container {
  width: 60%;
  margin: 20px auto;
  /* 中央配置 */
  padding: 20px;
  border: 2px solid #7d7d7d;
  color: #000;
  border-radius: 10px;
}

.container_title {
  font-family: "Noto Sans JP", sans-serif;
  width: 100%;
  margin: 20px auto;
  /* 中央配置 */
  background-color: #ffffff;
  /* 背景色 */
  border-radius: 10px;
  display: flex;
  /* 横並びにする */
  justify-content: space-between;
  /* 左右に要素を配置 */
  align-items: center;
  /* 上下の中央揃え */
}

.top02textcontainer {
  width: 30vh;
  margin: 20px auto;
  /* 中央配置 */
  padding: 20px;
  background-color: #ffffff;
  /* 背景色 */
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.center_container {
  text-align: center;
}

.container01_top {
  width: 85%;
  margin: 20px auto;
  /* 中央配置 */
  background-color: #ffffff;
  /* 背景色 */
  border-radius: 10px;
}

.Q_container {
  width: 90%;
  margin: 20px auto;
  /* 中央配置 */
  background-color: #272727;
  /* 背景色 */
  border-radius: 10px;
}

.function_container {
  display: flex;
  border: 2px solid #ccc;
  background-color: #e4ede8;
  margin-bottom: 30px;
}

.test_container {
  background-color: #b6b6b6;
  width: 100%;
  margin: 0 auto;
}

/*コンテナ群*/

/*コンテナ内要素デザイン*/
.top02icon {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.top02flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.container01_under {
  text-align: center;
}

.Q_container .q_title {
  color: #fff;
  padding-left: 10px;
  padding-top: 5px;
  padding-bottom: 10px;
}

.box {
  color: #fff;
  font-weight: bold;
  text-align: center;
  line-height: 100px;
  background-color: #3cb371;
  margin: 20px;
  width: 100px;
}

/* 各お知らせアイテム */
.notice_item {
  display: flex;
  /* 横並び配置 */
  justify-content: space-between;
  /* 左右に要素を分ける */
  align-items: center;
  /* 縦中央揃え */
  padding: 10px 0;
  /* 上下余白 */
  border-bottom: 1px solid #ddd;
  /* 下線 */
}

.notice_item:last-child {
  border-bottom: none;
  /* 最後のアイテムは下線を削除 */
}

/* 左側の日付 */
.notice_date {
  flex: 1;
  /* 左側の余白調整 */
  color: #333;
  /* 文字色 */
  font-weight: bold;
}

/* 中央の説明文 */
.notice_description {
  flex: 10;
  /* 中央の説明文が広く表示される */
  color: #555;
  font-size: 0.9rem;
  line-height: 1.4;
}

.title_btn .etc_btn {
  display: inline-block;
  /* ボタンとして機能 */
  padding: 5px 10px;
  /* ボタン内の余白 */
  font-size: 1rem;
  /* フォントサイズ */
  color: #000000;
  /* テキストの色 */
  background-color: #ffffff;
  /* ボタンの背景色 */
  border-radius: 50px;
  /* 角を丸くする */
  text-decoration: none;
  /* 下線を削除 */
  text-align: center;
  /* テキスト中央揃え */
  border: 1px solid #c0c0c0;
}

.title_btn .etc_btn:hover {
  background-color: #c0c0c0;
  /* ボタンのホバー時の色 */
}

/*お知らせ*/

/* 左側のタイトルテキスト */
.title_txt h4 {
  margin: 0;
  /* 余白をリセット */
  font-size: 1.5rem;
  /* フォントサイズを調整 */
  color: #333;
  /* テキストの色 */
}

/* スクロールバーのカスタマイズ */
.production_list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.production_list::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 10px;
}

.production_list::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.production_list::-webkit-scrollbar-track {
  background-color: #f1f1f1;
  border-radius: 10px;
}

/* タイピング風アニメーション */
.typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
  font-size: 1.2rem;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  margin-left: 10px;
  letter-spacing: 2px;
}

/* タイピングアニメーションのキーフレーム */
@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }

  50% {
    border-color: rgba(255, 255, 255, 0.75);
  }
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.nav-left {
  left: 10px;
}

.nav-right {
  right: 10px;
}

.mute-button {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  z-index: 10;
}

/* From Uiverse.io by cssbuttons-io */
.fancy {
  background-color: transparent;
  border: 2px solid #000;
  border-radius: 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0;
  outline: none;
  overflow: visible;
  padding: 1.25em 2em;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
  user-select: none;
  font-size: 13px;
}

.fancy::before {
  content: " ";
  width: 1.5625rem;
  height: 2px;
  background: black;
  top: 50%;
  left: 1.5em;
  position: absolute;
  transform: translateY(-50%);
  transform-origin: center;
  transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
  font-size: 1.125em;
  line-height: 1.33333em;
  padding-left: 2em;
  display: block;
  text-align: left;
  transition: all 0.3s ease-in-out;
  text-transform: uppercase;
  text-decoration: none;
  color: black;
}

.fancy .top-key {
  height: 2px;
  width: 1.5625rem;
  top: -2px;
  left: 0.625rem;
  position: absolute;
  background: #e8e8e8;
  transition: width 0.5s ease-out, left 0.3s ease-out;
}

.fancy .bottom-key-1 {
  height: 2px;
  width: 1.5625rem;
  right: 1.875rem;
  bottom: -2px;
  position: absolute;
  background: #e8e8e8;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy .bottom-key-2 {
  height: 2px;
  width: 0.625rem;
  right: 0.625rem;
  bottom: -2px;
  position: absolute;
  background: #e8e8e8;
  transition: width 0.5s ease-out, right 0.3s ease-out;
}

.fancy:hover {
  color: white;
  background: black;
}

.fancy:hover::before {
  width: 0.9375rem;
  background: white;
}

.fancy:hover .text {
  color: white;
  padding-left: 1.5em;
}

.fancy:hover .top-key {
  left: -2px;
  width: 0px;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
  right: 0;
  width: 0;
}

/*アニメーション*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* From Uiverse.io by alexmaracinaru */
.cta {
  border: none;
  background: none;
  cursor: pointer;
}

.cta span {
  padding-bottom: 14px;
  letter-spacing: 6px;
  font-size: 2rem;
  padding-right: 30px;
  text-transform: uppercase;
}

.cta svg {
  transform: translateX(-8px);
  transition: all 0.3s ease;
  width: 60px;
  height: 20px;
}

.cta:hover svg {
  transform: translateX(0);
}

.cta:active svg {
  transform: scale(0.9);
}

.hover-underline-animation {
  position: relative;
  color: black;
  padding-bottom: 30px;
  font-size: 2rem;
}

.hover-underline-animation:after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: #000000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.cta:hover .hover-underline-animation:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

footer {
  font-family: "Noto Sans JP", sans-serif;
  width: 100%;
  margin: 0 auto;
  left: 0px;
  color: rgb(0, 0, 0);
  background-color: #ebebeb;
  text-align: center;
  padding: 10px 0;
}

.sns-btn {
  display: flex;
  display: flex;
  justify-content: center;
  /* ← 中央揃え */
  padding: 0;
}

.sns-btn li {
  text-align: center;
  margin-left: 10px;
  margin-right: 10px;
  list-style: none;
}

.sns-btn li img {
  width: 30px;
  height: auto;
}

.MutualLink {
  color: #53acff;
}

.container01_content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.ogp-image-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.ogp-image {
  max-width: 400px;
  width: 80vw;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.top02textcontainer.typing {
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 60px;
  padding: 20px 30px;
  width: fit-content;
  max-width: 90vw;
}

.top02flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.top02icon {
  margin-right: 12px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.typing-text {
  font-size: 1.5rem;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  margin-left: 0;
  letter-spacing: 2px;
  min-height: 1.5em;
  white-space: pre;
  display: inline-block;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .top02textcontainer.typing {
    padding: 12px 10px;
    min-height: 40px;
    width: fit-content;
    max-width: 98vw;
  }

  .typing-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
}

/* top_img メインビジュアル画像用 */
.top_img {
  display: block;
  margin: 0 auto 16px auto;
  width: 50vw;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  margin-top: 20px;
}

.top_img2 {
  display: none;
}

@media (max-width: 768px) {
  .top_img {
    width: 85vw;
    max-width: 90vw;
    margin-bottom: 10px;
  }

  .cta span {
    padding-bottom: 14px;
    letter-spacing: 6px;
    font-size: 1.6rem;
    padding-right: 30px;
    text-transform: uppercase;
  }
}

@media (max-height: 780px) {
  .top_img {
    display: none;
  }

  .top_img2 {
    display: block;
    margin: 0 auto 16px auto;
    width: 60vw;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    margin-top: 50px;
  }

  .cta span {
    padding-bottom: 14px;
    letter-spacing: 6px;
    font-size: 1.5rem;
    padding-right: 30px;
    text-transform: uppercase;
  }
}

/*
   @media (max-height: 780px) {
        .top_img2{
        display: block;
        margin: 0 auto 16px auto;
        width: 50vw;
        max-width: 500px;
        height: auto;
        border-radius: 12px;
        margin-top: 10px;
        }
   }
        */
