:root {
  --main-green: #3a6b48;
  --main-yellow: #ffd700;
  --light-bg: #fffde7;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", sans-serif;
  overflow-x: hidden;
  position: relative;
}

header {
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  height: 100px;
  background: linear-gradient(180deg, #ffffff, #ffffffc2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  z-index: 11;
  box-shadow: 0px 1px 8px 0px #00000099;
}

section {
  margin: 100px auto;
}

.banner_area {
	width: 1000px;
	max-width: 90%;
	margin: 50px auto;
}

.banner_area p {
	text-align: center;
	padding-bottom: 10px;
}

.banner_area a {
	display: block;
}

.banner_area img {
	width: 100%;
	box-shadow: 3px 3px 6px 0 #00000069;
}

.logo {
  /* font-size: 1.5rem; */
  /* font-weight: bold; */
  /* color: var(--main-green); */
  height: 150px;
  width: auto;
  max-height: 100%;
}

.logo img {
	height: 100%;
	width: auto !important;
}

nav {
  display: flex;
  gap: 1rem;
  height: 100%;
  align-items: center;
  margin-right: 90px;
}

nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.sns {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease; /* スムーズな動き */
}

.sns.line {
	right: 70px;
}

.sns:hover {
  transform: translateY(-53%); /* 3%だけ上へふわっと移動 */
}

.sns a {
  text-decoration: none;
  color: #333;
  font-size: 30px;
  display: flex;
  width: 40px;
  justify-content: center;
}

.sns.instagram a:after {
  content: "\f16d";
  font-family: "Font Awesome 6 Brands";
  background: linear-gradient(90deg, #af11f7, #ff0883, #ffc033);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 120% auto;
  background-position: left center;
  transition: background-position 0.5s ease;
}

.sns.line a:after {
  content: "\f3c0";
  font-family: "Font Awesome 6 Brands";
  background: #07b53b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 120% auto;
  background-position: left center;
  transition: background-position 0.5s ease;
}

.sns a:hover:after {
  background-position: right center;
}


#mainVisual {
	margin-top: 100px;
	max-height: 600px;
}

#mainVisual img {
    max-height: 500px;
    object-fit: cover;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 25px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 11;
}

.hamburger span {
  position: absolute;
  height: 2px;
  width: 24px;
  background-color: #333;
  transition: all 0.5s ease;
}

.hamburger span:nth-child(1) {
  top: 6px;
}

.hamburger span:nth-child(2) {
  top: 12px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

/* × に変化 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 12px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 12px;
}

.mobile-nav {
  position: fixed;
  top: 100px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 100px); /* 100px分引いて残りを全体表示 */
  background: #676767f7;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.7s ease, opacity 0.7s ease;
  padding: 2rem;
  z-index: 9;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: scroll;
}

.mobile-nav a {
  padding: 1rem;
  text-decoration: none;
  color: #ffffff;
  text-align: center;
  position: relative;
  border-bottom: 1px solid;
  width: 100%;
  display: block;
}

.mobile-nav a:after {
	content: "\f054";
	font-family:  'FontAwesome';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	transform-origin: center center;
}

/* サブメニュー初期状態 */
.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid #fff;
}

/* サブメニュー表示時 */
.mobile-submenu.open {
  max-height: 300px; /* 必要に応じて調整 */
  opacity: 1;
}

/* FontAwesome の矢印を rotate する */
.mobile-service-toggle::after {
  content: "\f054";
  font-family: 'FontAwesome';
  position: absolute;
  right: 1rem;
  transition: transform 0.4s ease;
  transform: rotate(0deg);
}

/* 下向きに変化 */
.mobile-service-toggle.open::after {
  transform: translateY(-50%) rotate(90deg);
}


