body {
  font-family: 'Poppins', sans-serif;
  /* font-family: Georgia, Times, "Times New Roman", serif; */ }

a {
  text-decoration: none; }
  a img:hover {
    opacity: 70%; }

section {
  max-width: 1200px;
  margin: auto;
  margin-top: 60px; }

#header {
  display: grid;
  position: fixed;
  margin-left: 20px;
  border-left: 3px solid #cce9e9;
  padding-left: 8px; }
  @media screen and (max-width: 1179px) {
    #header {
      grid-template-columns: 150px auto;
      width: -webkit-fill-available;
      width: -moz-available;
      top: 0px;
      left: 0px;
      margin-left: 0px;
      padding: 0 20px;
      background-color: #FFF;
      z-index: 100;
      box-shadow: 0px 0px 5px 0px #b9b9b9; } }
  @media screen and (max-width: 640px) {
    #header {
      grid-template-columns: 115px auto;
      padding-left: 3px;
      padding-right: 3px; } }
  #header .name {
    font-size: 32px;
    line-height: 2;
    transition: all ease 0.8s;
    background: linear-gradient(to left, #FFF 50%, #cce9e9 50%) right;
    padding: 5px;
    border-radius: 20px;
    background-size: 200%;
    color: #333; }
    @media screen and (max-width: 1179px) {
      #header .name {
        text-align: center; } }
    @media screen and (max-width: 640px) {
      #header .name {
        text-align: start; } }
  #header .name:hover {
    background-position: left;
    cursor: pointer; }
  @media screen and (max-width: 1179px) {
    #header .menu-wrap {
      display: flex;
      justify-self: end; } }
  #header .side {
    padding: 1px; }
    @media screen and (max-width: 1179px) {
      #header .side {
        align-self: center;
        padding: 0 20px;
        border-right: 2px dashed #cce9e9; } }
    @media screen and (max-width: 640px) {
      #header .side {
        padding: 0 5px;
        font-size: 14px; } }
  #header .side:hover {
    cursor: pointer; }
  #header .side:last-of-type {
    border: none; }
    @media screen and (max-width: 640px) {
      #header .side:last-of-type {
        padding-right: 1px; } }

#contents {
  max-width: 880px;
  margin: auto;
  padding-top: 80px;
  padding-left: 10px; }
  @media screen and (max-width: 1179px) {
    #contents {
      margin-top: 100px;
      padding-top: 25px; } }
  @media screen and (max-width: 640px) {
    #contents {
      margin-top: 50px;
      padding-left: 0px; } }
  #contents a:hover {
    text-decoration: underline;
    color: #cce9e9; }
  #contents .text {
    max-width: 650px;
    margin: auto;
    font-size: 18px;
    line-height: 1.7; }
    @media screen and (max-width: 640px) {
      #contents .text {
        font-size: 16px;
        line-height: 1.5;
        padding: 15px; } }
  #contents .rule {
    width: 100%;
    position: relative;
    margin-top: 90px;
    margin-bottom: 25px;
    border-top: 5px solid #cce9e9; }
    @media screen and (max-width: 1024px) {
      #contents .rule {
        margin-top: 75px; } }
    @media screen and (max-width: 640px) {
      #contents .rule {
        margin-top: 25px; } }
  @media screen and (max-width: 640px) {
    #contents .rule :last-of-type {
      margin-bottom: 25px; } }
  #contents .title {
    width: 100%;
    position: relative;
    height: 50px;
    margin: 25px 0;
    background-color: #e6e6e6;
    text-align: center;
    line-height: 50px;
    font-size: 25px; }
    @media screen and (max-width: 640px) {
      #contents .title {
        height: 45px;
        line-height: 45px;
        font-size: 20px; } }
  #contents .title:last-of-type {
    margin-top: 0px; }
  #contents .title-sub {
    width: 95%;
    position: relative;
    height: 30px;
    margin: 40px auto;
    background-color: #e6e6e6;
    text-align: center;
    line-height: 30px;
    font-size: 18px; }
  #contents .works-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    column-gap: 10px;
    row-gap: 20px; }
    @media screen and (max-width: 768px) {
      #contents .works-block {
        grid-template-columns: 1fr; } }
  #contents figure {
    overflow: hidden;
    display: grid;
    grid-template-rows: auto;
    margin: 10px; }
    @media screen and (max-width: 768px) {
      #contents figure {
        width: 400px;
        margin: auto;
        margin-bottom: 25px; } }
    @media screen and (max-width: 640px) {
      #contents figure {
        width: unset; } }
    #contents figure img {
      display: block;
      width: 100%;
      height: 240px;
      box-shadow: 0px 0px 10px 2px #cacaca; }
      @media screen and (max-width: 640px) {
        #contents figure img {
          height: 215px; } }
    #contents figure .headline {
      width: 80%;
      margin: 10px auto 0;
      color: #333;
      text-align: center;
      line-height: 1.5;
      font-size: 17px; }
      @media screen and (max-width: 640px) {
        #contents figure .headline {
          line-height: 1.3;
          font-size: 16px; } }
  #contents .sub {
    width: 95%;
    margin: auto; }
  #contents .resume-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; }
    @media screen and (max-width: 640px) {
      #contents .resume-img {
        display: none; } }
  #contents iframe {
    display: none; }
    @media screen and (max-width: 640px) {
      #contents iframe {
        display: block;
        height: 500px; } }
  #contents #Contact-x {
    height: 100vh; }
    @media screen and (max-width: 640px) {
      #contents #Contact-x {
        padding-top: 5px; } }
  #contents .links {
    text-align: center;
    font-size: 18px; }
    #contents .links a {
      text-decoration: none;
      color: #333; }

.expand {
  position: relative;
  text-decoration: none;
  display: inline-block;
  padding-bottom: 5px; }

.expand:after {
  display: block;
  content: '';
  border-bottom: solid 3px #cce9e9;
  transform: scaleX(0);
  transition: transform 0.5s ease-in-out;
  transform-origin: 100% 50%; }

.expand:hover:after {
  transform: scaleX(1);
  transform-origin: 0 50%; }
