/* ----------------------ファーストビュー---------------------- */
.fast {
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
}
.typo {
  flex: 0 0 38%;
  padding: 2vw 2vw 2vw 2vw;
  box-sizing: border-box;
}
.typo-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: clamp(16px, 1.5vw, 32px);
  font-size: clamp(22px, 8vw, 48px);
  font-weight: 700;
  font-family: 'Arial Black', sans-serif;
  align-items: center;
}
.txt.mental {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #7bbf6a;
  grid-column: 1;
  grid-row: 1;
}
.txt.system {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #4d6edb;
  grid-column: 1;
  grid-row: 2;
}
.txt.design {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #e35b4f;
  grid-column: 3;
  grid-row: 1;
}
.txt.interior {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #c9a650;
  grid-column: 3;
  grid-row: 2;
}
.txt.mental,
.txt.system {
  justify-self: end;
  text-align: right;
}
/* 真ん中のX */
.typo-cross {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  font-size: clamp(70px, 10vw, 100px);
  color: #cccccc;
  transform: translateY(2px);
}
/* 画像部分 */
.fast-img {
  position: relative;
  flex: 0 0 62%;
  overflow: hidden;
  aspect-ratio: 16 / 9; 
}
.fast-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 0s linear 1s;
}
.fast-img img:first-child {
  opacity: 1;
}
.fast-img img.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in-out;
}
.fast-img::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(35%, 260px);
  background: linear-gradient(to right,
              #ffffff 0%,
              rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .fast {
    position: relative;
    flex-direction: column;
    height: 50vh;
    width: 100%;
    overflow: hidden;
  }
  .fast-img {
    position: absolute;
    inset: 0;
    flex: none;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    z-index: 0;
  }
  .fast-img::before {
    display: none;
  }
  .fast::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.45);
    z-index: 1;
  }
  .typo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 0;
    width: 90%;
    z-index: 2;
  }
  .fast::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to right,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,0) 60%
    );
    z-index: 1;
  }
  .typo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2vw;
    justify-items: center;
    font-size: clamp(24px, 8vw, 36px);
  }
  .typo .txt {
    text-align: center;
    justify-self: center;
  }
}








/* ---------------------News＆Topic---------------- */
.n-t {
  max-width: 1200px;
  margin: 60px auto;
}
.n-t button{
  display: block;   
  margin: 0 auto;
}
/* コンテンツ3列配置 */
.n-cont,
.t-cont {
  flex: 0 0 calc(100% / 3);
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
  min-width: 0;
}
/* 画像サイズ統一 */
.n-cont img,
.t-cont img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.news,
.topics {
  margin-top: 50px;
  margin-bottom: 10px;
}


/* スライダー全体：左右ボタン＋中央窓 */
.slider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}
.slider-window {
  flex: 1;
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}
/* ← → ボタンの位置修正 */
.slider .prev,
.slider .next {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(45, 183, 63, 0.6);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
}
.slider .prev::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(-45deg);
}
.slider .next::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
}
.slider .prev:hover,
.slider .next:hover {
  background: rgba(45, 183, 63, 0.85);
  transform: translateY(-1px);
}


@media (max-width: 768px) {
  .slider {
    padding: 0 12px;
  }
  .n-cont,
  .t-cont {
    flex: 0 0 100%;
    padding: 0 6px;
  }
  .slider .prev,
  .slider .next {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

}



/* --------------------------Intoroduction-------------- */
.int {
  max-width: 1200px;
  margin: 60px auto;
}
.intro-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding:0.25em 1em;
  margin: 0 5%;
}
.intro-inner:before,
.intro-inner:after{ 
    content:'';
    width: 40px;
    height: 30px;
    position: absolute;
    display: inline-block;
}
.intro-inner:before{
    border-left: solid 4px #7bbf6a;
    border-top: solid 4px #7bbf6a;
    top:0;
    left: 0;
}
.intro-inner:after{
    border-right: solid 4px #7bbf6a;
    border-bottom: solid 4px #7bbf6a;
    bottom:0;
    right: 0;
}

/* イメージ */
.intro-image,
.intro-content {
  flex: 0 0 50%;
  padding: 20px;
}
.intro-image img {
  width: 100%;
}
.intro-content {
  flex: 1; 
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-right: 20px; 
}
.intro-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 28px;
}