.service-menu-wrapper {
  position: relative;
  height: 100%;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(180deg, #ffffff, #ffffffc2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  min-width: 100px;
  z-index: 10;
}

.submenu a {
  padding: 0.5rem 1rem 0.5rem 1.5rem;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
  position: relative;
}

.submenu a:before {
	content: "・";
	position: absolute;
	left: 5px;
	color: #333;
}

.submenu a:hover {
	background: #e3e3e37a;
}

.service-menu-wrapper:hover .submenu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.sns_mobile {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.sns_mobile a {
  display: inline-block;
  font-size: 30px;
  width: auto;
  padding: 0;
  border-bottom: none;
}

.sns_mobile a.instagram:after {
  content: "\f16d";
  font-family: "Font Awesome 6 Brands";
  background: linear-gradient(90deg, #af11f7, #ff0883, #ffc033);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 100% auto;
  background-position: left center;
  transition: background-position 0.5s ease;
  position: unset;
  transform: translateY(0%);
}

.sns_mobile a.line:after {
  content: "\f3c0";
  font-family: "Font Awesome 6 Brands";
  background: #07b53b;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 100% auto;
  background-position: left center;
  transition: background-position 0.5s ease;
  position: unset;
  transform: translateY(0%);
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  z-index: 7;
}

.hero video,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-align: center;
  padding: 0 1rem;
  background: rgb(33 33 33 / 51%);
  mix-blend-mode: difference;
  transform: translateY(0);
  transition:
    color 0.3s ease,
    transform 1.5s ease,
    height 1.5s ease;
}

.hero-content h1 {
  font-size: 3.4rem;
  margin-bottom: 1rem;
}

.contact_area {
  position: relative;
  z-index: -1;
  top: -100px;
  display: flex;
  justify-content: center;
}

.cta {
  display: inline-block;
  background: #f9ee40;
  color: #333;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta:hover {
  background: #3ccfc4cf;
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

.section-title {
  font-size: 1.6rem;
  color: #00b6a8;
  margin-bottom: 2rem;
  text-align: center;
}

.title_area {
	position: relative;
}

.title_area img {
	position: absolute;
	top: 100px;
	right: 15px;
	width: 40vw;
	max-width: 400px;
	rotate: -8deg;
	z-index: -1;
	opacity: 0.8;
}

.text_about,.text_about2, .text_work {
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #515050;
  font-size: clamp(16px, 5vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 10px;
}

.text_services,.text_news {
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #333;
  font-size: clamp(16px, 5vw, 60px);
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 10px;
}

.en_about,.en_work {
  overflow: hidden;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #000;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 500;
  padding: 0 10px;
  font-style: italic;
  margin-bottom: 20px;
}

.en_about {
  color: #919191;
  margin: 30px 20px;
  rotate: -2deg;
}

.en_work {
  color: #000;
}

.en_services,.en_news {
  overflow: hidden;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #000000;
  font-size: clamp(16px, 1.6vw, 25px);
  font-weight: 500;
  padding: 0 10px;
  font-style: italic;
  margin-bottom: 20px;
}

.text_about.is-active,.text_about2.is-active,.en_about.is-active,
.text_services.is-active,.en_services.is-active,
.text_work.is-active,.en_work.is-active,
.text_news.is-active,.en_news.is-active{
  --y: 0;
}

.char {
  display: inline-block;
  transform: translateY(var(--y, 110%));
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: calc(0.1s * var(--char-index));
}

.en .char {
  display: inline-block;
  transform: translateY(var(--y, 110%));
  transition: transform 0.2s cubic-bezier(0.77, 0, 0.175, 1);
  transition-delay: calc(0.05s * var(--char-index));
}

.visuallyHidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#heroImage {
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1000px;
    height: auto;
    z-index: 1;
    transition: opacity 2s ease;
    padding: 30px;
}

#heroImageSp {
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    top: 50%;
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 100%;
    max-width: 65%;
    height: auto;
    z-index: 1;
    transition: opacity 2s ease;
}

#services .title_area {
	position: relative;
}

#services .title_area img {
	position: absolute;
	top: 40px;
	left: 15px;
	width: 40vw;
	rotate: -8deg;
	z-index: -1;
	opacity: 0.8;
}

#services .bg {
  width: 100%;
  height: 100%;
  margin: 50px auto;
}

#services .bg iframe {
  width: 60%;
  height: 100%;
  margin: auto;
  display: block;
}

.services, .works {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.services a {
	display: block;
	width: calc(33.3333% - 2rem);
	text-decoration: none;
}

.services .flex {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: 1px 1px 4px 0 #0000003b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  padding: 20px;
  overflow: hidden;
  z-index: 0;
}

.services .flex::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #00b6a8, #3ccfc4);
  z-index: -2;
  transition: opacity 0.4s ease;
}

.services .flex::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #3ccfc4, #ace6e2); /* hover時の色 */
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.services .flex:hover::after {
  opacity: 1;
}

