/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}

/* 基本設定 */
body {
  font-family: 'Open Sans', sans-serif;
  background: #F5F5F5; 
  color: #333;
  padding-top: 6rem; 
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section[id] {
  scroll-margin-top: 6rem;
 } 

 :root {
  --color-main:   #333;     /* メイン＝黒 */
  --color-text:   #FFFFFF;     /* サブ＝白 */
  --color-accent: #00B4D8;     /* アセント＝ターコイズブルー */
  --color-muted:  rgba(255,255,255,0.6);
}

/*                 */
/*    ヘッダー     */
/*                */


.header {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
   background-color: rgba(255, 255, 255, 0.8);      
  z-index: 1000;   
  border-bottom: 2px solid #00B4D8; 
}

.header-inner {
  z-index: 1000;     
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo img {
  height: 3.5rem;   
  width: auto;
}
.nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.nav-list li {
  opacity: 0;
  transform: translateX(-100px);
}

.nav-list a {
  position: relative;
  color: #333333;      
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #00B4D8;  
  transition: width 0.3s ease;
}
.nav-list a:hover {
  color: #00B4D8;
}
.nav-list a:hover::after {
  width: 100%;
}
/*                   */
/* ヒーローセクション */
/*                  */
.hero {
  background-color: #fff;
}

.hero-inner {
  width: 90%;
  max-width: 1800px;
  margin: 0 auto;  ; 
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  z-index: 1;
}

.hero-grid img {
  width: 100%;     
  aspect-ratio: 16/9;
  object-fit: cover;

}

/* テキスト＆ボタン */

.hero-content {
  margin:1rem 0;
  margin-left: 4rem;
  pointer-events: none;

}

.hero-heading {
  display: inline-flex;      
  align-items: center;       
  gap: 0.5rem; 
                  
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  color: #161616;

}

.emphasis {
  position: relative;
  display: inline-block;
  padding: 0 0.1em;
  z-index: 1;
}

/* マーカーの見た目をつくる疑似要素 */
.emphasis.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #00B4D8;
  transform: skewX(-10deg) scale(var(--em-scale, 0.8));
  opacity: var(--em-opa, 0);
  border-radius: 2px;
  z-index: -1;
}

.hero-surprise {               
  transform: scale(0);    
  transform-origin: center center;
  opacity: 0;                            
}

.hero-surprise img {
  width: 8rem;      
  height: auto;
  vertical-align: middle;
}

.hero-line {
  width: 90%;
  height: 4px;
  background: #00B4D8;
  transform-origin: left center;  
  transform: scaleX(0);          
}
.hero-subtext {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 1rem;
  color: rgb(42, 42, 42,646);
  z-index: 1;
  pointer-events: none;
}

.btn {
  position: relative; 
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: #00B4D8;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  pointer-events: fill;
  overflow: hidden;          /* 擬似要素がはみ出ないように */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 擬似要素で光のスライドをつくる */
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.4) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  transition: transform 0.6s ease;
}

/* ホバー時 */
.btn:hover {
  background: #00a6cd;                           /* ベース色をちょい変えて深みを出す */
  box-shadow: 0 0 15px rgba(0,180,216,0.6);      /* 発光感アップ */
}

/* 擬似要素を右から左にスライド */
.btn:hover::before {
  transform: translateX(200%) skewX(-20deg);
}

/* レスポンシブ */
@media (max-width: 1023px) {
  .hero-title { font-size: 3rem; }
  .hero-subtext { font-size: 1.125rem; }
}
@media (max-width: 767px) {
  .hero-title { font-size: 2.25rem; }
  .hero-subtext { font-size: 1rem; }
  .btn { font-size: 0.875rem; padding: 0.75rem 1.5rem; }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3.5px;
  margin: 4.5px 0;
  background: var(--color-main);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ハンバーガー展開時の見た目 */
.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* レスポンシブ */
@media (max-width: 767px) {
  .header-inner {
    padding: 0.5rem 0;
  }
  .logo img {
    height: 2.2rem;
  }
  .hamburger {
    display: flex;
    margin-right: 0.5rem;
  }
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 65vw;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.08);
    transform: translateX(-105%);
    transition: transform 0.3s;
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    padding-top: 4.5rem;
  }
  nav.active {
    transform: translateX(0%);
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-list li {
    opacity: 1 !important; /* スマホは即表示 */
    transform: none !important;
    border-bottom: 1px solid #f1f1f1;
    width: 100%;
  }
  .nav-list a {
    display: block;
    width: 100%;
    padding: 1.2rem 1rem;
    font-size: 1.1rem;
    color: var(--color-main);
    background: none;
    text-align: left;
  }
}

/* ヒーロー：スマホで2列、余白・サイズ調整 */
@media (max-width: 767px) {
  .hero-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    width: 97%;
    max-width: 100vw;
  }
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .hero-content {
    margin: 0.5rem 0 0 0;
  }
}



