* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;}
  :root {
    --themecolor:#D4A24C;
    --maincolor:#333;
    --subcolor:#fff;
    --sidecolor:#f0f0f0;
  }
  body {
    font-family: 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--maincolor);
    background-color: var(--subcolor);
  }
  section {
    padding: 60px 20px;
    text-align: center;}
  h2 {
    font-size: 1.6rem;
    font-weight: 600;
    display: inline-block; /* ← 文字幅に合わせる */
    border-bottom: 2px solid var(--themecolor);
    padding-bottom: 6px;
    margin-bottom: 20px;
    color: var(--maincolor);
  }
  a:hover {
    opacity: 0.8;
  }
  .cta-buttons {
    margin-top: 20px;}
  .btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 24px;
    background-color: var(--themecolor);
    color: var(--subcolor);
    text-decoration: none;
    border-radius: 4px;
  }
  .btn.secondary {
    background-color: #555;
  }
  .contact {
    background-color: #f0f0f0;
  }
  .feature-list , .portofolio-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;}
  .p-text {
    margin-bottom: 20px;
  }
  .portfolio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;}
.portfolio-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* これがポイント！ */
    height: 100%; /* 高さは親の中で均一になる */
    min-height: 320px; /* 必要に応じて調整 */
  }
  
  .feature-item h3 , .portfolio-item h3{
    font-size: 1.2rem;
    margin-bottom: 5px;}
  .feature-item img , .portfolio-item img{
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;}
  .circle-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #555;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto 12px auto;  /* ← これで中央揃え */
    display: block;            /* ブロック化が必要 */  
  }
  .project-link-box {
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 6px;
    text-align: center;
    transition: background-color 0.3s;
  }
  .project-link-box a {
    text-decoration: none;
    color: #2C3E50;
    font-weight: 600;
  }
  .project-link-box:hover {
    background-color: #f0f0f0;
  }
  footer {
    background-color: #333;
    color: #fff;
    padding: 100px 10px;
    text-align: center;
  }
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;}
  .footer-socials {
    display: flex;
    gap: 16px;
    justify-content: center;}
  .sns-icon {
    width: 32px;
    height: 32px;
    /* filter: grayscale(100%) brightness(150%);
    transition: transform 0.3s ease, filter 0.3s ease; */
  }
  .sns-icon:hover {
    /* transform: scale(1.1); */
    filter: none;}
  .footer-copy {
    font-size: 0.9rem;
    opacity: 0.8;
    padding-bottom: 20px;}
  .fixed-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    text-align: center;
    padding: 18px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }
  .fixed-cta a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 24px;
    background-color: #D4A24C;
    border-radius: 5px;
    transition: background-color 0.3s ease;
  }
  .fixed-cta a:hover {
    background-color: #b9893e;
  }
  .width-size {
    width: 90%;
    margin: 0 auto;
  }
  .width-size-p-title {
    font-weight: bold;
  }
  .width-size-p {
    margin-bottom: 20px;
  }
  




  @media (min-width: 768px) {
    .feature-list , .portfolio-list {
      flex-direction: row;
      justify-content: center;
    }
    .feature-item , .portfolio-item {
      width: 30%;
    }
  }
  @media (max-width: 600px) {
    .fixed-cta a {
      font-size: 1rem;
      padding: 10px 20px;
    }
  }



  
  /* アニメーション */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .lab-hero {
    position: relative;
    height: 100vh;
    background: radial-gradient(ellipse at center, #10141A 0%, #0A0C10 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-family: 'Helvetica Neue', sans-serif;
  }
  .lab-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .lab-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;}
  .lab-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
  }
  .lab-sub {
    font-size: 1rem;
    letter-spacing: 2px;
    color: #AAB8C2;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .lab-divider {
    width: 60px;
    height: 2px;
    background-color: #D4A24C;
    margin: 0 auto 24px auto;
  }
  .lab-desc {
    font-size: 1.2rem;
    color: #EDEDED;
    margin-bottom: 30px;
    line-height: 1.6;
  }
  .lab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .lab-btn {
    text-decoration: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid transparent;}
  .lab-btn.primary {
    background-color: #D4A24C;
    color: #fff;
  }
  .lab-btn.primary:hover {
    background-color: #b9893e;
  }
  .lab-btn.secondary {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
  }
  .lab-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  /* Animation */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(40px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }}
  /* Optional: responsive tweaks */
  @media (max-width: 600px) {
    .lab-title {
      font-size: 2.2rem;}
    .lab-desc {
      font-size: 1rem;}}
  



  .lab-loading {
    position: absolute;
    font-family: monospace;
    font-size: 0.75rem;
    color: #AAB8C2;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 4px 8px;
    border-radius: 2px;
    opacity: 0.85;
    animation: flicker 2s infinite ease-in-out;
    pointer-events: none;
    z-index: 10;
  }
  /* テキストのチカチカアニメーション */
  @keyframes flicker {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.4; }
  }
  
  .lab-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #D4A24C;
    border-radius: 50%;
    animation: blink 1.2s infinite ease-in-out;
    box-shadow: 0 0 8px #D4A24C;
    pointer-events: none;
    z-index: 10;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.7); }
  }
  

  .mouse-aura {
    position: fixed;
    top: 0; left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,162,76,0.4) 0%, transparent 80%);
    box-shadow: 0 0 20px rgba(212,162,76,0.3);
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 1000;
    transform: translate(-50%, -50%);
    transition: transform 0.05s linear, opacity 0.3s;
  }
  .lab-preloader {
    /* 起動画面 */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    color: #D4A24C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 1rem;
    z-index: 2000;
    animation: fadeOut 1s ease-out 0.5s forwards;
  }
  @keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
  }
  a {
    cursor: pointer;
  }
  .lab-logo {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .lab-logo img {
    width: 120px;
    height: auto;
    opacity: 0.85;
    filter: brightness(0) invert(1); /* 黒線ロゴを白に反転（暗背景向け） */
  }
  .fixed-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 80px;
    z-index: 1000;
    opacity: 0.8;
    filter: brightness(0) invert(1);
  }
  .lab-logo img {
    animation: glitchIn 1.2s ease-out forwards;
  }
  
  @keyframes glitchIn {
    0% { opacity: 0; transform: scale(1.2) rotate(1deg); }
    100% { opacity: 0.9; transform: scale(1) rotate(0); }
  }