.services .flex:hover {
  transform: translateY(-5px);
}


.services .flex.right strong,
.services .flex.left strong{
  right: 0;
}

.services .flex p strong {
  /* position: absolute; */
  right: 0;
  /* line-height: 5rem; */
  padding: 15px 0;
  color: #ffffff;
  font-size: 1.6rem;
  /* text-shadow: 0 0 5px #000000; */
  text-align: center;
  display: block;
}

.services .flex.left {
  width: calc(50% - 2rem);
  flex-direction: row-reverse;
}

.services .flex.right {
  width: calc(50% - 2rem);
  flex-direction: row-reverse;
}
.services .cnt_img {
  width: 50px;
  height: 50px;
  margin: auto;
}
.services .cnt_img img {
  width: 100%;
  height: 100%;
  /* clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 80%); */
  object-fit: contain;
}

.services .left .cnt_img img,
.services .right .cnt_img img{
  width: 100%;
  clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
  height: 100%;
}

.services .cnt_txt {
  padding: 10px;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

#services ul {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#services li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}

#services li img {
  width: 100%;
}

#work .title_area img {
	position: absolute;
	top: 40px;
	width: 40vw;
	rotate: -8deg;
	z-index: -1;
}

#news .title_area img {
    position: absolute;
    top: 40px;
    left: 15px;
    width: 25vw;
    rotate: -8deg;
    z-index: -1;
    opacity: 0.8;
    max-width: 250px;
}

#news ul {
  display: flex;
  /* justify-content: center; */
  /* gap: 10px; */
}

#news li {
  display: flex;
  align-items: center;
  flex-direction: column;
}

#news li img {
  width: 100%;
}
.cta-section {
  background: var(--light-bg);
  text-align: center;
  padding: 4rem 2rem;
}

#work ul {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#work li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
}

#work li img {
  width: 100%;
}
.cta-section {
  background: var(--light-bg);
  text-align: center;
  padding: 4rem 2rem;
}

.hero-message span {
  display: inline-block;
  opacity: 0;
}

/* 1行目: 左からスライドイン */
.line1 {
  opacity: 0; /* ←追加 */
  transform: translateX(-50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 2行目: 少し拡大しながらフェードイン */
.line2 {
  opacity: 0; /* ←追加 */
  transform: scale(0.95);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

/* 表示状態 */
.line1.visible {
  opacity: 1;
  transform: translateX(0);
}

.line2.visible {
  opacity: 1;
  transform: scale(1);
}



footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem;
  background: #4a4a4a;
}

.footer {
	max-width: 1200px;
	margin: auto;
}

.flex_footer {
	display: flex;
	gap: 20px;
}

.list_footer ul,
.list_footer ul a {
	display: flex;
	color: #fff;
	text-decoration: none;
	gap: 20px;
}

.list_footer ul li a {
	display: block;
	text-align: left;
	width: 100%;
	position: relative;
}

.list_footer ul li a:after {
	content: "\f054";
	font-family: FontAwesome;
	font-size: 0.5rem;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	color: #ffffff94;
	padding-left: 10px;
}

.list_footer .main_footer li {
	width: 25%;
}

.main_footer li {
	font-size: 1rem;
}

.sub_footer li {
	font-size: 0.9rem;
}

.list_footer ul .sub_footer {
	flex-direction: column;
	padding-top: 10px;
	gap: 0;
}

.list_footer ul .sub_footer li {
	width: 100%;
	display: flex;
	position: relative;
	overflow: hidden;
	padding: 2px 0;
	align-items: center;
}

.list_footer ul .sub_footer li::after {
	content: "";
	position: absolute;
	height: 1px;
	width: 0%;
	background: #ffffff94;
	bottom: 0;
	left: 0;
	transition: width 0.4s ease;
}

.list_footer ul .sub_footer li:hover::after {
	width: 100%; 
}

.list_footer ul .sub_footer li:before {
	content: "・";
	color: #f9ee40;
}

.list_footer ul li {
	list-style: none;
}

.main_footer p {
	text-align: left;
	line-height: 2.5rem;
	border-bottom: 0.5px solid #ffffff94;
}

.img_footer img {
	padding: 10px;
	width: 100%;
}

.img_footer {
	width: 15%;
}

.img_footer p {
	color: #fff;
}

.contact_footer,.contact_header{
	width: 25%;
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}

.contact_footer p {
	color: #fff;
}

.list_footer {
	width: 65%;
}

.contact_footer a,.contact_header a {
	background: #f9ee40;
	padding: 10px;
	color: #333;
	text-decoration: none;
	display: block;
	width: 100%;
	max-width: 180px;
	font-size: 1.2rem;
}

.contact_header a {
	border-bottom: none;
}

.contact_footer a.email, .contact_header a.email {
	background: #00b6a8;
	color: #fff;
}

.contact_header a.email {
	background: #4a4a4a;
}

.contact_footer a:before,.contact_header a:before {
	content: "\f095";
	font-family: FontAwesome;
	padding-right: 10px;
}

.contact_footer a.email:before,.contact_header a.email:before {
	content: "\f0e0";
}

.copyright {
	color: #fff;
	margin-top: 50px;
}

footer .privacy {
	color: #fff;
	margin-top: 10px;
	display: inline-block;
}

#about,
#services,
#work,
#news {
	width: 90%;
	margin: 80px auto;
}

#about,#about p {
  position: relative;
}

