@charset "utf-8";
html{
scroll-behavior:smooth;
}

html{
scroll-behavior:smooth;
}

:root {
      --primary-color: #1c8c87;
      --primary-light: #4fc3bd;
      --primary-bg: #e6f7f6;
      --accent-color: #ff8d22;
      --text-dark: #413229;
      --bg-light: #f7f7f7;
      --glass-white: rgba(255, 255, 255, 0.25);
    }
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}
body{
margin:0;
font-family:sans-serif;
background:#1c8c87;
color: #413229;
overflow-x: hidden;
}


/* HEADER */

.header{
position:fixed;
top:0;
left:0;
width:100%;
padding-top: 10px;
z-index:1000;
}

.header-inner{

max-width:1200px;
margin:auto;

display:flex;
align-items:center;
justify-content:space-between;

gap:20px;
}

/* ナビカード ガラスナビ */

.nav-card{

display:flex;
align-items:center;
background:rgba(255,255,255,0.25);
backdrop-filter:blur(14px);
border-radius:24px;
border:1px solid rgba(255,255,255,0.4);
box-shadow:0 8px 30px rgba(0,0,0,0.15);
height:80px;
}

.nav-card:hover{
box-shadow:20px 40px 40px rgba(0,0,0,0.3);
}

/* ロゴ */

.logo{
transform:scale(1.2);
transform-origin:left center;
}

.logo a {
  display: inline-block;
}

.logo img{
width:150px;
height:auto;
animation:floatLogo 4s ease-in-out infinite;
filter:drop-shadow(0 8px 12px rgba(0,0,0,0.2));
}

@keyframes floatLogo{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-8px);
}

100%{
transform:translateY(0px);
}

}
/* メニュー */

.nav-menu{
display:flex;
list-style:none;
z-index:1;
}

.nav-menu a{

display:flex;
flex-direction:column;

align-items:center;
justify-content:center;

padding:0 20px;
height:80px;

text-decoration:none;
color:#413229;

transition:.3s;
}


.nav-menu li{
  border-right:1px solid rgba(255,255,255,0.6);
}

.nav-menu li:last-child{
  border-right:none;
}

.nav-menu img{
width:80px;
height:40px;
margin-bottom:6px;
}

/* 文字 */

.nav-menu span{
font-size:14px;
letter-spacing:0.05em;
}

/* ホバー */

.nav-menu li:hover{
background:#ff8d22eb;
border-radius:20px;
}

.nav-menu li:hover span{
color:white;
}

/* ハンバーガー */

.menu-btn{
width:80px;
height:80px;
background:#1c8c87;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:6px;

cursor:pointer;

border-radius:18px;          /* 角丸 */
transition:0.3s;             /* アニメーション */
}

.menu-btn:hover{
background:#222;
transform:translateY(-3px);
box-shadow:0 20px 30px rgba(0,0,0,0.6);
}

.menu-btn span{
width:26px;
height:3px;
background:white;
border-radius:2px;
transition:0.3s;
}

/* ハンバーガーアニメーション */

.menu-btn span{
transition:0.3s;
}

/* 1本目 */

.menu-btn.active span:nth-child(1){
transform:translateY(9px) rotate(45deg);
}

/* 2本目 */

.menu-btn.active span:nth-child(2){
opacity:0;
}

/* 3本目 */

.menu-btn.active span:nth-child(3){
transform:translateY(-9px) rotate(-45deg);
}

/* 全体（レール） */
.scroll-indicator{
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);

  width: 2px;
  height: 380px;

  background: rgba(255,255,255,0.15);
  border-radius: 10px;

  z-index: 999;
}

.scroll-arrow{
  font-size: 12px;
  color: #00ff55;
  margin-top: 5px;
  position: absolute;
  
  left: 50%;
  transform: translateX(-50%);
}

/* 動くバー */
.scroll-bar{
  position: absolute;
  width: 100%;
  height: 0%;
  background: #00ff55;
  border-radius: 10px;

  transition: height 0.1s linear;
  box-shadow: 0 0 10px #00ff55;
}

/* 丸 */
.scroll-thumb{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);

  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ff55;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 0 10px #00ff55;
}

.scroll-text{
  position: absolute;
  right: 10px; 
  
  writing-mode: vertical-rl;
  text-orientation: mixed;

  font-size: 10px;
  letter-spacing: 3px;
  color: #00ff55;

  margin-bottom: 10px;
  animation: scrollBlink 1.5s infinite;
}
@keyframes scrollBlink{
  0%,100%{opacity:0.3;}
  50%{opacity:1;}
}


.to-top{
  position: fixed;
  bottom: 60px;
  right: 60px;

  width: 100px;
  height: 100px;

  display: grid;
  place-items: center;
  z-index: 999;
}

