/*
Theme Name: genken
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

@charset "UTF-8";

* {
  box-sizing: border-box;
} /*全ての要素をborder-boxにするーーコンテンツ、border、paddingの合計がwidthと解釈される*/

html {
  font-size: 100%;
}
/*設定した文字サイズを正しく反映*/

img {
  max-width: 100%;
}
/*画像の大きさの指定。画像が親要素よりも大きくなることを防ぐ*/

body {
  background-color: white;
  position: relative;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

body.home .footer-area {
  margin-top: 0px;
}

a {
  cursor: pointer;
}

h2 {
    font-size: 24px;
    font-weight: 700;
}

p {
    font-size: 20px;
    /*line-height: 2.0;*/
}

main {
    margin: auto;
}
.media-business-title {
  width: 69.44%;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
}

#media-business-visual {
  width: 60.4%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.border-only {
  width: 100%;
  height: 0px;
  border: solid #4070bf 3px;
  margin-top: 80px;
}

.media-business-contents {
  width: 69.44%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

.media-business-contents h2 {
  font-size: 32px;
  font-weight: bold;
  background-image: url('./_g3/image/vector.png');
  background-repeat: no-repeat;
  background-position: left bottom;
  margin-bottom: 30px;
  padding-left: 20px;
  width: 300px;
}

.media-business-contents p {
  padding: 20px;
}

.media-business-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  row-gap: 35px;
  column-gap: 35px;
  border-bottom: 2px solid #4070bf;
  border-left: 2px solid #4070bf;
  border-radius: 10px;
  margin-top: 61px;
  grid-template-areas:
    'a b'
    'c d'; /*4つを並べ替えるため、設定*/
}

.media-business-item {
  display: grid;
  grid-template-rows: auto auto auto;
  align-items: flex-start;
  margin-top: 0;
}

.media-business-item img {
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.media-business-item p {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

.bookseller-image,
.genken-journal-image {
  margin-top: 32px;
}

.street-illust,
.genken-forum-image {
  margin-top: 0px;
}

.media-typ {
  margin-top: 20px;
}

.bookseller-typ {
  margin-top: 55px;
}

/* Luandinhvo */
.media-business-item1 {
  border-top: 2px solid #4070bf;
  border-right: 2px solid #4070bf;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  grid-area: a;
}

.media-business-item2 {
  position: relative;
  border: 2px solid #4070bf;
  border-radius: 10px;
  grid-area: b;
}

.media-business-item2::after {
  content: ' ';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 37px;
  left: -39px;
  border-bottom: 2px solid#4070bf;
  border-left: 2px solid#4070bf;
  border-bottom-left-radius: 10px;
}

.media-business-item3 {
  grid-area: c;
}

.media-business-item4 {
  border-top: 2px solid #4070bf;
  border-right: 2px solid #4070bf;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
  grid-area: d;
}

.genken-journal-typ {
  margin-top: 0px;
}

.bookseller-typ {
  margin-top: 55px;
}

.media-business-label{
  position: relative;
  top: -45px;
}
/*====================メディアクエリーcss=======*/

@media (max-width: 678px) {
  .label-position {
    margin-left: 0;
  }
  .media-business-label{
    top: -35px;
  }

  .media-business-contents{
    width: 95%;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 15px;
  }

  .media-business-title {
    width: 94.67%;
    margin-top: 20px;
  }
  .media-business-title h1 {
    margin-bottom: 0px;
}

  #media-business-visual {
    width: 100%;
  }

  .border-only {
    margin-top: 20px;
  }

  .media-business-contents {
    margin-top: 30px;
  }

  .media-business-contents h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .media-business-contents h2,
  .media-business-contents p {
    margin-left: 0px;
  }

  
  .media-business-contents p {
    padding: 5px;
  }
  /* Luandinhvo */
  .media-business-container {
    /*display: block;*/
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      'a'
      'c'
      'd'
      'b'; /*順番を変える*/
    row-gap: 0;
    border: none;
  }

  .media-business-item1 {
    border-left: 2px solid #4070bf;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    grid-area: a;
  }

  .media-business-item2 {
    border: 2px solid #4070bf;
    margin-top: 35px;
    border-radius: 10px;
    grid-area: b;
  }

  .media-business-item2::after {
    display: none;
  }
  /* Luandinhvo */

  .media-business-item3 {
    grid-area: c;
    border-left: 2px solid #4070bf;
    border-right: 2px solid #4070bf;
  }

  .media-business-item4 {
    border-left: 2px solid #4070bf;
    border-right: 2px solid #4070bf;
    border-bottom: 2px solid #4070bf;
    /* Luandinhvo */
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 0;
    /* Luandinhvo */
    grid-area: d;
  }

  .media-business-item p {
    width: 100;
    font-size: 18px;
  }

  .genken-journal-typ,
  .bookseller-typ,
  .street-typ,
  .genken-forum-typ {
    margin-left: auto;
    margin-right: auto;
  }

  .genken-journal-typ {
    width: 53.4%;
  }

  .bookseller-typ {
    width: 67.31%;
  }

  .street-typ {
    width: 65.37%;
  }

  .genken-forum-typ {
    width: 37.54%;
  }
}








