@charset "UTF-8";

/* 全体 */

:root {
  --title-font: 'Lora';
  --text-font: 'Noto Serif jp';
  --text-color: #8D8790;
  --background-color: #EFECF1;
  --btn-color: #E6DFED;
}

body {
  font-family: 'Lora', 'Noto Serif JP';
  max-width: auto;
  height: auto;
  margin: 0 auto;
}

section {
  height: auto;
  width: 100%;
}

.section-title {
  font-family: var(--title-font);
  font-size: 40px;
  color: #fff;
  font-weight: 400;
  padding: 100px 0 100px 0;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-container{
  padding-block: clamp(64px, 8vw, 120px);
  padding-inline: clamp(20px, 6vw, 40px);
}


/* header */
.header {
  height: 100px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  padding: 0 50px;
}

.header h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 400;
  font-family: var(--title-font);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-content: end;
  margin: 0;
}

.nav a {
  text-decoration: none;
  color: #fff;
  font-family: Lora;
  font-size: 18px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

button {
  color: #fff;
  -webkit-appearance: none;
  appearance: none;
  vertical-align: middle;
  border: 0;
  background: transparent;
  outline: 0;
  border-radius: 0;
  text-align: inherit;
}

button:hover {
  cursor: pointer;
}

.menu-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.btn-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: relative;
  transition: .2s;
}

.btn-line::before,
.btn-line::after {
  position: absolute;
  transition: .5s;
}

.btn-line::before {
  content: "";
  width: 100%;
  height: 100%;
  background-color: var(--text-color);
  transform: translateY(-16px);
}

.btn-line::after {
  content: "menu";
  display: block;
  width: 100%;
  text-align: center;
  transform: translateY(8px);
  color: var(--text-color);
}

.btn-line.open {
  transition: .5s;
}

.btn-line.open::before {
  content: "";
  transform: translateY(0);
}

.btn-line.open::after {
  content: "close";
  color: var(--text-color);
}

.menu-btn {
  display: none;
}

.menu {
  position: static;
  transform: none;
  width: auto;
  height: auto;
  display: flex;
  flex-direction: row;
  background: transparent;
}

.menu-list {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu-list:hover {
  color: #333;
  transition: .3s;
  cursor: pointer;
}

.menu.open {
  transform: translateX(0);
}

@media (max-width: 1024px) {
  .header {
    height: 60px;
    padding: 0 30px;
  }

  .header h1 {
    font-size: 26px;
  }

  .nav ul {
    gap: 15px;
  }

  .nav a {
    font-size: 16px;
  }
}

@media (max-width: 600px) {
  .menu-btn {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    width: 58px;
    height: 48px;
    justify-content: center;
    align-items: center;
    z-index: 3000;
  }

  .menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 70%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--background-color);
    transform: translateX(100%);        
    transition: transform .3s ease;
    z-index: 2000;
    padding: 24px 16px;
    list-style: none;
  }

  .menu.open {
    transform: translateX(0);
  }

  .menu-list { 
    display: flex; align-items: center; justify-content: center;
    height: 56px;
  }

  .menu-list:hover {
    color: var(--text-color);
    transition: .3s;
    cursor: pointer;
  }

  .nav ul { 
    gap: 0; 
    justify-content: flex-start; 
    margin: 0; 
  }
}


/* top */
.top {
  position: relative;
}

.top img {
  height: 80vh;
  width: 100%;
}

.top-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 自身の中心を中央に */
  font-family: var(--title-font);
  color: #fff;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.6;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  text-align: center;
}

.top-text-br {
  display: none;
}

 @media (max-width: 580px) {
  .top-text-br {
    display: block;
  }
 }


/* about */
.about {
  height: auto;
  width: 100%;
  margin: 0 auto;
  background-color: var(--background-color);
  padding-bottom: 100px;
}

.about-content {
  max-width: 1220px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  margin: 0 auto;
}

.about-text {
  height: auto;
  color: var(--text-color);
  line-height: 1.6;
  padding: 30px 0 0 0;
}

.about h3 {
  text-align: center;
  font-weight: 400;
 }

.about h4 {
  padding-left: 50%;
  font-weight: 400;
  padding-bottom: 60px;
}

.about-img {
  height: auto;
  width: 100%;
  display: flex;
  position: relative;
  justify-content: right;
  align-items: center;
}

.about-block {
  position: absolute;
  bottom: -60px;
  left: 0;
}

.about-block img {
  width: 100%;
  max-width: 200px;
  z-index: 2;
}

.about-myImg {
  align-items: end;
  z-index: 1;
}

.about-myImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

  @media (max-width: 1200px) {
    .about-content {
      flex-direction: column;
      width: 100%;
      gap: 30px;
    }

    .about-block {
      display: none;
    }

    .about-img {
      display: flex;
      justify-content: center;
      height: auto;
      width: 100vw;
      padding-inline: clamp(20px, 6vw, 40px);
      order: 1;
    }

    .about-myImg {
      display: block;
    }

    .about-text {
      order: 2;
    }

    .about h4 {
      padding: 0 0 60px 0;
      text-align: center;
    }
  }