#about .box {
  background: #f3f3f3e8;
  padding: 30px 10px;
  width: 70vw;
  max-width: 600px;
  box-shadow: 2px 2px 5px 0 #6f6f6f;
  margin: 80px auto;
  font-size: 1.2rem;
}

#about .box p:first-child {
  text-align: center;
  line-height: 2em;
}

#about .bg {
  width: 100%;
  height: 100%;
  margin: 20px auto;
}

#about .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 1% 0, 1% 100%, 0 100%); /* 最初は左1%だけ表示 */
  transition: clip-path 1.5s ease-out;
  display: block;
}

#about .bg.is-active img {
  width: 100%;
  clip-path: polygon(0% 0%, 100% 20%, 100% 100%, 0% 80%);
}

#about .bg iframe {
  width: 60%;
  height: 100%;
  margin: auto;
  display: block;
}

.en {
  position: relative;
}

/* フェードアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

#mainContent {
opacity: 0;
transition: opacity 1s ease-in-out;
}

#loading {
  position: fixed;
  z-index: 9999;
  background: #111;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading svg {
  width: 100%;
  height: 100%;
}

#movingDot {
  position: absolute;
  transform: scale(0.4);
  transform-origin: center;
  filter: blur(1px); 
}

#main {
  max-width: 1200px;
  margin: 30px auto;
}

.dot-flash {
  animation: flashScale 2.5s ease-out forwards;
}

@keyframes flashScale {
0% {
  r: 4;
  fill: #ffd90096;
  opacity: 1;
  filter: blur(0px);
}
50% {
  r: 1000; 
  fill: #ffffff;
  opacity: 1;
  filter: blur(20px);
}
100% {
  r: 1500; 
  fill: #ffffff;
  opacity: 0;
  filter: blur(40px);
}
}

/* mainContentå†…ã®é…ç½® */
#infinityPath {
  transform: scale(0.4);
  transform-origin: center;
}

.hero video,
.hero img {
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#loading svg {
  width: 100%;
  height: 100%;
}

.ifPc {
  display: block;
}

.ifSp {
  display: none;
}

#work {
  position: relative;
}

#work {
  position: relative;
}

/* ダミー高さ確保 */
.work-iframe-spacer {
  height: 700px; /* iframeのmin-heightと同じにする */
}

.work-iframe-container {
  position: absolute;
  top: 150px;
  left: 50%;
  width: 100%;
  height: 90%;
  min-height: 700px;
  transform: translateX(-50%);
  z-index: 0; /* 他の要素より後ろ */
  /* padding-bottom: 100px; */
}

.work-iframe-container iframe {
  width: 100%;
  height: calc(100% - 200px);
  border: none;
  margin: 50px auto 20px;
}


.link {
  margin: 30px auto;
}

