/*
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;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

a {
  cursor: pointer;
}

main {
  margin: auto;
}

.consulting-title {
  width: 69.44%;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#consulting-visuall {
  width: 70%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.consulting-contents-wrap {
  width: 58.33%;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.consulting-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;
}


.consulting-container {
  width: 58.33%;
  margin: 100px auto 0px;
  max-width: 100%;
}

.consulting-item {
  position: relative;
  display: flex;
  border-top: 1px solid #000;
  padding: 20px 0;
}

.consulting-item img {
  width: 55%;
  height: auto;
  margin: auto;
}

.consulting-item h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
}

.consulting-item p {
  margin: 0 10px;
}

.small {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
}

.out-stories-label{
  position: relative;
  top: -50px;
}

.d-flex{
  display: flex;
}

.flex-column{
  flex-direction: column;
}

.m-auto{
  margin: auto;
}

.label-position{
  width: 69.44%;
  margin: 30px auto 0 auto;
}

.label-position h2{
  margin-left: 20px;
}

@media (max-width: 1300px) {
  .consulting-item h3{
    font-size: 20px;
    /* left: 25%; */
  }
  .consulting-item img{
    width: 50%;
  }
}

@media (max-width: 678px) {
  .label-position {
    width: 95%;

  }
  .out-stories-label{
    width: 85%;
    top: -45px; 
  }

  .consulting-title {
    width: 94.67%;
    margin-top: 20px;
  }

  #consulting-visual {
    width: 100%;
  }

  #consulting-title h1 {
    margin-bottom: 0;
  }

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

  .consulting-contents-wrap {
    width: 82.4%;
    margin-top: 30px;
  }

  .consulting-contents p {
    font-size: 15px;
  }

  .consulting-contents h2 {
    font-size: 24px;
    margin-bottom: -10px;
  }

  .consulting-container {
    width: 90.4%;
    display: flex;
    flex-direction: column;
    row-gap: 39px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
  }

  .consulting-item {
    width: 100%;
    flex-direction: column;
  }
  .consulting-item img{
    width: 100%;
  }
  .consulting-item h3 {
    font-size: 20px;
    top: 45%;
    left: 50%;
  }

  .consulting-item h3 {
    font-size: 18px;
    margin-top: 12px;
  }

  .small {
    font-size: 18px;
    word-break: keep-all;/*sp表示の場合だけ、キリの良いところで改行する*/ 
  }
}





