/* リセットとベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
  }
  
  /* ヘッダー */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
  }
  
  nav a {
    text-decoration: none;
    color: #aaa;
    transition: color 0.3s;
  }
  
  nav a:hover {
    color: #fff;
  }
  
  /* ヒーローセクション */
  .hero {
    height: 100vh;
    background: url('hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* オーバーレイ */
  }
  
  .hero-text {
    position: relative;
    z-index: 1;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1.2rem;
    color: #ccc;
  }
  
  /* About セクション */
.about {
    padding: 100px 20px;
    background-color: #111;
    color: #eee;
  }
  
  .container {
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 500;
    color: #fff;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
  }
  
  .about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .profile-image {
    flex: 1;
    text-align: center;
  }
  
  .profile-image img {
    max-width: 200px;
    border-radius: 100px;
    border: 2px solid #444;
  }
  
  .profile-text {
    flex: 2;
    font-size: 1rem;
    line-height: 1.8;
    color: #ccc;
  }
  
  /* レスポンシブ対応 */
  @media (min-width: 768px) {
    .about-content {
      flex-direction: row;
      align-items: center;
    }
  
    .profile-text {
      text-align: left;
    }
  }
  
  /* Works セクション */
.works {
    padding: 100px 20px;
    background-color: #000;
    color: #eee;
  }
  
  .works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .work-card {
    background-color: #111;
    border: 1px solid #222;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
  }
  
  .work-card img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .work-info {
    padding: 20px;
  }
  
  .work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
  }
  
  .work-info p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
  }
  
  /* レスポンシブ対応 */
  @media (min-width: 768px) {
    .works-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .works-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* Skills セクション */
.skills {
    padding: 100px 20px;
    background-color: #111;
    color: #eee;
  }
  
  .skill-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .skill-item {
    display: flex;
    flex-direction: column;
  }
  
  .skill-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
  }
  
  .skill-label img {
    width: 24px;
    height: 24px;
  }
  
  .skill-bar {
    width: 100%;
    background-color: #222;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #d32f2f, #f44336);
    width: 0;
    border-radius: 5px;
    transition: width 1.5s ease;
  }  

  .skill-fill.animate {
    width: var(--skill-width);
  }

  .skill-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px; /* 棒と数値の間隔 */
  }
  
  .skill-percent {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    min-width: 40px; /* 桁ぶれ防止 */
  }  
  
  @keyframes fillBar {
    to {
      width: var(--skill-width, 100%);
    }
  }
  
  /* Contact セクション */
.contact {
    padding: 100px 20px;
    background-color: #000;
    color: #eee;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    color: #ccc;
  }
  
  .contact-form input,
  .contact-form textarea {
    margin-top: 8px;
    padding: 12px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: #f44336;
  }
  
  .contact-form button {
    align-self: flex-start;
    padding: 10px 24px;
    background-color: #f44336;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #d32f2f;
  }
  
  .sns-links {
    display: flex;
    justify-content: center;
    gap: 30px;
  }
  
  .sns-links img {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.3s;
  }
  
  .sns-links img:hover {
    opacity: 1;
  }
  
  .footer {
    background-color: #000;
    color: #777;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
  }
  
  .footer-nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 25px;
  }
  
  .footer-nav a {
    color: #777;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-nav a:hover {
    color: #fff;
  }
  
  #back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }
  
  #back-to-top:hover {
    background-color: #d32f2f;
  }
  
  #back-to-top.show {
    opacity: 1;
    visibility: visible;
  }
  