/* 円テキスト */
.to-top .circle-text{
  position: absolute;

  width: 100px;
  height: 100px;

  /* ←中央配置をシンプルに */
  top: 0;
  left: 0;

  animation: spin 15s linear infinite;
}


/* 文字 */
.to-top .circle-text span{
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  transform-origin: 0 50%;
  font-size: 10px;
  color: #ff8d22eb;

  margin: 0;
  padding: 0;
}

/* 矢印（完全中央固定） */
.to-top .to-top-arrow{
  position: absolute;
  inset: 0; 
  color: #ff8d22eb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  z-index: 10;
}

@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* メイン */

.project-bg-text{
  position: absolute;
  left: 120px;
  top: 30%;
  transform: translateY(-50%);
  z-index: 1;
  opacity: 0.2; /* ←うっすらがポイント */
}

/* 画像を縦にする */
.project-bg-text img{
  max-width: 600px;
  transform: rotate(90deg);
  transform-origin: left top;
  
}

.service-sticky{
  display: flex;
  gap: 30px;
  align-items: flex-start; 
}

.service-block{
  margin-right: 80px;
  min-height: 50vh;  
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* タイトル */
.sticky-left{
  position: sticky;
  top: 220px;

  display: flex;
  flex-direction: column;
  align-items: center;   /* ←横中央 */
  justify-content: center;

  margin: 100px auto 20px; /* ←ブロック自体も中央 */
  padding: 0;
  margin-left: 60px;
  margin-right: 60px;
  max-width: 50%;

  text-align: center;

  font-size: 42px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #413229;
  text-shadow: 0 0 20px rgba(7, 7, 7, 0.6);
}

.sticky-left img{
  width: 450px;
  margin-left: 40px;
  margin-top: 30px;
  margin-bottom: 60px;
  border-radius: 50px;
}

.sticky-left p{
  font-size: 46px;
  margin-top: 10px;
  align-items: center;
}

/* 右 */
.sticky-right{
  flex: 1;
  margin-top: 100px;
  letter-spacing: 0.1em;
}


.service-block{
  background: none;
  box-shadow: none;
  backdrop-filter: none;

  border-bottom: 1px solid rgba(0,0,0,0.1);

  padding: 20px 0;
  margin-bottom: 20px;

  transition: 0.3s;
}

/* ホバーでライン強調 */
.service-block:hover{
  border-bottom: 1px solid #00ff55;
}

/* タイトル */
.service-block h3{
  font-size: 32px;
  margin: 5px 0 10px;
  letter-spacing: 0.1em;
}

/* 説明 */
.service-block p{
  font-size: 24px;
  margin: 5px 0 10px;
  opacity: 0.8;
}

/* リスト */
.service-block ul{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.service-nav li a{
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 20px;
  text-decoration: none;
  color: #f7f7f7;
  transition: 0.3s;
}

.service-nav li a:hover{
  border-color: #00ff55;
  color: #00ff55;
  background: rgba(0,255,85,0.06);
}

/* フェードは軽く */
.fade-up{
  opacity: 0;
  transform: translateY(10px);
  transition: 0.5s ease;
}

.fade-up.show{
  opacity: 1;
  transform: translateY(0);
}

/* スライダー */

.service-slider{
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.service-slider::before,
.service-slider::after{
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.service-slider::before{
  left: 0;
  background: linear-gradient(to right, #1c8c87, transparent);
}

.service-slider::after{
  right: 0;
  background: linear-gradient(to left, #1c8c87, transparent);
}

.slider-track{
  display: flex;
  width: max-content;
  animation: sliderLoop 20s linear infinite;
  will-change: transform; 
}

/* 画像 */
.slider-track img{
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 20px;
  border-radius: 12px;
  transition: 0.3s;
  opacity: 0.8;
}

.slider-track img:hover{
  transform: scale(1.05);
  opacity: 1;
}

/* 無限スクロール */
@keyframes sliderLoop{
  0%{
    transform: translateX(0);
  }
  100%{
    transform: translateX(-50%);
  }
}

.service-detail{
  position: relative;
  padding: 120px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* アクティブ位置の線 */
.service-detail .active-line{
  position: absolute;
  left: calc(95px + 15px); /* ←今の中央位置そのまま */
  width: 1px;
  height: 60px;

  background: #00ff55;
  border-radius: 10px;

  box-shadow: 0 0 10px #00ff55;

  transition: top 0.3s ease, height 0.3s ease;
}

html{
  scroll-behavior: smooth;
}
/* ブロック */
.service-item{
  position: relative;
  display: flex;
  gap: 30px;
  padding: 30px 0;
  scroll-margin-top: 120px;
}

.service-detail::before,
.service-detail::after{
  left: calc(105px + 15px);
}

/* 番号（でかくて薄い） */
.num{
  font-size: 60px;
  font-weight: bold;
  opacity: 0.2;
  width: 80px;
  flex-shrink: 0;
  text-align: right;
}

/* コンテンツ */
.content{
  flex: 1;
}

/* タイトル */
.content h2{
  font-size: 26px;
  letter-spacing: 1px;
}

/* キャッチ */
.content h4{
  font-size: 18px;
  color: #00ff55;
  margin: 5px 0 10px;
}

/* 本文 */
.content p{
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.75;
}

/* ホバーでちょい動き */
.service-item:hover{
  transform: translateX(8px);
  transition: 0.3s;
}

/* フェード */
.fade-up{
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}

.fade-up.show{
  opacity: 1;
  transform: translateY(0);
}


/* footer */

.footer{
background:#1c8c87;
color:#f7f7f7;
padding:60px 20px;
}

.footer-inner{
max-width:1100px;
margin:auto;
text-align:center;
}

.footer-logo{
font-size:20px;
font-weight:bold;
margin-bottom:30px;
}

.footer-logo img{
  width: 100px;
}
.footer-nav{
display:flex;
justify-content:center;
gap:30px;
margin-bottom:30px;
}

.footer-nav a{
color:#f7f7f7;
text-decoration:none;
opacity:0.8;
}

.footer-nav a:hover{
opacity:1;
}

.copyright{
font-size:14px;
opacity:0.6;
}


/* ===== overlay ===== */

.overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100vh;

background:rgba(0,0,0,.4);

opacity:0;
visibility:hidden;

transition:.3s;
}

#menu-btn:checked ~ .overlay{
opacity:1;
visibility:visible;
}

#menu-btn:checked + .btn span{
background:transparent;
}

#menu-btn:checked + .btn span::before{
transform:rotate(45deg);
}

#menu-btn:checked + .btn span::after{
transform:rotate(-45deg);
}


/* ===== hamburger ===== */

#menu-btn{
display:none;
}

.btn{
display:flex;
align-items:center;
justify-content:center;

width:60px;
height:60px;
background:#1c8c87;
backdrop-filter:blur(10px);
cursor:pointer;
border-radius:50%;
box-shadow:0 8px 20px rgba(0,0,0,.15);
cursor:pointer;
z-index:2000;
}

.btn span{
display:block;
width:34px;
height:3px;
background:#fff;
position:relative;
}

.btn span::before,
.btn span::after{
content:"";
position:absolute;
left:0;
width:32px;
height:3px;
background:#333;
transition:.3s;
}

.btn span::before{
top:-10px;
}

.btn span::after{
top:10px;
}

#menu-btn:checked + .btn span{
background:transparent;
}

