@charset "UTF-8";
:root {
  --dark: #000;
  --black: #333;
  --light: #666;
  --white: #fff;
  --magenta:#DB03A8 ;
  --turquoise:#0BE1F7;
  --yellow:#FFE900;
  --blue: #4184F3;
  --shadow: 0 1px 5px rgba(104, 104, 104, 0.8);
  
}
/* index.html以外のページ共通項目 */
/* common.cssでフッターをbottom:0固定しているものを解除 */
footer {
  position: absolute;
  bottom: auto;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 50px;
}
.top-image {
  max-width: 1200px;
  height: 450px;
  background: url('../image/medium@medium.jpg') no-repeat top center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-section {
 width: 40%;
 background-color: rgba(243, 243, 243, 0.8);
 padding: 30px;
}
.right-section {
 width: 60%;
 padding: 30px;
 text-align: center;
 color: #fff;
}
/* 右側文字装飾 */
.eg-title {
  font-size: 3.4rem;
}
.eg-text {
  font-family: sacre-bleu-mvb,sans-serif;
  font-weight: 500;
  font-style: normal;  
  font-size: 2.4rem;
}
.title-box {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 40px 1fr;
  align-items: center;

}
.title-box .title {
  align-self: end;
}
.no {
  grid-row: 1/2;
  grid-column: 1/2;
  font-size: 2.4rem;
  position: relative;
  line-height: 1;
}
/* 数字の下線 */
.no1::after {
  content: "";
  width: 35px;
  height: 5px;
  background-color:var(--turquoise);
  position:absolute;
  left:0;
  bottom: -5px;
}
.title {
  grid-row: 1/2;
  grid-column: 2/-1;
  font-size: 2.4rem;
  justify-content:last baseline;
}
.sub-title {
  grid-row: 2/-1;
  grid-column: 2/-1;
  font-size: 1.7rem;
  font-weight: normal;
}

/* 記事 */
/* 記事を囲む枠 */
.main-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 15px 100px;
  font-family:"Hiragino Kaku Gothic ProN", Meiryo, sans-serif ;
  font-weight: 400;    
  font-style: normal;
}
.article-title {
  display: block;
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  letter-spacing: 2px;
  
}

/* 目次 */
.index {
  max-width: 600px; 
  margin: 0 auto;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 15px;
}
.index p {
  text-align: center;
  padding: 20px 0;
}
.index-box {
  display: flex;
  justify-content: center;
}
.index ul {
  list-style: none;
}
.index ul li {
  font-size: 1.4rem;
  padding: 20px;
}


/* 記事 */
.chapter {
padding: 60px 0 20px;
}

.article {
  letter-spacing: 1px;
  padding:35px 0 35px;
  
}





/* モバイル用メディアクエリ */

@media (max-width: 768px) {
  
  .main-container {
    padding-top: 0;
  }
  .top-image {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .left-section {
    width: 90%;
    background-color: rgba(243, 243, 243, 0.8);
    padding: 30px;
   }
   .right-section {
    width: 100%;
    padding: 30px;
    text-align: center;
    color: #fff;
    
   }
}