* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* ヘロセクション */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #1a252f 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.hero-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape1 {
  width: 200px;
  height: 200px;
  background: #f39c12;
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.shape2 {
  width: 150px;
  height: 150px;
  background: #e67e22;
  top: 60%;
  left: 15%;
  animation-delay: 2s;
}

.shape3 {
  width: 100px;
  height: 100px;
  background: #f39c12;
  top: 30%;
  left: 70%;
  animation-delay: 4s;
}

.shape4 {
  width: 80px;
  height: 80px;
  background: #e74c3c;
  top: 70%;
  right: 30%;
  animation-delay: 1s;
}

.geometric-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes float {

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

  25% {
    transform: translateY(-20px) rotate(90deg);
  }

  50% {
    transform: translateY(-10px) rotate(180deg);
  }

  75% {
    transform: translateY(-30px) rotate(270deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.1;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.1);
  }
}

.pulse-shape {
  animation: pulse 4s ease-in-out infinite;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: slideUp 1s ease forwards 0.5s;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: slideUp 1s ease forwards 0.8s;
}

.cta-button {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  animation: slideUp 1s ease forwards 1.1s;
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(243, 156, 18, 0.3);
}

/* ナビゲーション */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(44, 62, 80, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(44, 62, 80, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f39c12;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* セクション共通スタイル - フルワイド対応 */
section {
  padding: 80px 0;
  width: 100%;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #f39c12;
  border-radius: 2px;
}

/* 自己紹介セクション */
.about {
  background: #f8f9fa;
  position: relative;
  width: 100%;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: #f39c12;
  border-radius: 50%;
  opacity: 0.1;
  transform: translate(50%, -50%);
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* スキルセクション */
.skills {
  width: 100%;
}

.skills-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  max-width: 300px;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(243, 156, 18, 0.1), transparent);
  transition: left 0.5s ease;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.skill-progress {
  background: #e9ecef;
  height: 8px;
  border-radius: 4px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border-radius: 4px;
  transition: width 2s ease;
}

/* 制作物セクション */
.works {
  background: #f8f9fa;
  width: 100%;
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.work-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;

  /* 横並びのための設定 */
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* 必要に応じて */
}

/* スマホなどの狭い画面では縦並び */
@media (max-width: 768px) {
  .work-card {
    flex-direction: column;
  }
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.work-image {
  width: 40%;
  height: auto;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

/* 画像本体のcss */
.work-image img {
  border-radius: 16px; /* 角を丸くするだけ */
  margin: 20px 20px;
  max-width: calc(100% - 80px);
  height: auto;
  display: block;
}


@media (max-width: 768px) {
  .work-image {
    width: 100%;
    height: auto;           /* ← 高さを自動に */
    padding: 16px;          /* ← 内側余白で横スペースを確保 */
    box-sizing: border-box;
  }

  .work-image img {
    width: 100%;            /* 横幅いっぱいに */
    margin: 0;              /* 余白はpaddingで確保するのでmarginは不要 */
    border-radius: 16px;
    height: auto;
  }
}

.work-image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: #f39c12;
  border-radius: 50%;
  opacity: 0.2;
  transform: translate(-50%, -50%);
}

/* 画像があるとに縁を表示させない */
.work-image.no-after::after {
  display: none;
}

.work-content {
  width: 60%;
  padding: 1.5rem;
}

/* スマホでコンテンツも幅100%に */
@media (max-width: 768px) {
  .work-content {
    width: 100%;
  }
}

.work-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.indent-multiline {
  white-space: pre-line;
  padding-left: 3em;
  /* 1行目の開始位置を調整 */
  text-indent: -3em;
  /* 2行目以降のインデント位置を揃える */
}

.work-tech {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-tag {
  background: #f39c12;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* コンタクトセクション */
.contact {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: white;
  text-align: center;
  width: 100%;
}

.contact .section-title {
  color: white;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  justify-content: center;
}

.contact-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: #f39c12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
}

.contact-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #f39c12;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* アニメーション */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .skills-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .skill-card {
    max-width: 100%;
    width: 100%;
  }

  nav ul {
    gap: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .section-container {
    padding: 0 15px;
  }
}


/* プロフィール画像 */
.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  border: 5px solid #f39c12;
}

/* 画像用のスタイル */
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}