/* skill */
.skill {
  margin: 0 auto;
  height: auto;
  width: 100%;
  background-image: url(image/skill.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-bottom: 100px;
}

.skill-content {
  width: 100%;
  max-width: 1240px;
  height: auto;
  margin: 0 auto;
  padding-inline: 2%;
}

.skill-boxes {
  width: auto;
  display: grid;
  gap: 50px;
  grid-template-columns: repeat(3, 1fr);
}

.skill-box {
  background-color: #fff;
}

.skill-title {
  position: relative;
  font-size: 24px;
  height: 100px;
  width: 100%;
}

.skill-title p {
  align-items: center;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.skill-title img {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.skill-list {
  color: var(--text-color);
  list-style: none;
  margin: 0;
  padding: 0;
  margin-inline: auto;
}

.skill-list ul {
  list-style: none;
}

.skill-list li {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
  align-items: center;
  justify-content: space-around;
  padding: 50px;
}

  @media (max-width: 1024px) {
    .skill {
      padding: 0 30px 100px 30px;
    }

    .skill-boxes {
      gap: 30px;
    }

    .skill-list li {
      padding: 50px 30px;
    }
  }


  @media (max-width: 800px) {
    .skill-boxes {
      grid-template-columns: none;
    }

    .skill-content {
      width: 60%;
    }

    .skill-list li:has(> p:empty) {
      display: none;
    }
  }

 @media (max-width: 550px) {
    .skill-content {
      width: 100%;
      padding-inline: 2%;
    }
   }


/* works */
.works{
  background-color: var(--background-color);
  padding-bottom: 100px;
}

.works-content {
  max-width: 1240px;
  margin-inline: auto;
}

.works-box {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.work1, .work2, .work3, .work4 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 370px;
}

.work2, .work4 {
  flex-direction: row-reverse;
}

.work-text, .work-img {
  flex: 1 1 0;
  box-sizing: border-box;
  max-width: 620px;
}

.work-text {
  height: auto;
  font-family: var(--text-font);
  color: var(--text-color);
  background-color: #fff;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  line-height: 1.6;
}

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

.work-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;         
  display: block;
}

.work-text h6 {
  color: #AAB3CC;
  font-size: 14px;
}

.work-text h4 {
  font-size: 20px;
  font-weight: 400;
}

.work-text p {
  font-size: 16px;
}

  @media (max-width: 1300px) {
    .works-content {
      margin: 0 2%;
    }
  }

  @media (max-width: 1024px) {
    .works-content {
      margin: 0 2%;
    }

    .work1, .work2, .work3, .work4 {
      flex-direction: column;
    }

    .works-box {
      align-items: center;
    }

    .work-text {
      order: 2;
    }

    .work-img {
      order: 1;
    }
   }


/* contact */
.contact {
  background-image: url(image/contact.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding-bottom: 100px;
}

.subTitle {
  font-family: var(--text-font);
  margin-top: 10px;
  font-size: 14px;
 }

.contact-content {
  color: var(--text-color);
  background-color: #fff;
  max-width: 1240px;
  width: 100%;
  height: auto;
  margin-inline: auto;
  display: flex;
  gap: 0;
  align-items: center;
}

.contact-content > div {
  flex: 1;
}

.contact-text {
  text-align: center;
  padding: 250px 0;
}

.myadress {
  padding-bottom: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding: 0 60px;
}

.contact-form label {
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--text-color);
  height: 50px;
  margin-bottom: 20px;
  padding: 10px;
}

.contact-btn {
  border-radius: 90px;
  width: 30%;
  color: #fff;
  background-color: var(--btn-color);
  padding: 5px 0;
  margin: 0 auto;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
  text-align: center;
}

  @media (max-width: 1244px) {
    .contact-content {
      width: auto;
      margin: 0 2%;
    }
   }

  @media (max-width: 800px) {
    .contact-content {
      flex-direction: column-reverse;
      width: 100%;
      margin: 0 auto;
      align-items: center;
    }

    .contact-content > div {
      flex: none;
      width: 60%;
      margin: 0 auto;
    }

    .contact-text {
      padding: 100px 0;
    }

    .myadress {
      padding-bottom: 40px;
    }

    .contact-form {
      width: 100%;
      padding: 80px 0 0 0;
    }

    .contact-btn {
      width: 50%;
      text-align: center;
    }
   }


/* footer */
.footer {
  height: auto;
  width: 100%;
  background-color: #AAB3CC;
  margin: 0 auto;
}

.footer p {
  font-size: 14px;
  text-align: center;
  padding: 50px 0;
  color: #fff;
  font-family: var(--text-font);
}


/* 基本のフェード / スライド */
.fadein {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.fadein.is-visible {
  opacity: 1;
  transform: none;
}

.slide-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.25,1);
}
.slide-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up.center-self {
  width: fit-content;
  margin-inline: auto;
  text-align: center;
}

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
}

.stagger > *.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

button,
.contact-btn,
.work-text a,
.nav a {
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background-color .2s ease, opacity .2s ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  opacity: .9;
}

a:hover {
  color: #567C8D;
}

.work1, .work2, .work3, .work4 {
  transition:
    transform .16s cubic-bezier(.2,.8,.2,1),
    box-shadow .16s ease,
    background-color .16s ease;
  will-change: transform;
  transform-origin: center center;
}

.work1:hover,
.work2:hover,
.work3:hover,
.work4:hover {
  transform: translateZ(0) scale(1.015);
  background-color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.contact-form input:hover,
.contact-form textarea:hover {
  background-color: #f6f6f8;
}

/* ========= 背景のスクロール連動 ========= */
.top-gradient-cover {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #C8D9E6 0%, #E5D9E8 50%, #F5EFEB 100%);
  pointer-events: none;
  transition: opacity .6s ease;
  opacity: 1;
}

body.has-passed-hero .top-gradient-cover {
  opacity: 0;
}

.skill,
.contact {
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .work-text:hover { box-shadow: none; }
}