.link a {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  max-width: 200px;
  padding: 10px 25px;
  color: #00b6a8;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  text-decoration: none;
  background: #00b6a80d;
}
.link a:before,
.link a:after {content: '';width: 18px;height: 18px;border-color: #00b6a8;box-sizing: border-box;border-style :solid;display: block;position: absolute;transition: all 0.3s ease-in-out;}
.link a:before {
top: -6px;
left: -6px;
border-width: 2px 0 0 2px;
z-index: 5;
}
.link a:after {
bottom: -6px;
right: -6px;
border-width: 0 2px 2px 0;
}
.link a:hover:before,
.link a:hover:after {
width: calc(100% + 12px);
height: calc(100% + 12px);
border-color: #00b6a8;
}
.link a:hover {color: #fff;background: linear-gradient(45deg, #00b6a8, #00b6a8);border-color: #00b6a8;}


#news-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 900px;
  padding: 80px 0 60px;
  margin: auto;
}

.carousel-container {
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  /* gap: 10px; */
  margin: 10px auto;
}

.carousel-slide {
  flex: 0 0 calc((100%) / 3);
  box-sizing: border-box;
  /* padding: 10px; */
  list-style: none;
  display: flex;
  flex-direction: column;
  
  border-radius: 10px;
}

.carousel-slide .img_area {
	height: 180px;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
}

.carousel-slide img {
  width: auto;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.carousel-slide a {
	text-decoration: none;
}

.carousel-slide-inner {
	width: 100%;
	height: 100%;
	padding: 10px;
}

.carousel-slide-cnt {
	width: 100%;
	height: 100%;
	box-shadow: 3px 3px 8px 0 #00000036;
	border-radius: 10px;
	position: relative;
}

.carousel-slide h3 {
	color: #797979;
	padding: 10px;
	font-size: 1rem;
}

.carousel-slide p {
	color: #3e3e3e;
	padding: 10px;
}

.carousel-slide p.date {
	padding: 0 10px;
	text-align: right;
	font-size: 0.8rem;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  /* background: rgba(0, 0, 0, 0.5); */
  color: rgba(0, 0, 0, 0.5);
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
}

.carousel-prev {
  right: 50px;
  top: -40px;
}

.carousel-next {
  right: 0;
  top: -40px;
}

.carousel-prev::before {
  content: "\f053";
  font-family: 'FontAwesome';
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px; /* 縦中央揃え */
  text-align: center; /* 横中央揃え */
  font-size: 16px;
  background: rgb(255 255 255 / 50%);
  border-radius: 50%; /* 円形 */
  box-shadow: 1px 1px 5px 0 #00000040;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}

.carousel-next::before {
  content: "\f054"; /* FontAwesomeの右矢印 */
  font-family: 'FontAwesome';
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px; /* 縦中央揃え */
  text-align: center; /* 横中央揃え */
  font-size: 16px;
  background: rgb(255 255 255 / 50%);
  border-radius: 50%; /* 円形 */
  box-shadow: 1px 1px 5px 0 #00000040;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}

.carousel-prev:hover::before,
.carousel-next:hover::before {
  transform: translateY(-3px);
  box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.post-category {
	position: absolute;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	right: -5px;
	top: -5px;
}

.post-category.News {
	background: #fff33078;
	z-index: 0;
	border-radius: 50%;
}

.post-category.Topic {
	color: #fff;
	background: #3ccfc4c9;
	z-index: 0;
	border-radius: 50%;
}

.btn_contact {
  position: fixed;
  bottom: 30%;
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
	transition: opacity 0.5s ease;
}

.btn_contact.fade-out {
  opacity: 0;
  pointer-events: none; /* 被ってる間のクリック防止 */
}

/* 初期状態: 縦書き（-90度） */
.btn_contact a {
  padding: 10px;
  color: #ffffff;
  background: #00b6a8;
  font-size: 16px;
  text-decoration: none;
  transform: rotate(-90deg);
  transform-origin: right bottom;
  transition: transform 1s ease;
  border-radius: 5px 5px 0 5px;
  box-shadow: -2px 2px 4px #49494973;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  display: inline-block;
}

/* アイコンも回転させる */
.btn_contact a::after {
  font-family: 'FontAwesome';
  content: "\f0e0";
  font-weight: 100;
  display: inline-block;
  transform: rotate(90deg);
  margin-right: 8px;
  transition: transform 1s ease;
}

/* 回転して横向きになる */
.btn_contact.open a {
  transform: rotate(0deg);
}

/* アイコンも戻る */
.btn_contact.open a::after {
  transform: rotate(0deg);
}

.scroll_up {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 7;
  opacity: 0;
}

.scroll_up a {
  position: relative;
  writing-mode: sideways-lr;
  text-align: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 1rem 0;
  display: inline-block;
  transition: color 0.3s ease;
  line-height: 3rem;
  top: -50px;
}

.scroll_up a:hover {
  color: #000;
}

/* 上昇アニメーション矢印 */
.scroll_up a::before {
  content: "→";
  display: block;
  font-size: 1.2rem;
  animation: arrowUp 1.5s infinite ease-in-out;
  margin-bottom: 0.5rem;
  color: #666;
  position: absolute;
  top: -15px;
}

/* 矢印が上下に動く */
@keyframes arrowUp {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.3; }
}


/* 画像の初期状態: 非表示 */
#contactImage {
  position: absolute;
  top: 35px; /* 画像高さに応じて調整 */
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  z-index: 1;
  right: -10px;
}

#contactImage a {
	background: transparent;
	: 0;
	padding: 0;
	box-shadow: none;
	transform: rotate(0deg);
	width: 220px;
}

#contactImage a:after {
	content: "";
}

/* 画像表示 */
.btn_contact.open #contactImage {
  opacity: 1;
  pointer-events: auto;
}