@media (max-width: 768px) {
  .intro-inner {
    flex-direction: column;
    gap: 24px;
    margin: 0 10%;
  }

  .intro-image,
  .intro-content {
    flex: 0 0 100%;
  }
  .intro-content {
    max-width: 100%;
  }
  .intro-image img {
    max-width: 100%;
  }
  .int {
    text-align: center;
  }
  .int .entry.stand {
    margin: 0 auto;
  }
}














/* --------------------------各事業内容エリア-------------- */
.base-cont {
  margin: 20px 5%;
}
.business-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

/* 左側テキスト */
.business-left {
  position: relative;
  width: min(40vw, 360px); 
  aspect-ratio: 4 / 3; 
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  gap: clamp(8px, 2vw, 16px);
}
.business-left .txt {
  font-family: "Monoton", sans-serif;
  font-size: clamp(18px, 3vw, 32px);
  padding: 4px 14px;
  position: relative;
  z-index: 1;
}
.business-left .mental   { color: #7bbf6a; }
.business-left .design   { color: #e35b4f; }
.business-left .system   { color: #4d6edb; }
.business-left .interior { color: #c9a650; }
/* ★ 黒い移動ボックス */
.business-highlight {
  position: absolute;
  transition: transform 0.4s ease, width 0.4s ease, height 0.4s ease;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background: #111;
  border-radius: 12px;
  z-index: 0;
  pointer-events: none;
}
/* 右側テキスト */
.business-right {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  min-width: 260px;
}
.business-right p {
  margin: 4px 0;
}
.vbt {
  font-size: 16px;
}
.vbt-gradient-rb {
  font-weight: 700;
  font-size: clamp(14px, 1vw, 24px);
  background: linear-gradient(90deg, #67FFE6 0%, #1C4293 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height:1;
}
.vbt-gradient {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 40px);
  background: linear-gradient(90deg, #67FFE6 0%, #1C4293 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}



/* 画像コンテナ */
.business-img {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  margin-left: 50%;
  transform: translateX(-50%);
}
.business-img .img-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.business-img .img-wrap.active {
  opacity: 1;
}
.business-img .img-wrap img {
  width: 100%;
  object-fit: cover;
  display: block;
}
.business-img .img-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(30px, 8vw, 100px);
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}
.business-img .img-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(30px, 8vw, 100px);
  background: linear-gradient(
    to top,
    #ffffff 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* ボタングループ */
.page-btn {
  display: flex;
  margin:20px auto ;
}
.page-btn .entry {
  display: flex;
  margin:20px auto ;
}
a.btn_01,
a.btn_02,
a.btn_03,
a.btn_04 {
	display: block;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	width: 120px;
	margin: auto;
	padding: 1rem 4rem;
	font-weight: bold;
	border-radius: 100% 80px / 80px 100%;
	color: #ffffff;
  font-size: 28px;

  animation: brAnime 1.6s infinite ease-in-out alternate;
  transition: all 0.3s ease;
}
@keyframes brAnime {
  0% {
    border-radius: 100% 80px / 80px 100%;
  }
  50% {
    border-radius: 70% 100px / 60px 90%;
  }
  100% {
    border-radius: 90% 60px / 100px 70%;
  }
}

a.btn_01 {
  display: inline-block;
  text-align: center;
  padding: 1rem 4rem;
  font-family: "Monoton", sans-serif;
  color: #7bbf6a;
  text-decoration: none;
  font-weight: 400;
  background: transparent;
  border: 2px solid #7bbf6a;
  border-radius: 100% 80px / 80px 100%;
  transition: all 0.3s ease;
}
a.btn_01:hover {
	border-bottom: 1px solid #7bbf6a;
	color: #7bbf6a;
  animation-play-state: paused;
  cursor: pointer;
}
a.btn_02 {
  display: inline-block;
  text-align: center;
  padding: 1rem 4rem;
  font-family: "Monoton", sans-serif;
  color: #b95148;
  text-decoration: none;
  font-weight: 400;
  background: transparent;
  border: 2px solid #b95148;
  border-radius: 100% 80px / 80px 100%;
  transition: all 0.3s ease;
}
a.btn_02:hover {
	border-bottom: 1px solid #b95148;
	color: #b95148;
  animation-play-state: paused;
  cursor: pointer;
}
a.btn_03 {
  display: inline-block;
  text-align: center;
  padding: 1rem 4rem;
  font-family: "Monoton", sans-serif;
  color: #0686b2;
  text-decoration: none;
  font-weight: 400;
  background: transparent;
  border: 2px solid #0686b2;
  border-radius: 100% 80px / 80px 100%;
  transition: all 0.3s ease;
}
a.btn_03:hover {
	border-bottom: 1px solid #0686b2;
	color: #0686b2;
  animation-play-state: paused;
  cursor: pointer;
}
a.btn_04 {
  display: inline-block;
  text-align: center;
  padding: 1rem 4rem;
  font-family: "Monoton", sans-serif;
  color: #9e833e;
  text-decoration: none;
  font-weight: 400;
  background: transparent;
  border: 2px solid #9e833e;
  border-radius: 100% 80px / 80px 100%;
  transition: all 0.3s ease;
}
a.btn_04:hover {
	border-bottom: 1px solid #9e833e;
	color: #9e833e;
  animation-play-state: paused;
  cursor: pointer;
}


@media (max-width: 768px) {
  .business-area {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .business-img,
  .business-img .img-wrap {
    width: 100%;
      height: 20vh;
  }
  .business-left {
    width: min(70vw, 320px);
    aspect-ratio: 0;
  }

  .business-right {
    text-align: center;
    font-size: 12px;
  }
  .page-btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 90%;
    margin: 20px auto;
  }
  .page-btn a {
    width: 100%;
    padding: 12px 10px;
    font-size: 16px;
    box-sizing: border-box;
  }
}




/* ------------youtube------------------ */
.youtube {
  position: relative;
  width: 100%;
  min-height: 320px;
  margin: 40px 0;
  padding: 60px 6% 70px;
  box-sizing: border-box;
  background: linear-gradient(45deg, #da3020, #e67a70, #f3aaa4);
  background-size: 300% 300%;
  animation: gradientMove 4s ease-in-out infinite;
  overflow: hidden;
}

/* グラデーションアニメーション */
@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.yt-avatar {
  position: absolute;
  left: 4%;
  bottom: 0;
  transform: translateY(10%);
}
.yt-avatar img {
  max-height: 600px;
  height: 80vh;
  width: auto;
  object-fit: contain;
}
.yt-title,
.yt-channel-img {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.back-text {
  font-family: "Monoton", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  font-size: 6vw;
  margin-bottom: 20px;
}
.yt-channel-img {
  display: block;
  width: 60%;
  max-width: 720px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}
.entry.stand {
  display: block;
  margin: 0 auto;
}


@media (max-width: 768px) {
  .youtube {
    margin: 20px 0 10px 0;
    padding: 20px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .yt-main {
    order: 1;
    margin-bottom: 0; 
  }
  .yt-avatar {
    order: 2;
    position: static;
    transform: none;
    margin: 10px 0 0;
  }
  .yt-avatar img {
    max-height: 260px;
    height: auto;
    width: auto;
  }
  .yt-channel-img {
    order: 3;
    width: 90%;
    max-width: none;
    margin-top: -20px;
  }
  .back-text {
    font-size: 14vw;
    margin-bottom: -40px;
  }
}



/* ----------------------Others & Contact --------------- */
.oc-section {
  padding: 60px 6%;
  background: #ffffff;
}
.oc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  align-items: stretch;
}
.oc-inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #999;
  transform: translateX(-50%);
}
.oc-block {
  flex: 1 1 50%;
  text-align: center;
  padding: 0 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* 画像エリア */
.oc-body {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.oc-image {
  max-width: 260px;
  width: 100%;
  height: auto;
}
.oc-btn {
  display: inline-block;
  padding: 10px 26px;
  font-size: 14px;
  color: #555;
  background: #f2f2f2;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.oc-btn:hover {
  background: #7bbf6a;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
@media (max-width: 768px) {
  .oc-others h2 {
    margin: 0 auto;
  }
  .oc-inner {
    flex-direction: column;
    gap: 40px;
  }
  .oc-inner::before {
    display: none;
  }
  .oc-block {
    padding: 0 10px;
  }
  .oc-title {
    font-size: 26px;
  }
  .oc-image {
    max-width: 220px;
  }
}











