@charset "utf-8";

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

html {
  font-size: 100%;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.8;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.sec-title {
  padding: 100px 20px;
}

/* header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

h1 {
  font-size: 1.5rem;
}

#js-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

#js-nav a {
  font-size: 0.9rem;
  font-weight: bold;
}

#js-nav a:hover {
  opacity: 0.7;
}

.hamburger {
  display: none;
  position: relative;
  width: 32px;
  height: 24px;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.5s;
}

.hamburger span:nth-of-type(1) {
  top: 0;
}

.hamburger span:nth-of-type(2) {
  top: 11px;
}

.hamburger span:nth-of-type(3) {
  bottom: 0;
}

/* main */
.hero {
  margin-top: 90px;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #E8EEF3;
  text-align: center;
}

h2 {
  font-size: 4.5rem;
}

.sub-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.box {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

h3 {
  font-size: 2.7rem;
}

.work-exm {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}

.work-card {
  flex: 1;
}

.work-image {
  width: 100%;
  height: 200px;
  position: relative;
}

/* .work-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.3);
} */

.work-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s;
}

.work-image img:hover {
  opacity: 0.6;
  transform: scale(1.05);
}

.work-text {
  text-align: left;
}

.work-text p {
  padding: 20px 0;
}

.work-detail {
  font-size: 0.85rem;
  color: #666;
  padding-bottom: 20px;
}

.comment {
  margin-top: 30px;
  text-align: left;
  font-size: 0.9rem;
}

#skill {
  background-color: #E8EEF3;
}

.langu {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}

.langu-card {
  flex: 1;
  text-align: left;
  background-color: #fff;
  padding: 60px 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

h4 {
  font-size: 1.2rem;
  width: 100%;
  padding-bottom: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid #ddd;
}

.langu-card p {
  font-size: 0.95rem;
}

.service-inner {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}

.service-block {
  flex: 1;
  text-align: left;
  border: 1px solid #ddd;
  padding: 40px 30px;
}

.service-list,
.service-flow {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 0.95rem;
}

.service-list {
  list-style: disc;
}

.service-list li,
.service-flow li {
  margin-bottom: 10px;
}

.inner {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.about-me {
  display: flex;
  gap: 40px;
  text-align: left;
  margin-top: 60px;
  align-items: center;
}

.about-image {
  width: 40%;
  text-align: center;
}

.about-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
}

.about-text {
  width: 60%;
}

.about-list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
}

.about-list dd {
  border-bottom: 1px solid #ccc;
  padding-bottom: 8px;
}

#contact {
  background-color: #E8EEF3;
  text-align: center;
}

#contact p {
  padding-top: 30px;
}

.mail {
  display: inline-block;
  font-size: 1.2rem;
  border: 1px solid #333;
  margin-top: 40px;
  padding: 12px 20px;
  color: blue;
}

footer {
  text-align: center;
  padding: 60px 20px;
  background-color: #333;
  color: #fff;
  /* font-size: 1.2rem; */
}


/* フェードイン */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease; 
}

.fade-in.scroll-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  #js-nav {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 40%;
    height: 100vh;
    /* background-color: rgba(26, 54, 93, 0.98); */
    background-color: #E8EEF3;
    z-index: 100;
    padding: 40px 20px;
    transition: all 0.3s ease;
  }

  #js-nav.active {
    right: 0%;
  }

  #js-nav ul {
    color: #333;
    flex-direction: column;
    align-items: start;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-of-type(1) {
    transform: translateY(11px) rotate(-45deg);
  }

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

  .hamburger.active span:nth-of-type(3) {
    transform: translateY(-11px) rotate(45deg);
  }

  .overlay {
    content: "";
    position: fixed;
    top: 90px;
    opacity: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 90;
    transition: all 0.5s;
    pointer-events: none;
  }

  .overlay.is-show {
    opacity: 1;
    pointer-events: auto;
  }

  h2 {
    font-size: 3.5rem;
  }

  .work-exm {
    flex-direction: column;
  }

  .langu {
    flex-direction: column;
  }

  .service-inner {
    flex-direction: column;
  }

  .about-me {
    flex-direction: column;
    gap: 60px;
  }

  .about-image {
    width: 100%;
  }

  .about-text {
    width: 100%;
    text-align: center;
  }

  .work-image {
    height: 280px;
  }

  .work-image img {
    height: 280px;
  }
}