.fixed_link_wrapper {
	position: fixed;
	left: 0;
	top: 150px;
	width: 150px;
	height: auto;
	z-index: 11;
}

.fixed_link {
	position: absolute;
	left: -110px; /* 完全に隠す */
	width: 150px;
	background: #ffffffcc;
	box-shadow: 2px 2px 4px #49494973;
	display: flex;
	flex-direction: column;
	transition: left 0.5s ease;
}

.fixed_link_wrapper:hover .fixed_link {
	left: 0;
}


.fixed_link a {
	text-decoration: none;
	color: #333;
	position: relative;
	padding: 10px 40px 10px 10px;
	display: flex;
	align-items: center;
	height: auto;
	font-size: 0.9rem;
}

.fixed_link a:after {
	font-family: FontAwesome;
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: auto;
	text-align: center;
}

.fixed_link a.concept:after {
	content: "\f57d";
}

.fixed_link a.mission:after {
	content: "\e53f";
}

.fixed_link a.value:after {
	content: "\f5ac";
}

.fixed_link a.company:after {
	content: "\f1ad";
}

.fixed_link a.greeting:after {
	content: "\f118";
}

.fixed_link a.web:after {
	content: "\f7c0";
}

.fixed_link a.support:after {
	content: "\f05a";
}

.fixed_link a.seo:after {
	content: "\e473";
}

.fixed_link a.logo:after {
	content: "\e536";
}

.fixed_link a.dtp:after {
	content: "\f518";
}

.fixed_link a.system:after {
	content: "\f6ff";
}

.fixed_link a.system_web:after {
	content: "\f542";
}

.fixed_link a.system_technology:after {
	content: "\e69a";
}

.fixed_link a.ec:after {
	content: "\f07a";
}

.fixed_link a.ecbuild:after {
	content: "\f290";
}

.fixed_link a.ecmarket:after {
	content: "\f291";
}

@media (max-width: 1000px) {
	.main_footer p {
		font-size: 0.9rem;
	}
}

@media (max-width: 870px) {
	footer {
		padding: 2rem 0;
	}

	.list_footer {
		width: 100%;
	}
	
	.flex_footer {
		flex-direction: column;
		align-items: center;
	}

	.main_footer {
		flex-direction: column;
	}

	.list_footer .main_footer li {
		width: 100%;
	}

	.main_footer p {
		padding-left: 20px;
		background: #fff;
		border-bottom: 1px solid #333;
		color: #333;
		font-weight: 600;
	}

	.list_footer ul .sub_footer li:before {
		padding-left: 20px;
		color: #333;
	}

	.list_footer ul, .list_footer ul a {
		gap: 0;
	}

	.list_footer ul .sub_footer {
		padding-top: 0;
		gap: 0;
	}

	.list_footer ul .sub_footer li {
		line-height: 2.5rem;
		background: #f5f5f5;
		border-bottom: 1px solid #dedede;
		padding: 0;
	}

	.list_footer ul .sub_footer li a {
		color: #333;
		width: 100%;
	}

	.img_footer {
		width: 100%;
		max-width: 150px;
	}

	.contact_footer,.contact_header {
		margin: 50px auto;
		width: 100%;
	}

	.contact_footer a,.contact_header a {
		font-size: 1.3rem;
		margin: auto;
		max-width: 220px;
		width: 100%;
	}

	.contact_header a:after {
		content: none;
	}

	.list_footer ul li a:after {
		color: #333;
		right: 20px;
	}
}

