/* =============================
   Reset & Base
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  max-width: 100%;
  color: #1f2937;
  background-color: #fdf2f8;
}

/* =============================
   Header
============================= */
.header {
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background-color: #fbdeee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  animation: slideRight 1s ease forwards;
}

.hamburger {
  display: none; /* デフォルト非表示 */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

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

.navbar {
  display: flex;
  gap: 20px;
}

/* =============================
   Home Section
============================= */
.home {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 70px 10% 0;
  gap: 40px;
  flex-wrap: wrap;
}

.home-content {
  flex: 1;
  min-width: 280px;
}

.home-content h3,
.home-content h1,
.home-content p {
  opacity: 0;
}

.home-content h3 {
  font-size: 32px;
  font-weight: 700;
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.7s;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 30px;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.7s;
}

.home-content h3 span {
  font-weight: 700;
  color: #db2777;
}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  margin: -3px 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1s;
}

.home-content p {
  font-size: 20px;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1s;
}

.home-img img {
  width: 350px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  animation: fadeUp 2.5s ease forwards;
}

.home-sns a {
  margin-right: 10px;
}

.btn-box {
  display: inline-block;
  padding: 12px 28px;
  background: #db2777;
  border-radius: 40px;
  font-size: 16px;
  color: #fdf2f8;
  font-weight: 600;
  margin-top: 30px;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 5px #db2777;
}

.btn-box:hover {
  box-shadow: 0 0 5px #db2777, 0 0 25px #db2777, 0 0 50px #db2777,
    0 0 100px #db2777, 0 0 200px #db2777;
}

/* =============================
   About Section
============================= */
.about {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 60px 10%;
}

.about-img {
  width: 400px;
  max-width: 100%;
  background-size: cover; 
  background-position: center; 
  margin: 0 auto;
}

.about-text h2 {
  font-size: 60px;
  font-weight: 700;
}

.about-text h2 span {
  color: #db2777;
  font-weight: 700;
}

.about-text h4 {
  font-size: 29px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.7;
  margin: 15px 0 30px;
}

.about-text p {
  color: #371f33;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

/* =============================
   Services Section
============================= */
.services {
  padding: 80px 10%;
}

.sub-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.sub-title span {
  color: #db2777;
  font-weight: 700;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  text-align: center;
}

.service-item {
  background-color: transparent;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.5s;
  box-shadow: 1px 1px 20px #ec4899, 1px 1px 40px #ec4899;
  width: 100%;
  max-width: 350px;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-item h2 {
  margin-bottom: 15px;
  font-size: 30px;
  font-weight: 700;
}

.service-item p {
  margin-top: 10px;
  font-size: 16px;
}

.service-item i {
  font-size: 50px;
  margin-bottom: 30px;
}

/* =============================
   Skills Section
============================= */
#skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 60px;
  padding: 60px 10%;
}

#skills-wrapper .sub-title {
  width: 100%; /* 親幅いっぱいに */
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center; /* 中央寄せ */
}

#skills-wrapper .sub-title span {
  color: #db2777;
}

.container1 {
  flex: 1 1 400px;
  max-width: 600px;
}

.heading1 {
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 4px;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Technical Bars */
.technical-bars .bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 25px;
}

.technical-bars .bar i {
  font-size: 30px;
  margin-bottom: 10px;
}

.technical-bars .bar .info {
  margin-bottom: 5px;
  font-weight: 500;
}

.technical-bars .bar .progress-line {
  width: 100%;
  height: 8px;
  background-color: #fbdeee;
  border-radius: 10px;
}

.technical-bars .bar .progress-line span {
  display: block;
  height: 100%;
  background-color: #db2777;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  animation: grow-bar 3s ease-in-out infinite;
}

@keyframes grow-bar {
  0% {
    transform: scaleX(0);
  }
  50% {
    transform: scaleX(1); 
  }
  100% {
    transform: scaleX(0);
  }
}



.progress-line.html span {
  width: 90%;
}
.progress-line.css span {
  width: 85%;
}
.progress-line.javascript span {
  width: 70%;
}
.progress-line.github span {
  width: 60%;
}

/* Radial Bars */
.radial-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.radial-bar {
  width: 180px;
  height: 180px;
  position: relative;
  text-align: center;
  flex: 1 1 45%;
}

.radial-bar svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-bg {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 10;
}

.path {
  fill: none;
  stroke: #db2777;
  stroke-width: 10;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s ease-out;
}

.radial-bar .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 600;
}

.radial-bar .text {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 500;
}