/* about  worksセクション */
.about-works {
  position: relative;
  width: 100%;
  height: auto;
  margin: 5rem auto;
  padding: 4rem 0;
  padding-bottom: 7rem;
  background: radial-gradient(
    circle at center 30%,
    #333 0%,   
    #111 80%  
  );
}

/* セクションタイトル */

.section-title {
  position: relative;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  display: inline-block;
  border-bottom: 4px solid #00B4D8; /* アクセント */
  padding-bottom: 0.5rem;
  overflow: hidden;
  z-index: 2;
}

.about-works .section-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateX(-20px);
}

.about-works .container {
  width:      90%;
  max-width:  1200px;
  margin:     0 auto;
  color:   #fff;
} 
/* カルーセル用スタイル */


.works-carousel {
  position: relative;
  display: block;       
  justify-content: unset;
  align-items: unset;
  height: 400px;        
  min-height: auto;     
  margin: 0 auto;       
  transform-style: preserve-3d;
  z-index: 2;
}

.about-works .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.1) 0%,
    rgba(0,0,0,0.7) 70%
  );
  pointer-events: none;
  z-index: 1;
}

.works-track {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  perspective: 500px;
  transform: translate3d(0,0,0);
  width: 100%;
  height: 400px;
}

/* 各カード共通 */
.item {
  position: absolute;
  top: calc(50% - 150px);
  left: calc(38% - 100px);
  width: 480px;
  height: 300px;
  background-color: #fff;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  transform-origin: bottom;
  user-select: none;
  -webkit-box-reflect: below 1px linear-gradient(transparent, transparent, #0002);
  transition: all 0.8s ease, opacity 0s;
  overflow: hidden;  
}

/* 左端のカード */
.item-1 {
  transform: translate3d(-250px, 0, 0)
             scale(0.8)
             rotateY( 25deg);
  z-index: 1;
}

/* 真ん中のカード */
.item-2 {
  transform: translate3d(   0px, 0, 0)
             scale(1)
             rotateY(  0deg);
  z-index: 2;
  opacity: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-2:hover {
  transform: translate3d(0, 0, 20px) scale(1.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

/* 右端のカード */
.item-3 {
  transform: translate3d( 250px, 0, 0)
             scale(0.8)
             rotateY(-25deg);
  z-index: 1;
}

.item-1, .item-3 {
  filter: brightness(0.6) blur(2px);
}

.item img{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 説明エリア */
.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

/* タイトル */
.card-title {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

/* 説明文 */
.card-desc {
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
  color: #fff;
}

/* ホバーで説明をスライドアップ */
.item:hover .card-content {
  transform: translateY(0);
}

/* ボタン */
.button-container {
  position: absolute;      
  left: 50%;             
  transform: translateX(-50%); 
  display: flex;
  gap: 1rem;
  z-index: 10;       
}
.button-container span {
  position: relative;
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.5;
}
.button-container span:hover {
  opacity: 1;
}

.button-container span::before {
  content: '';
  position: absolute;
  left: 20px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  rotate: -45deg;
}

.button-container span:last-child:before {
  content: '';
  position: absolute;
  left: initial;
  right: 20px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  rotate: 135deg;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .works-carousel {
    height: 250px;
    min-height: auto;
  }
  .works-track {
    height: 250px;
  }
  .item {
    width: 90vw;
    max-width: 330px;
    left: 50%;
    top: calc(50% - 100px);
    transform: translateX(-50%) scale(1) rotateY(0deg) !important;
    filter: none !important;
    z-index: 2 !important;
  }
  .item-1,
  .item-3 {
    display: none;
  }
  .button-container span {
    width: 38px;
    height: 38px;
  }
}



/* プロフィールセクション */

/* 共通のコンテナ */
.profile-section .container {
 max-width: 1000px;
}

/* セクション全体 */
.profile-section {
  background: var(--color-main);
  color: var(--color-text);
  padding: 5rem 0; 
}


.profile-section .section-title {
  font-size: 2.5rem;
  color: var(--color-text);
  border-bottom: 4px solid var(--color-accent);
  padding-bottom: .5rem;
  margin-bottom: 2rem;
}

/* プロフィールのレイアウト */
.profile-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* 写真部分 */
.profile-image {
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  border: 4px solid var(--color-accent);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  margin: 0 auto 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* これで必ず「正円」！ */
  border-radius: 50%;
  display: block;
}

.profile-image:hover {
  transform: scale(1.05);
}
/* テキスト部分 */
.profile-name {
  font-size: 1.75rem;
  color: var(--color-text);
  margin-bottom: .75rem;
}

.profile-text {
  margin-top: 2rem;
  flex: 1;               
}
.profile-text p {
  line-height: 1.8;
  color: var(--color-text);
  opacity: 0.9;
}
.profile-text p a {
  color: var(--color-accent);
  text-decoration: underline;
}

.date-counter-wrapper {
  position: absolute;
  left: calc(200px + 1rem);
  top: 0;
  transform: translateY(-50%);
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  font-weight: 600;
  color: #00B4D8;  
  white-space: nowrap;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .profile-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .profile-image {
    margin: 0 auto 1.5rem;
  }
  .profile-text { text-align: left; }
}


@media (max-width: 768px) {
  .profile-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
  }
  .profile-image {
    margin: 0 auto 1rem;
    width: 130px;
    height: 130px;
    min-width: 130px;
    min-height: 130px;
  }
  .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .profile-text {
    margin: 0;
    text-align: left;
    font-size: 0.97rem;
  }
  .profile-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  .date-counter-wrapper {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0.7rem auto 0 auto;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
  }
  
}

/* さらに超小型端末 */
@media (max-width: 480px) {
  .profile-image {
    width: 90px;
    height: 90px;
    min-width: 90px;
    min-height: 90px;
  }
  .profile-name {
    font-size: 1rem;
  }
  .date-counter-wrapper {
    font-size: 1rem;
  }
  .profile-section .section-title {
    font-size: 1.5rem;
    padding-bottom: .3rem;
    margin-bottom: 1.1rem;
  }
}


.moving-divider {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  background-size: 200% 100%;
  animation: moveDivider 3s linear infinite;
  margin: 0;
  background-color: var(--color-main); /* 背景をメインカラーに */
  position: relative;
  z-index: 1;
}
@keyframes moveDivider {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}



/* スキル */

.skills-section {
  position: relative;
  background-color: var(--color-main);
  padding: 6rem 0;
  color: var(--color-text);
}

.skills-section .container {
  color: var(--color-text);
}
.skills-section .section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.skills-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.skill-item {
  flex: 1 1 300px;
  background: rgba(255, 255, 255, 0.257);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative; 
}
.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), inset 0 0 20px rgba(255,255,255,0.05);
}
.skill-name {
  font-size: 1.3rem;
  color: var(--color-text);
  position: relative;
  padding-left: 2rem;
}
.skill-name::before {
  content: "★";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 1.2rem;
}
.skill-detail {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-top: 1rem;
}


@media (max-width: 768px) {
  .skills-list {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .skills-list {
    flex-direction: column;
    gap: 1rem;
  }
  .skill-item {
    flex: unset;         
    min-height: 170px;       
    height: auto;        
    padding: 1rem;       
  }
}

/* コンタクト */
.contact-section {
  background-color: #fff;
  padding: 6rem 0;
}
.contact-section .container {
  width: 90%; max-width: 600px;
  margin: 0 auto;
  color: #333;
}
.contact-section .section-title {
  font-size: 2.5rem;
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
  padding-bottom: 0.5rem;
}
.contact-section .section-title::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  bottom: 0;
  width: 4px;
  height: 100%;
  background-color: #00B4D8;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.btn-submit {
  display: inline-block;
  background-color: #00B4D8;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.btn-submit:hover {
  background-color: #0095b6;
}


/* フッター */



.site-footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}
.site-footer .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Back to Top ボタン */
.back-to-top {
  display: inline-block;
  margin-bottom: 1rem;
  color: #00B4D8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
.back-to-top:hover {
  color: #0095b6;
}
/* 全ページ共通でスムーススクロール */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-main);
  color: var(--color-text);
}
.work-detail-section {
  padding: 6rem 0 3rem;
}
.work-card {
  background: rgba(255,255,255,0.07);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  padding: 3rem 2rem 2rem;
  backdrop-filter: blur(2px);
  position: relative;
  animation: fadeInUp 1.1s cubic-bezier(.19,.92,.63,1.01);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px);}
  to   { opacity: 1; transform: none;}
}
.work-title {
  font-size: 2.1rem;
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  letter-spacing: .03em;
  padding-bottom: .3rem;
}
.work-image {
  text-align: center;         
  margin-bottom: 1.4rem;
}

.work-image img {
  display: inline-block;
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 2px 20px rgba(0,180,216,0.10);
  
}
.work-image figcaption {
  font-size: .97rem;
  color: var(--color-muted);
  margin-top: .7rem;
  text-align: center;
}
.work-description, .work-details {
  margin-bottom: 1.6rem;
}
.work-description h2, .work-details h2 {
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: .6rem;
}
.work-details ul {
  margin: 0;
  padding-left: 1.4em;
  color: var(--color-text);
}
.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .7em 1.6em;
  background: var(--color-accent);
  color: #fff;
  border-radius: 2em;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 2em;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 18px 0 rgba(0,180,216,0.13);
}
.demo-btn:hover {
  background: #009cc36f;
  transform: translateY(-2px) scale(1.05);
  
}

.btn-back {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 1rem;
  display: inline-block;
  margin-top: 1.5rem;
  transition: color .18s;
}
.btn-back:hover {
  color: #fff;
}


@media (max-width: 650px) {
  .work-card {
    padding: 2rem 0.7rem;
  }
  .work-title { font-size: 1.25rem; }
  .work-image img { max-width: 95vw; }
}
