@charset "utf-8";

.stalker {
  display: none;
}

.name {
  height: 12vh;
  padding: 2.6%;
  font-size: 2.4rem;
  text-align: left;
  letter-spacing: 1.8px;
}

.myname {
  text-align: left;
  font-size: 2rem;
  margin-top: 32px;
}

.about__txt,
.why__txt {
  font-size: 1.4rem;
  text-align: left;
  margin-top: 12px;
}

.about__txt:first-child {
  margin-top: 24px;
}

.a__txt {
  margin-top: 20px;
}

.myphoto02 {
  width: 80%;
  margin: 32px auto;
}

.contents__title {
  font-size: 1.8rem;
  font-weight: 500;
  display: block;
  align-items: left;
  justify-content: left;
  padding-top: 20px;
}

.contents__title span {
  font-size: 1.2rem;
}

.cake__title span {
  font-size: 2rem;
}

.cake__img {
  width: 100%;
  margin: 32px auto;
}

.contents__about {
  font-family: "Tenor Sans";
  font-size: 2.4rem;
  display: block;
}

.contents__about span {
  font-family: "Zen kaku gothic";
  font-weight: 400;
}

.section {
  padding: 0 2.6%;
  border-bottom: #2D2D2D solid 1px;
}

.section--why {
background-color: #F6F5F2;
}

.section--why,
.section--important {
  padding-bottom: 32px;
}

.section--interest {
  background-color: #F6F5F2;
  border: none;
}

.why__box {
  background-color: #efe9e3;
  padding: 20px;
  border-radius: 8px;
  margin-top: 16px;
}

.theme {
  font-size: 1.8rem;
  margin-top: 40px;
  text-align: left;
}

.theme__i {
  font-size: 1.4rem;
  margin-top: 8px;
  text-align: left;
}

.why__theme {
  margin: 0;
  padding: 12px;
}

.number {
  font-size: 1.8rem;
  margin-top: 40px;
}

.number__group {
  display: flex;
  justify-content: left;
  align-items: flex-start;
  gap: 12px;
}

/* -----interest------ */
.inter__contents {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 16px;
  padding: 16px;
  overflow: hidden;
}

.i__box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 16px;
  overflow: hidden;
  z-index: 0;
  color: transparent;
  /* 初期は文字非表示 */
  transition: color 0.4s ease, background-color 0.4s ease;
  margin: 16px auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: auto;
}

.i__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: all 0.5s ease;
  z-index: -1;
  opacity: 1;
}

/* ホバー/クリックで背景画像を暗くする */
.i__box.active::after,
.i__box:hover::after {
  filter: brightness(40%);
  transition: filter 0.4s ease;
}


.i__box.active,
.i__box:hover {
  background-color: #2D2D2D;
  color: #fff;
}

/* 見出しと文章両方をホバー/クリックで白にする */
.i__box.active .theme__i,
.i__box:hover .theme__i,
.i__box.active .txt__box .inter__txt,
.i__box:hover .txt__box .inter__txt {
  color: #fff !important;
  transition: color 0.4s ease;
}

/* 初期状態は文章を透明にする */
.inter__txt {
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  color: transparent;
  /* 最初は非表示 */
  margin: 0;
  word-break: break-word;
  transition: color 0.4s ease;
  padding-top: 16px;
}

.i__box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 下寄せ */
  position: relative;
  padding: 16px;
  box-sizing: border-box;
  background-attachment: scroll;
}

/* 背景画像を個別指定 */
.i__box01::after {
  background-image: url('../images/cake1.webp');
}

.i__box02::after {
  background-image: url('../images/kifune.webp');
}

.i__box03::after {
  background-image: url('../images/cat.JPG');
}

.i__box04::after {
  background-image: url('../images/ramen.JPG');
}

.i__box05::after {
  background-image: url('../images/gacya.webp');
}

.i__box06::after {
  background-image: url('../images/fuji.webp');
}

.plan {
  font-size: 1.6rem;
  font-weight: 500;
}

.inter__group01 {
  background-image: url(../images/cake1.webp);
}

.main__hidden {
  flex: 1;
  box-sizing: border-box;
  border-bottom: #2D2D2D solid 0.7px;
}

/* ---------------------------
about
------------------------------ */

.name {
  padding: 2.6%;
  font-size: 2.4rem;
  border-bottom: 0;
}

.section--about {
  padding: 0 2.8%;
}

.myphoto {
  width: 60%;
}

.myname {
  font-size: 2rem;
}

.about__detail {
  margin-top: 32px;
}

@media screen and (min-width:769px) {
  .name {
    font-size: 4rem;
  }

  .about {
    padding-left: 10.2%;
  }

  .theme {
    margin-top: 0;
  }

  .pro__contents {
    display: grid;
    grid-template-columns:repeat(12, 1fr);
    padding-bottom: 32px;
    gap: 24px;
  }

  .myphoto02 {
    width: 100%;
    grid-column: 8 / span 5;
    margin: 0;

  }

  .why__contents {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
  }

  .why__box {
    width: 50%;
    height: 40vh;
    flex: 1;
  }

  .why__theme {
    margin: 0;
    padding: 12px;
  }

  .about__detail {
    align-self: flex-end;
    position: relative;
    z-index: 2;
  }

  .about__discription {
    grid-column: 1 / span 5;
  }

  .about__txt,
  .why__txt {
    font-size: 1.6rem;
    margin: 0;
  }

  .a__txt {
    margin-top: 32px;
  }

  .about__txt:first-child {
  margin: 0;
}

  .about__txt:nth-child(2) {
  margin-top: 16px;
}

  .profile {
    display: flex;
    align-items: flex-start;
    position: relative;
  }

  .myname {
    font-size: 2.6rem;
    text-align: left;
    grid-column: 1 / span 4;
  }

  .description {
    padding: 0 20px;
  }

  .description a {
    text-align: right;
  }

  .im__box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr 3fr;
  gap: 40px;
  margin-top: 40px;
}

.number {
margin-top: 0;
}
.number__group {
grid-area: 1/4;
}

  .skill__box {
    width: 100%;
  }

  .txt__box {
    font-size: 1.6rem;
    grid-area: 1/5;
  }
}

/* ---break point--- */
@media screen and (min-width:769px) and (max-width:1200px) {
  .about__txt {
    font-size: 1.4rem;
  }

  .inter__txt {
    font-size: 1.6rem;
  }

  .why__box {
    height: 40vh;
  }

    .why__txt {
    font-size: 1.4rem;
  }
}

@media screen and (min-width:1200px) {
  .section {
    padding: 0 10.2% 40px 10.2%;

  }

  .section--interest {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 0 10.2%;
  }

  .inter__contents {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
  }

  .inter__txt {
    font-size: 1.4rem;
  }

  .i__box {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
  }
}