.fv-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; /* ロゴやタイトルに合わせて調整 */
    height: 600px; /* 同様に調整 */
    border: 3px solid white;
    border-radius: 50%;
    animation: irregularLine 5s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

@keyframes irregularLine {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border: 3px solid #fff;
    }
    20% {
        transform: translate(-50%, -50%) scale(1.05) rotate(10deg);
        border: 2px solid #fff;
    }
    40% {
        transform: translate(-50%, -50%) scale(1.1) rotate(30deg);
        border: 4px dashed #fff;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.15) rotate(60deg);
        border: 3px solid #fff;
    }
    80% {
        transform: translate(-50%, -50%) scale(1.2) rotate(90deg);
        border: 5px dotted #fff;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(180deg);
        border: 3px solid #fff;
    }
}

/* サイト全体に固定されたスクロールアイコン */
.scroll-indicator {
  position: fixed; /* ページ全体で固定 */
  bottom:100px; /* 画面下部に配置 */
  right: 20px; /* 画面右端に配置 */
  display: flex;
  flex-direction: column; /* アイコンを縦に並べる */
  align-items: center;
  justify-content: center;
  animation: bounce 1.5s infinite ease-in-out; /* アニメーションを追加 */
  z-index: 999; /* 最前面に表示 */
}

.scroll-arrow {
  width: 30px; /* アイコンの幅 */
  height: 30px; /* アイコンの高さ */
  margin: 5px 0; /* アイコン同士の間に少し余白 */
  filter: invert(1);
  opacity: 0.5;
}

/* アニメーションで上下に動く */
@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px); /* 上下に動くアニメーション */
  }
}


/* 下向きアイコン */
.scroll-arrow.down {
  transform: rotate(0deg); /* 下向きの矢印（反転なし） */
}

