*, *::before, *::after {
  box-sizing: border-box;
}


body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
  }
  
 
  .hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/desk-3139127_1280.jpg') center/cover no-repeat;
    height: 600px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .hero-inner {
    max-width: 700px;
  }
  
  .hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .company-name {
    color: #f9b4b4;
    font-weight: bold;
    font-size: 2.5rem;
}
  
  .btn-primary {
    background-color: #ff6363;
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1rem;
    transition: background 0.3s;
  }
  
  .btn-primary:hover {
    background-color: #e55050;
  }
  
  @media screen and (max-width: 768px) {
    .hero {
      background-position: top;
      background-size: cover;
    }
  
    .hero h1 {
      font-size: 1.4rem;
    }
  
    .hero p {
      font-size: 1rem;
    }
  }
  
  .services {
    background: #f8f9fb;
    padding: 6rem 1rem;
    text-align: center;
  }

  .section-title {
    text-align: center;
    font-size: 2rem;
    margin: 4rem 0 2rem;
    position: relative;
  }
  
  .section-title.with-line {
    position: relative;
    display: inline-block;
    margin: 0 auto 2rem;
    padding-bottom: 0.5rem;
    font-size: 1.8rem;
    color: #333;
  }
  
  .section-title.with-line::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ff6363;
    border-radius: 2px;
  }
  
  
  .service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .service-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    padding: 2.5rem 1.5rem;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  
  .service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #222;
  }
  
  .service-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
  }
  
  .service-icon {
    font-size: 2.5rem;
    color: #ff6363;
    margin-bottom: 1rem;
  }

  .portfolio {
    text-align: center;
    padding: 4rem 1rem;
    background-color: #ffffff;
  }
  .portfolio-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #55555512;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    margin: 2rem auto;
    max-width: 960px;
    padding: 1.5rem;
    gap: 2rem;
    
  }
  
  .portfolio-image {
    max-width: 360px;
  }
  
  .portfolio-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }
  
  
  .portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #222;
  }
  
  .portfolio-text p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
  }
  
  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
  }
  
  .tech-tags li {
    background: #f1f1f1;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #333;
    border: 1px solid #ccc;
  }
  
  .btn-outline {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid #ff6363;
    border-radius: 30px;
    color: #ff6363;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .btn-outline:hover {
    background: #ff6363;
    color: #fff;
  }
 
/* 💻 PC用：h3をテキストと一体感のある位置に */
@media (min-width: 769px) {
  .portfolio-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    max-width: 960px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    position: relative;
  }

  .portfolio-image {
    flex: 1;
    max-width: 360px;
  }

  .portfolio-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
  }

  .portfolio-text {
    flex: 2;
  }

  /* ← h3は中身に戻ってるように見せる */
  .portfolio-item h3 {
    position: absolute;
    top: 1.5rem;
    left: calc(360px + 2rem); /* 画像幅 + gap */
    font-size: 1.5rem;
    color: #222;
    margin: 0;
  }

  /* タグ・本文・ボタン調整 */
  .portfolio-text p {
    margin-top: 3rem; /* h3との間隔調整 */
    color: #555;
    font-size: 1rem;
  }

  .tech-tags {
    margin: 1rem 0;
  }

  .btn-outline {
    margin-top: 1rem;
  }
}

/* 📱 スマホ用：h3を一番上に */
@media (max-width: 768px) {
  .portfolio-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .portfolio-item h3 {
    order: -1;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .portfolio-image {
    order: 0;
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .portfolio-text {
    order: 1;
    padding: 0 1rem;
  }

  
    .tech-tags {
      justify-content: center;
      flex-wrap: wrap;
      margin-bottom: 1rem;
    }
  
    .btn-outline {
      display: inline-block;
      margin-top: 0.5rem;
    }
  }
  



    
  
    
  .profile {
    background-color: #f9f9f9;
    padding: 4rem 1rem;
    min-height: 300px; /* 背景含め、全体に高さを持たせる */
    text-align: center;
  }
  
  .profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .profile-image img {
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    
  box-shadow: 0 4px 12px rgba(0,0,0,0.9);
  }
  
  .profile-text {
    flex: 1 1 500px;
  }
  
  .profile-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .profile-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
  }
  
  /* スマホ対応 */
  @media screen and (max-width: 768px) {
    .profile-container {
      flex-direction: column;
      text-align: center;
    }
  
    .profile-text {
      padding: 0 1rem;
    }
  }



  .sns-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
  }
  
  .sns-links a {
    color: #444;
    font-size: 1.5rem;
    transition: color 0.3s;
  }
  
  .sns-links a:hover {
    color: #ff6363; /* お好みで */
  }
  
  .sns-links-inline {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    margin: 0.5rem 0 1rem;
  }
  
  .sns-links-inline a {
    color: #555;
    font-size: 1.5rem;
    transition: color 0.3s;
  }
  
  .sns-links-inline a:hover {
    color: #ff6363;
  }
  
  .contact {
    background: #fff;
    padding: 4rem 1rem;
    text-align: center;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form label {
    font-weight: bold;
    font-size: 1rem;
    color: #333;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form button {
    background: #ff6363;
    color: #fff;
    font-size: 1rem;
    padding: 0.8rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .contact-form button:hover {
    background: #e55353;
  }
  
  .contact-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .required {
    color: #ff6363;
    font-size: 0.9rem;
    margin-left: 0.5rem;
  }
  
  /* ナビゲーションバー */
  .site-header {
    position: fixed; /* ← 固定表示 */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: flex-end; /* ← ロゴなしなので右寄せだけでOK */
    background-color: rgb(255 255 255 / 71%); /* 半透明 */
    backdrop-filter: blur(8px); /* ぼかし効果で高級感 */
    z-index: 1000;
    font-family: 'Noto Sans JP', sans-serif;
  }
  
  
  
  
 
  
  .site-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* ← はみ出し防止 */
    
  }
  
  .site-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
  }
  
  .site-nav a:hover {
    color: #ff6363;
  }
  
  .site-nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ff6363;
    transition: width 0.3s;
  }
  
  .site-nav a:hover::after {
    width: 100%;
  }
  
  /* ハンバーガーボタンの見た目 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

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

/* スマホ用メニュー */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    align-items: center;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .site-nav a {
    color: #fff;
    font-size: 1.2rem;
  }

  .site-header {
    background-color: transparent; /* ← ← ← これがポイント！ */
    backdrop-filter: none;
  }

}

.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.7;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .hero {
    padding: 6rem 1rem 3rem;
    height: auto;
  }

  .hero-inner {
    max-width: 90%;
  }

  .service-cards,
  .portfolio-cards {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .service-card,
  .portfolio-card {
    width: 90%;
    text-align: center;
  }

  .btn-primary,
  .btn-outline {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 1rem auto;
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .site-nav ul {
    gap: 1rem;
  }

  .profile-container {
    flex-direction: column;
    text-align: center;
  }

  .profile-image {
    margin-bottom: 1rem;
  }

  .site-footer {
    font-size: 0.8rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
 
}

.btn-primary:hover,
.btn-outline:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wave-divider {
  width: 100%;
  height: 100px;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}