/* =============================
   Portfolio Section
============================= */
#portfolio {
  padding: 80px 10%;
  background: #fdf2f8;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.portfolio-box {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s;
  padding: 20px;
}

.portfolio-box:hover .portfolio-layer {
  opacity: 1;
}

.portfolio-layer h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.portfolio-layer p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.portfolio-layer a {
  display: inline-block;
  background: #fdf2f8;
  padding: 10px 15px;
  border-radius: 50%;
  transition: background 0.3s;
}

.portfolio-layer a:hover {
  background: #0097a7;
}

#portfolio .btn-box {
  display: block;
  margin: 40px auto 0;
  width: fit-content;
}

/* Certification */
.certification {
  padding: 80px 10%;
}

.sub-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
}

.sub-title span {
  color: #db2777;
  font-weight: 700;
}

.certification-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
  text-align: center;
}

.certification-item {
  background-color: transparent;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.5s;
  box-shadow: 1px 1px 20px #ec4899, 1px 1px 40px #ec4899;
  width: 100%;
  max-width: 350px;
}

.certification-item:hover {
  transform: translateY(-10px);
}

.certification-item h2 {
  margin-bottom: 15px;
  font-size: 30px;
  font-weight: 700;
}

.certification-item p {
  margin-top: 10px;
  font-size: 16px;
}

.certification-item i {
  font-size: 50px;
  margin-bottom: 30px;
}

.cert-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #db2777;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.cert-btn:hover {
  box-shadow: 0 0 5px #db2777, 0 0 25px #db2777, 0 0 50px #db2777,
    0 0 100px #db2777, 0 0 200px #db2777;
}

/* =============================
   Contact Section
============================= */
.navbar a {
  text-decoration: none;
}

.contact-hero {
  padding: 100px 10% 50px;
  text-align: center;
}

.contact-hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-hero h2 span {
  color: #db2777;
  font-weight: 700;
}

.contact-form-section {
  max-width: 600px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  padding: 30px 0;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

.contact-form button {
  width: fit-content;
  padding: 12px 25px;
  background-color: #db2777;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form button:hover {
  background-color: #a11f58;
}

/* =============================
   Footer
============================= */
footer {
  font-size: small;
  text-align: center;
  padding: 50px;
}

/* =============================
   Animations
============================= */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes grow-bar {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* =============================
   Responsive CSS
============================= */
@media screen and (max-width: 768px) {
  /* ヘッダー */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; /* 縦中央 */
    align-items: center; /* 横中央 */
    gap: 30px;
    font-size: 24px;
    transform: translateX(100%); /* 最初は画面外 */
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .navbar.active {
    transform: translateX(0); /* 表示時にスライドイン */
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* home */
  .home {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    padding-bottom: 60px;
    text-align: center;
  }

  .home-img img {
    width: 250px;
    justify-content: center;
    align-items: center;
  }

  .home-content h1 {
    font-size: 36px;
  }

  .home-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .home-content p {
    font-size: 16px;
  }

  /* About Section */
  .about {
    grid-template-columns: 1fr; /* 1列に変更 */
    text-align: center;
    padding: 20px 5% 40px; /* 上下の余白をスマホ用に最適化 */
    gap: 1rem;
  }

  .about-img {
    display: none; /* 完全に非表示 */
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
  }

  .about-text h2 {
    font-size: 36px;
  }

  .about-text h4 {
    font-size: 22px;
  }

  .about-text p {
    font-size: 16px;
    margin-bottom: 1rem; /* 下の余白も最小化 */
  }

  .about-text .btn-box {
    margin-top: 2rem;
  }

  /* Services Section */
  .services {
    padding: 60px 5%;
  }

  .service-item h2 {
    font-size: 24px;
  }

  .service-item p {
    font-size: 14px;
  }

  /* Skills Section */
  #skills-wrapper {
    padding: 40px 5%;
    gap: 40px;
  }

  .container1 {
    max-width: 100%;
  }

  .technical-bars .bar i {
    font-size: 25px;
  }

  .technical-bars .bar .info {
    font-size: 14px;
  }

  .radial-bar {
    width: 140px;
    height: 140px;
  }

  .radial-bar .percentage {
    font-size: 14px;
  }

  .radial-bar .text {
    font-size: 12px;
  }

  /* Portfolio Section */
  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .portfolio-box img {
    height: auto; /* 高さ自動で比率維持 */
  }

  /* Contact Section */
  .contact-hero {
    padding: 80px 5% 40px;
  }

  .contact-hero h2 {
    font-size: 28px;
  }

  .contact-form-section {
    padding: 0 10px;
  }

  footer {
    padding: 10px;
  }
}