@media (max-width: 600px) {
  nav {
    justify-content: center;
    margin-top: 1rem;
  }

  .cta {
    width: 100%;
    display: block;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
	.scroll_up_sp {
		position: fixed;
		right: 0;
		bottom: 80px;
		padding: 10px;
		z-index: 2;
		opacity: 0;
	}

	.scroll_up_sp a {
		text-decoration: none;
		display: flex;
		width: 50px;
		height: 50px;
		background: #f9ee4061;
		border-radius: 50%;
		justify-content: center;
		align-items: center;
	}
	.scroll_up_sp a:before {
		content: "\f077";
		font-family: FontAwesome;
	}
  #heroImageSp {
	  top: calc(50% + 120px);
	  max-width: 50%;
	 }
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .sns {
	  display: none;
  }

  .mobile-nav.open {
	  transform: translateY(0);
	  opacity: 1;
	  pointer-events: auto;
	 }

	.mobile-nav .list {
		display: flex;
		flex-direction: column;
		row-gap: 0;
	}

	.mobile-bottom {
		width: 100%;
		margin: auto;
	}

	.mobile-bottom img {
		width: 100% !important;
		max-width: 100px;
		margin: auto;
		display: block;
	}

  .hero-content h1 {
    font-size: 2rem;
  }

  .cta {
    width: 100%;
    text-align: center;
    max-width: 250px;
  }

  .logo {
    width: auto;
    height: 150px;
    max-height: 100%;
  }

  header {
    padding: 0.4rem 1rem;
  }

  .text_about, .text_about2,.text_work,.text_services,.text_news {
    font-size: 9vw;
  }
	.title_area img {
		width: 70vw;
		max-width: 400px;
		top: 10px;
	}

  .en_about,.en_services {
    font-size: 4vw;
  }

  #about .box {
    width: calc(100% - 20px);
    margin: 10px auto;
	  font-size: 16px;
  }

  .services, .works {
    gap:  1rem;
  }

	.services a {
		width: calc(100% - 1rem);
	}

  .services .flex {
    width: 100%;
    flex-direction: row;
    padding: 10px 20px;
  }

	.services .cnt_img {
		/* margin: auto 10px; */
	}

	.services .cnt_txt {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.services .flex p {
		font-size: 16px;
	}

	.services .flex p strong {
		line-height: 2rem;
		border-bottom: 1px solid;
		padding-bottom: 5px;
		font-size: 1.3rem;
	}

  #infinityPath,#movingDot {
    transform: scale(0.9);
  }

  .ifPc {
    display: none;
  }

  .ifSp {
    display: block;
  }

	#about .bg iframe {
		width: 100%;
	}

	#services .title_area img,
	#work .title_area img,
	#news .title_area img{
		width: 70vw;
		top: 10px;
	}

	#news .title_area img{
		width: 50vw;
		top: 10px;
	}

	#services .bg iframe {
		width: 100%;
	}

	.carousel-slide {
		flex: 0 0 100%;
	}

	#mainVisual {
		margin-top: 100px;
	}

	.carousel-slide-inner {
		padding: 10px;
	}

	.fixed_link_wrapper {
		top: auto;
		width: 100vw;
		bottom: 0;
		height: 75px;
	}

	.fixed_link {
		flex-direction: row;
		width: 100%;
		left: 0;
		height: 75px;
		background: #ffffff;
	}

	.fixed_link a {
		flex-direction: column;
		padding: 10px;
		gap: 10px;
		justify-content: center;
		width: 20%;
		font-size: 0.8rem;
		box-shadow: 1px 1px 6px 0 #00000047;
	}

	.fixed_link a:after {
	position: unset;
	}

	.btn_contact {
        bottom: 50%;
    }

	.work-iframe-container iframe,
	.work-iframe-container {
		max-height: 300px;
		margin: 0 auto;
	}

	.work-iframe-spacer {
		height: 500px;
	}
}

.soon {
	margin-top: 100px;
	padding: 50px;
	text-align: center;
}