@import url("../base/base.css");
@import url("../common/layout.css");
@import url("../common/nav.css");
@import url("../common/animation.css");


/* top page */
/* top page */
/* top page */


.intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../images/top/top-page.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  z-index: 0;
}

.intro-inner {
  position: relative;
  top: 15em;
  right: 25em;
  background-color: transparent;
  z-index: .1;
  &
  a, span {
    background-color: transparent;
  }
}

a.scroll-guide {
  font-size: 1.5em;
  padding: 4em;
}

.top-title {
  margin: 0;
  font-size: 5rem;
  line-height: 1.5;
  color: var(--h1-col);
  background: none;
  border: none;
  opacity: 0.6;
}

.top-title span {
  display: block;
  background: none;
}

section#home {
  margin: 2em auto;
  max-width: 1200px;
  min-width: 900px;
}

h2.section-number {
  font-size: 3em;
  margin-top: 2em;
}

#home section:nth-child(odd) {
  display: grid;
  justify-content: left;
}

#home section:nth-child(even) {
  display: grid;
  justify-content: right;
}

article.news-item, article.work-item {
  width: 30em;
  border-top: 1px solid var(--h2-col);
}

p.home-detail {
  font-size: 2em;
}

time, p.home-works-number, p.myprofile-detail {
  font-size: 1.3em;
}

h3.news-title, h3.project-title {
  font-size: 1.5em;
  font-weight: bolder;
  text-indent: 1em;
  color: var(--li-col);
}

p.news-detail, p.project-use-language {
  font-size: 1em;
  text-indent: 3em;
}

a.link-to-project {
  font-size: 1.2em;
  text-decoration: underline;
  line-height: 4em;
}

a.link-to {
  font-size: 1.2em;
  text-decoration: underline;
  line-height: 2em;
}

nav.home-small-nav {
  text-indent: 1em;
  display: flex;
  gap: 2em;
}




/* ここからレスポンシブ */
/* ここからレスポンシブ */
/* ここからレスポンシブ */
/* ここからレスポンシブ */
/* =========================
  991px以下
========================= */
@media (max-width: 991px) {
  .intro {
    min-height: 100vh;
  }

  .intro-inner {
    top: 10em;
    right: 0;
    width: 85%;
  }

  .top-title {
    font-size: 4rem;
    line-height: 1.4;
  }

  a.scroll-guide {
    font-size: 1.3em;
    padding: 2em;
  }

  section#home {
    width: 85%;
    max-width: 700px;
    min-width: 0;
    margin: 1em auto;
  }

  h2.section-number {
    font-size: 2em;
    margin-top: 1.5em;
  }

  article.news-item,
  article.work-item {
    width: 25em;
  }
}

/* =========================
  769px以下
========================= */
@media (max-width: 769px) {
  .intro-inner {
    right: 0;
    width: 80%;
  }

  .top-title {
    font-size: 3.5rem;
    line-height: 1.3;
  }

  a.scroll-guide {
    font-size: 1.2em;
    padding: 1.5em;
  }

  section#home {
    width: 90%;
    margin: 1em auto;
  }

  #home section:nth-child(odd),
  #home section:nth-child(even) {
    justify-content: center;
  }

  article.news-item,
  article.work-item {
    width: 80%;
    max-width: 28em;
  }

  p.home-detail {
    font-size: 1.6em;
  }

  time,
  p.home-works-number,
  p.myprofile-detail {
    font-size: 1.1em;
  }

  h3.news-title,
  h3.project-title {
    font-size: 1.3em;
  }

  p.news-detail,
  p.project-use-language {
    text-indent: 2em;
  }

  nav.home-small-nav {
    gap: 1.5em;
  }
}

/* =========================
  575px以下
========================= */
@media (max-width: 575px) {

  .intro {
    min-height: 100svh;
  }

  .intro::before {
    background-position: center;
  }

  .intro-inner {
    right: 0;
    width: 85%;
  }

  .top-title {
    font-size: 2.8rem;
    line-height: 1.25;
  }

  a.scroll-guide {
    display: inline-block;
    font-size: 1em;
    padding: 1.5em 0;
  }

  section#home {
    width: 90%;
    max-width: none;
    min-width: 0;
    margin: 0 auto;
  }

  h2.section-number {
    font-size: 1.5em;
    margin-top: 2em;
  }

  #home section:nth-child(odd),
  #home section:nth-child(even) {
    display: grid;
    justify-content: stretch;
  }

  article.news-item,
  article.work-item {
    width: 100%;
  }

  p.home-detail {
    font-size: 1.4em;
  }

  time,
  p.home-works-number,
  p.myprofile-detail {
    font-size: 1em;
  }

  h3.news-title,
  h3.project-title {
    font-size: 1.2em;
    text-indent: .5em;
  }

  p.news-detail,
  p.project-use-language {
    font-size: .9em;
    text-indent: 1em;
  }

  a.link-to-project,
  a.link-to {
    font-size: 1em;
  }

  nav.home-small-nav {
    flex-wrap: wrap;
    gap: .5em 1em;
    text-indent: 0;
  }
}
