:root {
    --main: #ffd7e1;
    --sub: #01abff;
    --accent: #d583a2;
    --base: #fbfbfb;
    --dark: #624b61;
  }
  
  body {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 16px;
    word-break: auto-phrase;
    box-sizing: border-box;
    background:  var(--main);
    color: var(--dark);
    max-width: 1920px;
  }

  h1, h2{
    margin: 0;
    padding: 5%;
    font-size: 22px;
  }

  p{
    margin: 0;
    padding: 2%;
  }
  
  /* ローリング画面*/
  .loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 500;
    background-color: var(--main);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOut 1.5s 2.5s forwards;
  }
  
  @keyframes fadeOut {
    0% {
      opacity: 1;
    }
  
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }
  
  .loading__logo {
    opacity: 0;
    animation: logo_fade 2s 0.5s forwards;
    width: 400px;
  }
  
  @keyframes logo_fade {
    0% {
      opacity: 0;
      transform: translateY(40px);
    }
  
    60% {
      opacity: 1;
      transform: translateY(0);
    }
  
    100% {
      opacity: 0;
    }
  }

  /* ヘッダー */
  header {
    position: fixed;
    width: 100%;
    height:10vh;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    z-index: 400;
  }

  header .logo{
    height: 100%;
  }

  /*メニュー*/
  .nav {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 20px;
  }

  .nav li {
    display: block; /* 横並びに必要 */
    padding: 20px;
  }
  .nav a{
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
  }


  /*タイトルの画像*/
  #titleImg {
    position: relative;
    top: 10vh;
    margin-bottom:10vh;
    width: 100%;
    height: 60vh;
    background-color:var(--main);
    background-repeat:  no-repeat;            
    background-position:70% 50%;
    background-size: contain;
    background-image: url(imgs/main.png);
  }

  /*タイトルの文字*/
  #titleStr{
  position: absolute;
  bottom: 10%;
  left: 15%;
  width: 50%;
  height: auto;
  margin: auto; 
  animation: mainAnime 5.0s 0s ease;
  }

  @keyframes mainAnime {
    0% {
      transform: translateX(-100px);
    }
    100% {
      transform: translateX(0);
    }
  }


  /*コンテンツの親(後々)*/
  #container{
    display: flex;
    flex-direction: column; 
    gap: 10px;
  }


  /*メイン*/
  main{
    width:90%;
    position: relative;
    margin: auto;
    padding-top: 5%;
  }

  section{
    position: relative;
    width:70%;
    padding: 40px;
    margin: auto;
    margin-bottom: 5% ;
    background-color: var(--base);
    border-radius: 20px;

    animation: slideIn ease; 
    animation-timeline: view();
    animation-range: entry-crossing;
  }
  
  @keyframes slideIn {
    0% {
      transform: translateX(100px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

  /*コンテンツ内のメディア*/
  .contentMedia{
    max-width: 90%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }
  
    
  /* フッター */
  footer {
    background: var(--accent);
    color: var(--base);
    font-weight: bold;
    text-align: center;
    padding: 20px;
  }
  
  /* PC対応 */
  @media screen and (min-width: 760px) {
    body {
      font-size: 20px;
    }
    h1, h2{
      font-size: 26px;
    }
    #titleImg {
      height: 80vh;
    }
    #titleStr{
      max-width: 50%;
    }

  }

/*マウスカーソルが通ったとき*/
@media (hover: hover) {
  footer:hover a{
    color: var(--main);
  }
}