.scroll-text {
  font-size: 0.8rem;
  color: #fff;
  font-family: sans-serif;
  opacity: 0.8;
  letter-spacing: 1px;
}
.img-logo {
  width: 120px;
  height: auto;
  object-fit: cover;
  margin: 0 auto 12px auto;  /* ← これで中央揃え */
  display: block;            /* ブロック化が必要 */  
}
.reverse img {
  filter: invert(1);
}





.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  color: #fff;
  z-index: 1001;
  padding: 12px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #D4A24C;
}

.header-cta .btn {
  background-color: #D4A24C;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
}

.header-cta .btn:hover {
  background-color: #b9893e;
}

@media (max-width: 768px) {
  .main-header {
    padding: 10px 16px;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
}



/* === HEADER BASE === */
.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  color: #fff;
  z-index: 1001;
  padding: 12px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-area:hover {
  opacity: 0.5;
}

.header-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  filter: invert(1);
}
.site-title {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}
/* === ナビゲーションメニュー === */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #D4A24C;
}

/* === CTAボタン === */
.header-cta .btn {
  background-color: #D4A24C;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease;
  margin-left: 16px;
}

.header-cta .btn:hover {
  background-color: #b9893e;
}

/* === ハンバーガーメニュー === */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  margin-left: 16px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

/* === モバイルスタイル === */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}
/* ハンバーガーアイコンのアニメーション対応 */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* トランジション追加 */
.hamburger span {
  transition: all 0.3s ease;
}

/* navを相談ボタンの左に配置 */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav {
  margin-left: auto;
  margin-right: 20px; /* ロゴとナビの間隔調整 */
}

/* モバイル時（ナビ右寄せ） */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #111;
    padding: 20px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    margin: 0; /* リセット */}
  .main-nav.active {
    display: flex;}
  .main-nav ul {
    flex-direction: column;
    gap: 12px;}
  .carousel-arrow.prev {
    left: 5px;}
  .carousel-arrow.next {
    right: 5px;}
}




.btn {
  animation: pulse 2s infinite;}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }}
.microcopy {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 7px;}







/* SP：カルーセル表示 */
@media (max-width: 999px) {
  .portfolio-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;}
  .portfolio-carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 300px;}
  .portfolio-carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;}
  .portfolio-item {
    flex: 0 0 100%;
    width: 100%;}
  .carousel-arrow {
    position: absolute;
    top: 20%;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border: solid 3px #000;
    border-radius: 50%;      /* 丸く */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 4px 10px;}
  .carousel-arrow.prev {
    left: 20px;}
  .carousel-arrow.next {
    right: 20px;}
  .carousel-dots {
    text-align: center;
    margin-top: 10px;}
  .carousel-dots button {
    border: none;
    background-color: #ccc;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    cursor: pointer;}
  .carousel-dots button.active {
    background-color: #333;}
}
/* PC表示（3列横並び） */
@media (min-width: 1000px) {
  .portfolio-carousel-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;}
  .portfolio-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    transform: none !important;}
  .carousel-arrow , .carousel-dots {
    display: none;}
  .portfolio-item {
    width: 300px;}
}
.grecaptcha-badge { 
  visibility: hidden;}
.grecaptcha-discription {
  margin: 0 auto;
  padding-top: 50px;
  padding-bottom: 50px;}
.form-wrap {
  max-width: 400px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 10px;}
.form-content {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;}
.form-content-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;}
.form-input , .textarea {
  width: 100%;
  font-size: 16px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;}
.textarea {
  height: 150px;
  resize: vertical;}
.form-submit {
  width: 100%;
  padding: 12px 0;
  background-color: #D4A24C;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;}
.form-submit:active {
  background-color: #fff;
  color: #D4A24C;
  border: 1px solid #D4A24C;}
.submit-form-content {
  text-align: center;}

.download-img {
  width: auto;
  height: 40px;
}
.feature-item .iPhone-img {
  width: 200px;
  height: auto;
}
.margin-bottom {
  margin-bottom: 20px;
}