#menu-btn:checked + .btn span::before{
transform:rotate(45deg);
top:0;
}

#menu-btn:checked + .btn span::after{
transform:rotate(-45deg);
top:0;
}



/* レスポンシブ */
@media (max-width:900px){

  .logo img{
    width: 100px;
  }


/* ハンバーガー */

.btn{
display:flex;
}

.nav-menu{
flex-direction:column;   /* ←縦並び */
align-items:flex-start;  /* ←左揃え */
gap:30px;

width:100%;

}

.nav-menu li{
    border-right:none;
    border-bottom:1px solid rgba(255,255,255,0.3);
    width:100%;
  }

  .nav-menu li:last-child{
    border-bottom:none;
  }


/* ナビカード */

.nav-card{
position:fixed;

top:0;
left:-100%;

width:50%;
height:60vh;

background:rgba(255,255,255,0.3);
backdrop-filter:blur(10px);

flex-direction:column;
justify-content:center;

transition:.3s ease;
}

#menu-btn:checked ~ .nav-card{
left:0;
}

.hero-logo{
width:260px;
}

.project-inner h2{
font-size:28px;
}

.service-sticky{
  padding: 60px 20px;
    flex-direction: column; /* ←縦にする */
  }

  .sticky-left{
    position: static; 
    margin: 40px auto; 
    padding: 0 20px;

    max-width: 100%;
    text-align: center;

    font-size: 32px;
    line-height: 1.6;
  }

  .sticky-left img{
    width: 100%;
    max-width: 300px;
  }

  .sticky-left p{
    font-size: 24px;
  }

  .sticky-right{
    margin-top: 30px;
  }

  .service-block{
    margin-right: 0;
    padding: 15px 0;
  }

  .service-block h3{
    font-size: 22px;
  }

  .service-block p{
    font-size: 16px;
  }


.slider-track img{
    width: 200px;
    height: 140px;
  }

  .service-item{
    flex-direction: column;
    gap: 10px;
  }

  .num{
    font-size: 40px;
    text-align: left;
  }

  .active-line{
    display: none;
  }

  .container{
  padding: 60px 20px;
}

}


@media (min-width:901px){

.btn{
display:none;
}
}

